# -*- encoding: utf-8 -*- # stub: mint-money 0.1.1 ruby lib Gem::Specification.new do |s| s.name = "mint-money".freeze s.version = "0.1.1".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Renat Ibragimov".freeze] s.bindir = "exe".freeze s.date = "2017-06-05" s.description = "# Mint::Money\n\nMint::Money perform currency conversion and arithmetics with different currencies.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mint-money'\n```\n\nAnd then execute:\n\n $ bundle\n\nOr install it yourself as:\n\n $ gem install mint-money\n\n## Usage\n\n```\n# Configure the currency rates with respect to a base currency (here EUR):\n\u00A0\nMoney.conversion_rates('EUR', {\n\u00A0 'USD' \u00A0 \u00A0 => 1.11,\n\u00A0 'Bitcoin' => 0.0047\n})\n```\n\u00A0\n```\n# Instantiate money objects:\n\u00A0\nfifty_eur = Money.new(50, 'EUR')\n\u00A0\n# Get amount and currency:\n\u00A0\nfifty_eur.amount \u00A0 # => 50\nfifty_eur.currency # => \"EUR\"\nfifty_eur.inspect \u00A0# => \"50.00 EUR\"\n```\n\u00A0\n```\n# Convert to a different currency (should return a Money\n# instance, not a String):\n\u00A0\nfifty_eur.convert_to('USD') # => 55.50 USD\n```\n\u00A0\n```\n# Perform operations in different currencies:\n\u00A0\ntwenty_dollars = Money.new(20, 'USD')\n\u00A0\n# Arithmetics:\n\u00A0\nfifty_eur + twenty_dollars # => 68.02 EUR\nfifty_eur - twenty_dollars # => 31.98 EUR\nfifty_eur / 2 \u00A0 \u00A0 \u00A0 \u00A0 \u00A0 \u00A0 \u00A0# => 25 EUR\ntwenty_dollars * 3 \u00A0 \u00A0 \u00A0 \u00A0 # => 60 USD\n```\n\u00A0\n```\n# Comparisons (also in different currencies):\n\u00A0\ntwenty_dollars == Money.new(20, 'USD') # => true\ntwenty_dollars == Money.new(30, 'USD') # => false\n\u00A0\nfifty_eur_in_usd = fifty_eur.convert_to('USD')\nfifty_eur_in_usd == fifty_eur \u00A0 \u00A0 \u00A0 \u00A0 \u00A0# => true\n\u00A0\ntwenty_dollars > Money.new(5, 'USD') \u00A0 # => true\ntwenty_dollars < fifty_eur \u00A0 \u00A0 \u00A0 \u00A0 \u00A0 \u00A0 # => true\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mpakus/mint-money.\n\n[![CircleCI](https://circleci.com/gh/mpakus/mint-money.svg?style=svg)](https://circleci.com/gh/mpakus/mint-money)\n\n".freeze s.email = ["mrak69@gmail.com".freeze] s.files = [".gitignore".freeze, ".rspec".freeze, ".rubocop.yml".freeze, ".travis.yml".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "bin/console".freeze, "bin/setup".freeze, "circle.yml".freeze, "lib/mint/money.rb".freeze, "lib/mint/money/currency.rb".freeze, "lib/mint/money/exceptions.rb".freeze, "lib/mint/money/money.rb".freeze, "lib/mint/money/utils.rb".freeze, "lib/mint/money/version.rb".freeze, "mint-money.gemspec".freeze] s.homepage = "https://github.com/mpakus/mint-money".freeze s.rubygems_version = "3.5.10".freeze s.summary = "Manage money with Mint::Money".freeze s.specification_version = 4 s.add_development_dependency(%q.freeze, ["~> 1.15".freeze]) s.add_development_dependency(%q.freeze, ["~> 10.0".freeze]) s.add_development_dependency(%q.freeze, ["~> 3.0".freeze]) s.add_development_dependency(%q.freeze, ["~> 0.49".freeze]) s.add_development_dependency(%q.freeze, ["~> 0.10".freeze]) end