currency-rate 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/currency-rate.gemspec +2 -2
- data/lib/currency_rate.rb +4 -0
- data/spec/currency_rate_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68e3d9c56f84600c59e3b3889e7d0430e1b75477
|
4
|
+
data.tar.gz: bc808a2667e29c9a5f965c70f2d195bd2d6974e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d88b0c73e9632132bec4cdf7ed9c4475e58b74d4548323b0c8ad2db0b7a0540661422fcbeaf9eeaec8077c294fbd57be47528cbdd2beffa6a7fad0883ac4700
|
7
|
+
data.tar.gz: 23709972d298ee09925fee4840fc09c5ad3ed94ddbb193c3f7bd157a8c008866474d1459e58ea16096073b4a16343045c0bb0e8a1aa4d9457788c11f7c70e4ea
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/currency-rate.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: currency-rate 0.3.
|
5
|
+
# stub: currency-rate 0.3.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "currency-rate"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/currency_rate.rb
CHANGED
data/spec/currency_rate_spec.rb
CHANGED
@@ -28,5 +28,9 @@ describe CurrencyRate do
|
|
28
28
|
expect(CurrencyRate.convert('Bitstamp', amount: 60181.81, from: 'RUB', to: 'USD')).to eq(1000)
|
29
29
|
end
|
30
30
|
|
31
|
+
it "gets default currencies for an adapter" do
|
32
|
+
expect(CurrencyRate.default_currencies_for("Bitstamp")).to eq(["USD", "BTC"])
|
33
|
+
end
|
34
|
+
|
31
35
|
|
32
36
|
end
|