fxpotato 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2f6de8473ac29270e901906c6df69a443e6ea3f
4
- data.tar.gz: 814ef8a5b3cf444cc9bcce0cb1e2c373cc489793
3
+ metadata.gz: 16409f394cae55d664097c7a38cc8f2bbf31354f
4
+ data.tar.gz: 835e3d02d429fb9d0c07d3282990cac4cc14021b
5
5
  SHA512:
6
- metadata.gz: 476cab120e1797f427cf038ec896f7cec219d75b3d0928067d42b702646185b95f16bf283aec0b79e18ce57c4331fa6e8a7ecb5d6dab486e59553966240d5dd8
7
- data.tar.gz: 5977afe0f51dfd77fd9803abe0e9515b0488f9cbb538b5dff478209e2f45c623a18ca60ff1e055970bbab8bf426bc9eaf2481e612f3b409a015de349cdf30bd8
6
+ metadata.gz: 811b9e89a7c9293588116d5905ce64a5507301f917a7095e362fd01a69f781ba5863f5f6f5f051f38e5b5b5dbe9029446902794a65638001b1715670d97e9759
7
+ data.tar.gz: 02801972f90d4cb6072b2720da4c957f78ebadef290b22496dd96ddad334291e5e92e0e6542539a1866d749d6a579bc35b7db884a51ea757d3c43309cbf88777
data/README.md CHANGED
@@ -4,6 +4,8 @@ The Foreign Exchange currency rates looker-upper. Potato style.
4
4
 
5
5
  Uses last daily feed from European Central Bank website, and exposes a simple interface to get the conversion rates for one currency to another on a given day.
6
6
 
7
+ [Available on RubyGems.org](https://rubygems.org/gems/fxpotato)
8
+
7
9
  ## Installation
8
10
 
9
11
  Add this line to your application's Gemfile:
@@ -87,10 +89,10 @@ fxpotato getrate GBP USD -d 2017-06-02
87
89
  The `-d` option is not required, and will default to today if not specified.
88
90
 
89
91
  ## Development
90
-
91
92
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
92
93
 
93
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
94
+ To install this gem onto your local machine, run `bundle exec rake install`.
95
+
94
96
 
95
97
  ## Contributing
96
98
 
@@ -1,3 +1,3 @@
1
1
  module FxPotato
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.2'
3
3
  end
data/lib/fxpotato.rb CHANGED
@@ -35,7 +35,7 @@ module FxPotato
35
35
  end
36
36
 
37
37
  def self.upcase_if_not_nil(str)
38
- str.nil? ? nil : str.upcase
38
+ str.nil? || !str.is_a?(String) ? nil : str.upcase
39
39
  end
40
40
 
41
41
  module_function
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxpotato
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Stupid Name Humphreys