monefy 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
  SHA1:
3
- metadata.gz: f80d9004701e3d2aa7f6b356133cd02b87436710
4
- data.tar.gz: 65ff94cf1affd47ec6b13f0adcd8c4d2562683e6
3
+ metadata.gz: c95e91dbe57448f140259460adca168db934e7ab
4
+ data.tar.gz: fa7f6ed8409a8ef3255042127c3ddc5ea2c1eded
5
5
  SHA512:
6
- metadata.gz: 0d67271662357e8e954a1c573e7b49aaa5ac4b056552ca904cc1e6f4eb290c5684a28963482246ac5caf78bf313054da37a2378135885cfd78e6b1df2596ef7b
7
- data.tar.gz: ca0000483caa721e668103c3855e2c2c47b930d8b03c4b68e0bfb8f7bea9f9c65197821ea255f62bea428936a698c610a55132ae76c81599c993c46a7d874792
6
+ metadata.gz: 9806e49732da2f22335d1db910d811377b67f1ecc0fe9c57afc392c61babe8c19a156b09e48b9803ab10ba1011d15c4dfc28db4d1274c3bc57bf21fe3526fa0f
7
+ data.tar.gz: fbd08be04f1761d7682df6764422bbccdb58f4ff6a85c6d275387ac35a3ad78619d2269d668ae48d9b3d618ffc9174341d88c4b6aadd3fad3f6315a325e85572
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/monefy.svg)](https://badge.fury.io/rb/monefy)
1
2
  [![Build Status](https://travis-ci.org/wwwbruno/monefy.svg?branch=master)](https://travis-ci.org/wwwbruno/monefy)
2
3
  [![Code Climate](https://codeclimate.com/github/wwwbruno/monefy/badges/gpa.svg)](https://codeclimate.com/github/wwwbruno/monefy)
3
4
  [![Coverage Status](https://coveralls.io/repos/github/wwwbruno/monefy/badge.svg?branch=master)](https://coveralls.io/github/wwwbruno/monefy?branch=master)
@@ -12,7 +13,7 @@ This gem will easily help you to perform currency conversion and arithmetics wit
12
13
  Add this line to your application's Gemfile:
13
14
 
14
15
  ```ruby
15
- gem 'monefy', github: 'wwwbruno/monefy'
16
+ gem 'monefy'
16
17
  ```
17
18
 
18
19
  And then execute:
@@ -70,7 +70,7 @@ class Monefy
70
70
  private
71
71
 
72
72
  def validate_currencies_rates
73
- return if @@currencies_rates.present?
73
+ return if defined?(@@currencies_rates) && @@currencies_rates.present?
74
74
 
75
75
  raise StandardError, "No conversion rates set"
76
76
  end
@@ -1,3 +1,3 @@
1
1
  class Monefy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monefy
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
  - Bruno Almeida