Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A Ruby gem to real time convert among different currencies with services from xe.com and google.com This gem is upgraded version of http://rubygems.org/gems/rails_currency/versions/1.2 and https://github.com/helloween/rails_currency
Add this line to your application's Gemfile:
gem 'rails_currency'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails_currency
To get supported currencies
# For google supported currencies
RailsCurrency::Convertor::Google::CURRENCIES
# For xe supported currencies
RailsCurrency::Convertor::Xe::CURRENCIES
To get rate
# By default it will use service from google
RailsCurrency::Convertor.get_rate('CNY', 'USD')
# To convert amount with google.com
RailsCurrency::Convertor.get_rate('CNY', 'USD', 'google')
RailsCurrency::Convertor::Google.get_rate('CNY', 'USD')
# To convert amount with xe.com
RailsCurrency::Convertor.get_rate('CNY', 'USD', 'xe')
RailsCurrency::Convertor::Xe.get_rate('CNY', 'USD')
To convert an amount
# By default it will use service from google
RailsCurrency::Convertor.convert(100, 'CNY', 'USD')
# To convert amount with google.com
RailsCurrency::Convertor.convert(100, 'CNY', 'USD', 'google')
RailsCurrency::Convertor::Google.convert(100, 'CNY', 'USD')
# To convert amount with xe.com
RailsCurrency::Convertor.convert(100, 'CNY', 'USD', 'xe')
RailsCurrency::Convertor::Xe.convert(100, 'CNY', 'USD')
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that rails_currency 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.