File tree Expand file tree Collapse file tree 6 files changed +33
-11
lines changed
Expand file tree Collapse file tree 6 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 22
33## Upcoming release (unreleased)
44
5+ ## 2.0.0 (Dec 9 2025)
6+
57* ** Breaking change** : Require Ruby >= 3.1
8+ * ** Breaking change** : Update Money dependency to 7.0. Make sure to read [ the upgrade
9+ guide] ( https://github.com/RubyMoney/money/blob/main/UPGRADING-7.0.md ) .
610* Update YAML loading from compatibility with recent Psych versions.
711* Move Croatian Kuna (HRK) and Russian Ruble (RUB) to legacy currencies
12+ * Add ` EuCentralBank::VERSION ` .
813
914## 1.7.0 (Nov 17 2021)
1015
Original file line number Diff line number Diff line change 1- source ' https://rubygems.org'
1+ source " https://rubygems.org"
22
33gemspec
44
5- group :test do
6- gem 'rake'
7- end
5+ # Tasks
6+ gem "rake"
7+
8+ # Specs
9+ gem "rspec" , "~> 3.13"
Original file line number Diff line number Diff line change 11#!/bin/env ruby
2- # encoding: utf-8
2+ # frozen_string_literal: true
3+
34Gem ::Specification . new do |s |
45 s . name = "eu_central_bank"
5- s . version = "1.7.0"
6+
7+ # Please also update `eu_central_bank/version.rb`.
8+ #
9+ # We cannot use this constant here because of the `money` dependency when
10+ # inheriting from `Money::Bank::VariableExchange`.
11+ s . version = "2.0.0"
12+
613 s . platform = Gem ::Platform ::RUBY
714 s . authors = [ "Shane Emmons" ]
815 s . email = [ "shane@emmons.io" ]
@@ -19,10 +26,8 @@ Gem::Specification.new do |s|
1926
2027 s . add_dependency "bigdecimal"
2128 s . add_dependency "nokogiri" , "~> 1.11"
22- s . add_dependency "money" , "~> 6.19"
23-
24- s . add_development_dependency "rspec" , "~> 3.13"
29+ s . add_dependency "money" , "~> 7.0"
2530
26- s . files = Dir . glob ( "lib/**/*" ) + %w( CHANGELOG.md LICENSE README.md )
31+ s . files = Dir . glob ( "lib/**/*.rb " ) + %w[ CHANGELOG.md LICENSE README.md ]
2732 s . require_path = "lib"
2833end
Original file line number Diff line number Diff line change 33require 'money'
44require 'money/rates_store/store_with_historical_data_support'
55require 'eu_central_bank/rates_document'
6+ require 'eu_central_bank/version'
67
78class InvalidCache < StandardError ; end
89
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class EuCentralBank < Money ::Bank ::VariableExchange
4+ VERSION = "2.0.0"
5+ end
Original file line number Diff line number Diff line change 11require File . expand_path ( File . dirname ( __FILE__ ) + '/spec_helper' )
22
3- describe " EuCentralBank" do
3+ describe EuCentralBank do
44 before ( :each ) do
55 Money . rounding_mode = BigDecimal ::ROUND_HALF_UP
66
2121 end
2222 end
2323
24+ it "has a version" do
25+ expect ( EuCentralBank ::VERSION ) . to be_a ( String )
26+ end
27+
2428 it "should save the xml file from ecb given a file path" do
2529 @bank . save_rates ( @tmp_cache_path )
2630 expect ( File . exist? ( @tmp_cache_path ) ) . to eq ( true )
You can’t perform that action at this time.
0 commit comments