
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Use Maxima (a computer algebra system) from Ruby.
Add this line to your application's Gemfile:
gem 'ruby_maxima'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby_maxima
RubyMaxima has a single class to work with: the Session
. It practically translates all methods into Maxima calls, except for:
execute
- This executes all the commands in the session.commands
- Here you can have a look at the current commands in the session.debug=
- Here you can set the debug mode. When it is set to true, RubyMaxima will print the output from maxima.RubyMaxima will automatically translate hashes: constraints: 'x+y<=100'
becomes constraints = x+y<=100
.
Here is an example:
s = RubyMaxima::Session.new
s.load 'fmin_cobyla'
s.fmin_cobyla '-(x*y)',['x', 'y'], [1,1], constraints: ['x*y<=49']
eval s.execute # handle this line with absolute care!
Feel free to open issues for missing features.
assigns
method on session which takes a variable name and a block and assigns the result of the block to the variable in maxima.After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/phikes/ruby_maxima.
FAQs
Unknown package
We found that ruby_maxima 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.