
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
RoverJoe: A ruby gem that wraps the HostelWorld API, providing:
Assuming bundler, edit Gemfile to include
gem 'roverjoe', '>=0.0.7', git: 'git@github.com:lonelyplanet/roverjoe.git'
Include in your initialization
RoverJoe.configure_from_file
Then create config/hostelworld_api.yml something like this.
params:
format: 'json'
consumer_key: 'lonelyplanet.com'
consumer_signature: 'somethingverysecret'
Language: 'English'
uri: 'https://affiliate.xsapi.webresint.com/1.1/'
Only consumer_key and consumer_signature are required, the rest have defaults.
RoverJoe.configure do |c|
c.consumer_key = 'lonelyplanet.com'
c.consumer_signature = 'asecretsignature'
c.logger = MyApp.logger
end
The default logger does nothing, override if you want to see log output.
Use the after_delay callback to capture the stats however you want.
RoverJoe.configure do |c|
c.after_delay { |delay| Stats.capture( "the delay was #{delay}" }
end
rp = RoverJoe::RemoteProperty( :id => hostel_number )
star_rating = rp.star_rating # this triggers API call
or
hw_property = RoverJoe::RemoteProperty( :id => hostel_number ).response
lp_property.name = hw_property['PropertyName']
req = RoverJoe::Request.new( :propertyInformation, :propertyNumber => hostel_number )
result = req.execute
Result is a hash of all the attributes of the property
a = RoverJoe::Request.new( :propertylocationsearch,
:City => 'Athens',
:DateStart => (Date.today+21).iso8601,
:NumNights => 7
).execute
$ git clone git@github.com:lonelyplanet/roverjoe.git
$ cd roverjoe
$ cp .rvmrc.example .rvmrc
$ source .rvmrc
$ bundle install
$ rake # all tests
$ rspec # all tests
$ bundle exec guard # all tests
$ rspec spec/lib # unit tests
$ rspec spec/integration # integration tests
FAQs
Unknown package
We found that roverjoe 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.