
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
== deepopenstruct
DeepOpenStruct is a simple library for creating easy-to-use data structures from complex sets of nested Hashes and Arrays. It is particularly suitable for creating easy-to-use data structures from YAML files, and as such is a useful tool for creating simple reflective API wrappers.
=== Installation
gem install deepopenstruct
=== Usage
require 'rubygems' require 'deepopenstruct'
complex_data = { :name => "Bob Winkle", :age => 65, :jobs => [ {'start_year' => 1980, 'title' => 'Chef'}, {'start_year' => 1985, 'title' => 'Programmer'} ], :attributes => { :birthplace => "Darwin", :year_of_birth => 1945 } }
simple_data = DeepOpenStruct.load(complex_data)
simple_data.name
simple_data.jobs.first.title
simple_data.attributes.birthplace
=== Note on Patches/Pull Requests
=== Author & Credits
Author:: {Aaron Gough}[mailto:aaron@aarongough.com]
Copyright (c) 2010 {Aaron Gough}[http://thingsaaronmade.com/] ({thingsaaronmade.com}[http://thingsaaronmade.com/]), released under the MIT license
FAQs
Unknown package
We found that deepopenstruct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.