
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
With demisyn you'll never need to dot your methods again. wink wink
Add this line to your application's Gemfile:
gem 'demisyn'
And then execute:
$ bundle
Or install it yourself as:
$ gem install demisyn
Anywhere you want to use this (within Objects) you must first include this in the scope of its use.
using Demisyn
Then you can evaluate strings and arrays of strings as if they were consecutive methods.
###Examples
~"'asdf' reverse split('s') join capitalize"
# => "Fda"
~%w['asdf' reverse split('s') join capitalize]
# => "Fda"
~"'asdf' pikachu split('s') join capitalize"
#NoMethodError: undefined method
~%w['asdf' pikachu split('s') join capitalize]
#NoMethodError: undefined method
Note to execute Demisyn in this fashion you must use the tilde before an Array or String.
####Ruby 2.3.0
Since Ruby 2.3.0 has added the safe navigation operator I've made that available for your method chain. Instead of using tilde before a String or Array use the minus symbol.
-"'asdf' reverse split('s') join capitalize"
# => "Fda"
-"'asdf'[7] reverse split('s') join capitalize"
# => nil
Bug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/demisyn. This project is intended to be a safe, welcoming space for collaboration.
Licensed under either of
at your option.
FAQs
Unknown package
We found that demisyn 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.