Skip to content

Commit 99a7ffe

Browse files
authored
v2.0.0 🎉 (#129)
1 parent 28e4f40 commit 99a7ffe

File tree

6 files changed

+33
-11
lines changed

6 files changed

+33
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
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

Gemfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22

33
gemspec
44

5-
group :test do
6-
gem 'rake'
7-
end
5+
# Tasks
6+
gem "rake"
7+
8+
# Specs
9+
gem "rspec", "~> 3.13"

eu_central_bank.gemspec

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
#!/bin/env ruby
2-
# encoding: utf-8
2+
# frozen_string_literal: true
3+
34
Gem::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"
2833
end

lib/eu_central_bank.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'money'
44
require 'money/rates_store/store_with_historical_data_support'
55
require 'eu_central_bank/rates_document'
6+
require 'eu_central_bank/version'
67

78
class InvalidCache < StandardError ; end
89

lib/eu_central_bank/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
class EuCentralBank < Money::Bank::VariableExchange
4+
VERSION = "2.0.0"
5+
end

spec/eu_central_bank_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 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

@@ -21,6 +21,10 @@
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)

0 commit comments

Comments
 (0)