Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Unofficial ruby gem for Seametrix API.
Add this line to your application's Gemfile:
gem 'seametrix_ruby', git: 'https://github.com/adiwids/seametrix_ruby.git', branch: 'master', require: 'seametrix'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install seametrix_ruby
:anchor: Ports Service
Search ports by LOCODE or port name (min. 3 characters of LOCODE or port name).
port_result = Seametrix::Ports.get('MTX')
port_result
is an instance of PortResult class, plain Ruby object version of JSON response.
:map: Routes Service
# array of starting and end points pairs with <longitude, latitude> format
legs = [
["-101.123456, 14.772125", "117.443101, 1.123456"]
]
route_requests = legs.map do |leg|
start_coord, end_coord = leg
start_lon, start_lat = start_coord.split(',').map(&:strip)
end_lon, end_lat = start_coord.split(',').map(&:strip)
attrs = {
start_lon: start_lon,
start_lat: start_lat,
end_lon: end_lon,
end_lat: end_lat
}
# Other parameter can be added too
SeametrixRuby::Requests::RouteRequest.new(attrs)
end
route_result = Seametrix::Routes.get(route_requests)
route_result
is an instance of RouteResult class, plain Ruby object version of JSON response.
Seametrix.configure do |config|
config.base_url = "<URL of API endpoint> or see Configuration::DEFAULT_BASE_URL value"
config.access_key = "validAccessKey"
config.logger = Logger.new(STDOUT) #optional
config.debugging = false #optional
end
$ bundle exec rake test
Bug reports and pull requests are welcome on GitHub at https://github.com/adiwids/seametrix_ruby. This project is intended to be a safe, and welcoming space for collaboration.
git checkout -b feature/feature_name
.The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that seametrix_ruby 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.