T.C.M.B. Currency Ruby Gem
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
SECURITY.md
VERSION.txt
tcmb_currency.gemspec

README.md

Code Climate Dependency Status

TcmbCurrency

Tcmb Currencies for Money Gem

it based on money gem, money-rails Gem, and adapted from google-currency gem

Installation

Add this line to your application's Gemfile:

gem 'money-rails'

### For rails 4.x

gem 'tcmb_currency', '~> 0.4.0', :git => 'git://github.com/lab2023/tcmb_currency.git'

### For rails 3.x

gem 'tcmb_currency', '~> 0.3.0', git: 'git://github.com/lab2023/tcmb_currency.git', branch: 'rails3'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install tcmb_currency

Requirements

Before generating your application, you will need:

  • The Ruby language (version 1.9.3)
  • Rails 3.2

Usage

After the installing gems run:

$ rails g tcmb_currency:initializer
$ rails g tcmb_currency:migration
$ rake db:migrate

at last add to daily cron tasks this rake

$ rake tcmb_currency:insert_from_tcmb

And you can use it as

Money.new(1000,"USD").exchange_to(:EUR)
Money.new(1000,"USD").exchange_to(:EUR, "2013-03-02")

Contributing

Once you've made your great commits:

  1. Fork Gem
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

Credits

lab2023

This gem is maintained and funded by lab2023 - information technologies

Thank you to all the contributors!

The names and logos for lab2023 are trademarks of lab2023, inc.

License

MIT License

Copyright 2014 lab2023 - information technologies