ecb_exchange 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db431a48a2ca87303b94eff3c64e3c76793be304afd71ec248405500fbb74ae1
4
- data.tar.gz: 6d8bb5e8b8b093553b11d7ad88b518e46428ae454905c856bd607776bc15365e
3
+ metadata.gz: 8d2044da1ab4294ec9ca79ee7d0fd73f84f08aa4cbdd33dc59650210203dff19
4
+ data.tar.gz: e0d37d27b8a1ad40bc0dd1abf81c0835da9b711a034267121cb6992dcc5dd537
5
5
  SHA512:
6
- metadata.gz: 642b299a76308f93952b3cae6b73eebdd1c4d48cbbd737c3dae11371033a1b33e0b309bc2a0a0368825eb2e03c0812c1f1e1dfcfdac8e28bf861671c3d9b46a2
7
- data.tar.gz: d1cf8857e13641d307f1c01f1eedc0e55246873663d478b788d410b10def30d3dc7d6ac46f1d3a2129bc5236fb821283d5374a40549b7fb34fcdc9951daa1a1e
6
+ metadata.gz: 422ee3ec7152eb3b88db8ba58caf70c708717e5edc7e835570007a40e7acaaecdf10a9e153a0446c47dc5f6c3244d9921cdd6e54bc324e9647c4dabef855b0af
7
+ data.tar.gz: 1dc30fa6af2e2cd59ae5436cbf8ecd39d600aa82a28d6c9c98a608a18a288b8d75069945ea8861f4474a06c39af9cfd36e8403334284e40f88b9bf8ef2ad6b8e
data/CHANGELOG.md CHANGED
@@ -7,11 +7,16 @@ adheres to [Semantic Versioning](Semver).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.1] - 2018-05-05
11
+ ### Changed
12
+ - Updated gemspec description and summary.
13
+
10
14
  ## [0.1.0] - 2018-05-05
11
15
  ### Added
12
16
  - Initial version released.
13
17
 
14
- [Unreleased]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.0...HEAD
15
- [0.1.0]: https://github.com/matthutchinson/ecb_exchange/master@{1day}...v0.1.0
18
+ [Unreleased]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.1...HEAD
19
+ [0.1.1]: https://github.com/matthutchinson/ecb_exchange/compare/v0.1.0...v0.1.1
20
+ [0.1.0]: https://github.com/matthutchinson/ecb_exchange/compare/e7366b3...v0.1.0
16
21
  [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
17
22
  [Semver]: http://semver.org/spec/v2.0.0.html
data/ecb_exchange.gemspec CHANGED
@@ -4,20 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'ecb/exchange'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "ecb_exchange"
8
- spec.version = ECB::Exchange::VERSION
9
- spec.authors = ["Matthew Hutchinson"]
10
- spec.email = ["matt@hiddenloop.com"]
11
-
12
- spec.license = "MIT"
13
- spec.summary = <<-EOF
14
- Finds and converts exchange rates based on available ECB reference rates from
15
- the last 90 days
7
+ spec.name = "ecb_exchange"
8
+ spec.version = ECB::Exchange::VERSION
9
+ spec.authors = ["Matthew Hutchinson"]
10
+ spec.email = ["matt@hiddenloop.com"]
11
+
12
+ spec.license = "MIT"
13
+ spec.summary = <<-EOF
14
+ Currency conversion using the European Central Bank's foreign exchange rates.
16
15
  EOF
17
16
 
18
17
  spec.description = <<-EOF
19
- Finds (and caches) recent ECB reference rates, and provides an ExchangeRate
20
- convertor between currencies supported by the ECB reference rate feed
18
+ Currency conversion using the European Central Bank's foreign exchange rates.
19
+ Rates for the last 90 days are fetched and cached on demand. All calculations
20
+ are performed and returned as BigDecimal.
21
21
  EOF
22
22
 
23
23
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
data/lib/ecb/exchange.rb CHANGED
@@ -3,7 +3,7 @@ require 'bigdecimal/util'
3
3
 
4
4
  module ECB
5
5
  module Exchange
6
- VERSION = "0.1.0".freeze
6
+ VERSION = "0.1.1".freeze
7
7
 
8
8
  def self.convert(amount, from:, to:, date: Date.today)
9
9
  amount.to_d * rate(from: from, to: to, date: date)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecb_exchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
@@ -109,8 +109,9 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: |2
112
- Finds (and caches) recent ECB reference rates, and provides an ExchangeRate
113
- convertor between currencies supported by the ECB reference rate feed
112
+ Currency conversion using the European Central Bank's foreign exchange rates.
113
+ Rates for the last 90 days are fetched and cached on demand. All calculations
114
+ are performed and returned as BigDecimal.
114
115
  email:
115
116
  - matt@hiddenloop.com
116
117
  executables: []
@@ -167,6 +168,5 @@ rubyforge_project:
167
168
  rubygems_version: 2.7.6
168
169
  signing_key:
169
170
  specification_version: 4
170
- summary: Finds and converts exchange rates based on available ECB reference rates
171
- from the last 90 days
171
+ summary: Currency conversion using the European Central Bank's foreign exchange rates.
172
172
  test_files: []