Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This gem is just intended to make getting data from AltaBike shares easier for Ruby apps.
Add this line to your application's Gemfile:
gem 'alta_bikes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install alta_bikes
Configuring can be done in an initializer for the class, or for any single instance of a model.
A list of cities that Alta Bikes have made JSON data available for is kept in a configuration constant
AltaBikes::Configuration::CITIES =
{ :chicago =>"http://www.divvybikes.com/stations/json",
:new_york =>"http://www.citibikenyc.com/stations/json",
:toronto =>"http://www.bikesharetoronto.com/stations/json",
:columbus =>"http://www.cogobikeshare.com/stations/json",
:bay_area =>"http://www.bayareabikeshare.com/stations/json",
:chattanooga =>"http://www.bikechattanooga.com/stations/json"
}
AltaBikes.configure do |config|
config.json_url = AltaBikes::Configuration::CITIES[:chicago]
config.stations_root = 'someNewRoot'
end
config = Openscoring::Configuration.new
config.json_url = AltaBikes::Configuration::CITIES[:chicago]
config.stations_root = 'someNewRoot'
city = AltaBikes::City.new(config)
Calling #stations will either return the stations_list that is already present, or fetch the stations from the json_url.
stations = city.stations
station = city.stations(32)
=> #<AltaBikes::Station:0x000000049ba448
@details={ :id=>32,
:location=>"550 S. Racine",
:name=>"Racine Ave & Congress Pkwy",
:longitude=>-87.65703,
:latitude=>41.87464},
@stats={ :available_docks=>10,
:total_docks=>19,
:available_bikes=>9}>
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that alta_bikes 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.