https://github.com/RubyMoney/money
Revision 7c64da7c1f8c69face308442e05df4e8ac6dc9bc authored by Deepak Hagadur Bheemaraju on 09 October 2020, 23:21:42 UTC, committed by GitHub on 09 October 2020, 23:21:42 UTC
* Raise expception when default currency is not set or passed as parameter

* Raise DefaultCurrencyNotSetOrPassed exception.
* After checking default currency this exception is raised.

* Raise the exception in initializer.

* Fix all the test cases by passing currency.
Left few test cases to get clarification.

* Fix the tests and add test case to test DefaultCurrencyNotSet exception.
1 parent aac5ec0
Raw File
Tip revision: 7c64da7c1f8c69face308442e05df4e8ac6dc9bc authored by Deepak Hagadur Bheemaraju on 09 October 2020, 23:21:42 UTC
Raise exception when default currency is not set or passed as parameter (#950)
Tip revision: 7c64da7
money.gemspec
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "money/version"

Gem::Specification.new do |s|
  s.name        = "money"
  s.version     = Money::VERSION
  s.platform    = Gem::Platform::RUBY
  s.authors     = ["Shane Emmons", "Anthony Dmitriyev"]
  s.email       = ["shane@emmons.io", "anthony.dmitriyev@gmail.com"]
  s.homepage    = "https://rubymoney.github.io/money"
  s.summary     = "A Ruby Library for dealing with money and currency conversion."
  s.description = "A Ruby Library for dealing with money and currency conversion."
  s.license     = "MIT"

  s.add_development_dependency "bundler"
  s.add_development_dependency "i18n", ">= 0.6.4"
  s.add_development_dependency "r18n-core", "~> 3.0"
  s.add_development_dependency "rake"
  s.add_development_dependency "rspec", "~> 3.4"
  s.add_development_dependency "yard", "~> 0.9.11"
  s.add_development_dependency "kramdown", "~> 1.1"

  s.files         = `git ls-files -z -- config/* lib/* CHANGELOG.md LICENSE money.gemspec README.md`.split("\x0")
  s.executables   = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
  s.test_files    = s.files.grep(%r{^(test|spec|features)/})
  s.require_paths = ["lib"]

  if s.respond_to?(:metadata)
    s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money/blob/master/CHANGELOG.md'
    s.metadata['source_code_uri'] = 'https://github.com/RubyMoney/money/'
    s.metadata['bug_tracker_uri'] = 'https://github.com/RubyMoney/money/issues'
  end
end
back to top