currency_conversion 0.0.1 → 0.0.2
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/currency_conversion.gemspec +2 -2
- data/lib/currency_conversion/gateway.rb +4 -4
- metadata +2 -1
data/currency_conversion.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'currency_conversion'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.summary = "Currency Conversion"
|
5
5
|
s.description = "Currency conversion gem"
|
6
6
|
s.add_runtime_dependency 'rest-client', ['~> 1.6.7']
|
7
7
|
s.add_runtime_dependency 'json', ['~> 1.7.5']
|
8
|
-
s.authors = ["Victor Creed"]
|
8
|
+
s.authors = ["Victor Creed", "Muaaz Rafi"]
|
9
9
|
s.email = 'a2ninek@yahoo.com'
|
10
10
|
#s.files = ["lib/currency_conversion.rb"]
|
11
11
|
s.files = `git ls-files`.split("\n")
|
@@ -12,10 +12,10 @@ module CurrencyConversion
|
|
12
12
|
|
13
13
|
if response_hash['error'].nil? or response_hash['error'] == ''
|
14
14
|
encoding_options = {
|
15
|
-
:invalid => :replace,
|
16
|
-
:undef => :replace,
|
17
|
-
:replace => '',
|
18
|
-
:universal_newline => true
|
15
|
+
:invalid => :replace,
|
16
|
+
:undef => :replace,
|
17
|
+
:replace => '',
|
18
|
+
:universal_newline => true
|
19
19
|
}
|
20
20
|
response_hash['rhs'].encode(Encoding.find('ASCII'), encoding_options).to_f
|
21
21
|
else
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: currency_conversion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Victor Creed
|
9
|
+
- Muaaz Rafi
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|