spot-rate 0.2.0 → 0.4.0

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.
data/README.md CHANGED
@@ -34,6 +34,8 @@ If you'd like to register your own currency converter, use the
34
34
  `.register_currency_converter` method:
35
35
 
36
36
  ```ruby
37
+ require 'spot-rate'
38
+
37
39
  class MyRandomCurrencyConverter
38
40
  def initialize from_currency, to_currency
39
41
  @from_currency = from_currency
@@ -1,3 +1,5 @@
1
+ require 'spot_rate/version'
2
+
1
3
  class SpotRate
2
4
  class CurrencyNotFound < RuntimeError; end
3
5
 
@@ -31,5 +33,5 @@ class SpotRate
31
33
  end
32
34
  end
33
35
 
34
- require './lib/spot_rate/google_currency_converter'
36
+ require 'spot_rate/google_currency_converter'
35
37
  SpotRate.register_currency_converter :default, SpotRate::GoogleCurrencyConverter
@@ -1,3 +1,3 @@
1
1
  class SpotRate
2
- VERSION = "0.2.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- require './lib/spot_rate'
1
+ require './lib/spot-rate'
2
2
 
3
3
  class SomeCurrencyConverter
4
4
  def initialize from, to
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spot-rate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -87,7 +87,7 @@ files:
87
87
  - LICENSE
88
88
  - README.md
89
89
  - Rakefile
90
- - lib/spot_rate.rb
90
+ - lib/spot-rate.rb
91
91
  - lib/spot_rate/google_currency_converter.rb
92
92
  - lib/spot_rate/version.rb
93
93
  - spec/spot_rate/google_currency_converter_spec.rb