exchange-nbkr 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: d3f6a789f0717db0362043d7ac27fcac9ac95e16
4
- data.tar.gz: 87a3b0cfbc67b35d4f9a81ef667e40871c1e47e0
3
+ metadata.gz: 82719dac6fd3873a7f1ed44b6816d17061c82a9f
4
+ data.tar.gz: a4d49d32d558cb77a085a16ce1c469474c8735ca
5
5
  SHA512:
6
- metadata.gz: 5048509f431c96c8418f5a7b6251525921953c7dd14c22eb824ce8d91489725da18b2b1665a307ddffc88aac06fdbb7cb235b599a77b9885166edb780aa4abb5
7
- data.tar.gz: be1a4f938c531a230702671c4c5323cd49f515d659c357bbea67250e498b9571cf3c3ed9a029f1a6756227b184f0bafd15be63b7d3c61daaada11543816976ec
6
+ metadata.gz: b056ee3949d540de2f185a03c2ce2feaad8dc59fee15cea64980486df07ce2eff04c36b3c95539779ccc17dc4dd2c1daeec88d3aad84f13fa5961bcda7f99052
7
+ data.tar.gz: 19ae66a4f1a59c11963af04b77777897cc5d4d5553641193f26dd4bb213ab711be2a9884ef318048f8117c04d6b152831861f3916735962bd13942e5c72d82cc
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -22,7 +22,19 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Setup exchange to use NBKR(National Bank of Kyrgyzstan) currency rates provider.
26
+
27
+ ```ruby
28
+ Exchange.configuration = Exchange::Configuration.new do |c|
29
+ c.api.subclass = :nbkr
30
+ end
31
+ ```
32
+
33
+ Test if it works.
34
+
35
+ ```ruby
36
+ 100.in(:kgs).to(:usd).to_f
37
+ ```
26
38
 
27
39
  ## Development
28
40
 
@@ -1,5 +1,5 @@
1
1
  module Exchange
2
2
  module Nbkr
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ require 'exchange/nbkr'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exchange-nbkr
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
  - Rustam Sharshenov
@@ -54,6 +54,7 @@ files:
54
54
  - bin/console
55
55
  - bin/setup
56
56
  - exchange-nbkr.gemspec
57
+ - lib/exchange-nbkr.rb
57
58
  - lib/exchange/external_api/nbkr.rb
58
59
  - lib/exchange/nbkr.rb
59
60
  - lib/exchange/nbkr/version.rb