Skip to content

Commit 28e4f40

Browse files
authored
Merge pull request #127 from RubyMoney/jl-more-housekeeping
A few easy updates in README and CHANGELOG
2 parents 516b1dd + b36cc37 commit 28e4f40

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# eu_central_bank changelog
22

3+
## Upcoming release (unreleased)
4+
5+
* **Breaking change**: Require Ruby >= 3.1
36
* Update YAML loading from compatibility with recent Psych versions.
47
* Move Croatian Kuna (HRK) and Russian Ruble (RUB) to legacy currencies
58

@@ -9,7 +12,7 @@
912

1013
## 1.6.1 (Mar 3 2021)
1114

12-
* Allow a fallback when loading cached rate files to inhibit network fetch.
15+
* Allow a fallback when loading cached rate files to inhibit network fetch.
1316

1417
## 1.5.0 (Dec 7 2019)
1518

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# eu_central_bank
22

3-
[![Build Status](https://travis-ci.org/RubyMoney/eu_central_bank.svg?branch=master)](https://travis-ci.org/RubyMoney/eu_central_bank)
3+
[![Gem Version](https://badge.fury.io/rb/eu_central_bank.svg)](https://rubygems.org/gems/eu_central_bank)
4+
[![Ruby](https://github.com/RubyMoney/eu_central_bank/actions/workflows/ruby.yml/badge.svg)](https://github.com/RubyMoney/eu_central_bank/actions/workflows/ruby.yml)
45

56
## Introduction
67

@@ -12,15 +13,10 @@ This gem downloads the exchange rates from the European Central Bank. You can ca
1213
gem install eu_central_bank
1314
```
1415

15-
In case you're using older ruby (< 2.1) you need nokogiri < 1.6.8, so add this to your `Gemfile`:
16-
17-
```
18-
gem 'nokogiri', '1.6.8'
19-
```
20-
2116
## Dependencies
2217

2318
- nokogiri
19+
- bigdecimal
2420
- money
2521

2622
## Usage
@@ -72,9 +68,9 @@ eu_bank.exchange_with(Money.new(100, "CAD"), "USD") # Money.new(80, "USD")
7268

7369
- Fork the project.
7470
- Make your feature addition or bug fix.
75-
- Add tests for it. This is important so I don't break it in a future version unintentionally.
71+
- Add tests for it. This is important so I don't break it in a future version unintentionally.
7672
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
7773

7874
## Copyright
7975

80-
Copyright (c) 2010-2016 RubyMoney. See LICENSE for details.
76+
Copyright (c) 2010-2025 RubyMoney. See LICENSE for details.

eu_central_bank.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121
s.add_dependency "nokogiri", "~> 1.11"
2222
s.add_dependency "money", "~> 6.19"
2323

24-
s.add_development_dependency "rspec", "~> 3.12.0"
24+
s.add_development_dependency "rspec", "~> 3.13"
2525

2626
s.files = Dir.glob("lib/**/*") + %w(CHANGELOG.md LICENSE README.md)
2727
s.require_path = "lib"

spec/eu_central_bank_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
describe "EuCentralBank" do
44
before(:each) do
5+
Money.rounding_mode = BigDecimal::ROUND_HALF_UP
6+
57
@bank = EuCentralBank.new
68
@dir_path = File.dirname(__FILE__)
79
@cache_path = File.expand_path(@dir_path + '/exchange_rates.xml')

0 commit comments

Comments
 (0)