blockchain-info-exchange-rates 0.2.0 → 0.2.1

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: 7adb034d791fc854f57c03f7246dccd0cb88afb1
4
- data.tar.gz: 5afc9165af5a9858821587e32f21517368cc9777
3
+ metadata.gz: 32332203ca344b904bd14974756012e70058c4aa
4
+ data.tar.gz: f3dd00017b5c6dd8a1005a56c41e3423eba55f0e
5
5
  SHA512:
6
- metadata.gz: cdd8b82c5690264e0b86bbc411648a4f5a2aa5836382f60f289227186a2f8f73949dff9835c6b12edf773b37c078ce724bf0cc8c574e52f901f96ae66ba25886
7
- data.tar.gz: 40fe1b6ee3c31406cab3dac89a969468185603865f4bedc1e45e2781c6a247abb8dea801e24bc781aecda7ba3dbf107d1def87b1683b4211803ba91c4ba92a71
6
+ metadata.gz: 173411e9e5a742e83c3b96589b37b9dd81c36d1c36aecda8d53ea24b22a78bce5701ca0130cee4c57c29c34f09b0d6a1e3ae6d73a48863ff2ee26403cd2623ea
7
+ data.tar.gz: abc3d239a0b2c26d943beae0994d20037ff9ce1b51d9c7613c8a08013defb5e286e0d9393f4338fe2fe54bd271f564d56f7000a8023d22d351f0988574123a3b
@@ -1,8 +1,10 @@
1
- Copyright (c) 2014 Simon Males
1
+ The MIT License
2
+
3
+ Copyright (c) 2011 Simon Males <sime@sime.net.au>
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
7
+ 'Software'), to deal in the Software without restriction, including
6
8
  without limitation the rights to use, copy, modify, merge, publish,
7
9
  distribute, sublicense, and/or sell copies of the Software, and to
8
10
  permit persons to whom the Software is furnished to do so, subject to
@@ -11,10 +13,10 @@ the following conditions:
11
13
  The above copyright notice and this permission notice shall be
12
14
  included in all copies or substantial portions of the Software.
13
15
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
17
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,33 @@
1
- = Money Blockchain.info Exchange Rates
1
+ # Money Blockchain.info Exchange Rates
2
2
 
3
- This is a direct rip/port of [Money Open Exchange Rates](https://github.com/spk/money-open-exchange-rates) experimental and not used in production.
3
+ Blockchain.info Ruby Money exchange bank.
4
4
 
5
+ This is a direct rip/port of [Money Open Exchange Rates](https://github.com/spk/money-open-exchange-rates). This library experimental and not used in production.
6
+
7
+ ## Installation
8
+ Gemfile:
9
+ ~~~ yaml
10
+ gem 'blockchain-info-exchange-rates', require: 'money/bank/blockchain_info_exchange_rates'
11
+ ~~~
12
+
13
+ ## Usage
14
+ ~~~ ruby
15
+ bie = Money::Bank::BlockchainInfoExchangeRates.new
16
+ bie.cache = 'path/to/file/cache'
17
+
18
+ # If the cache is empty:
19
+ # Fetch new rates from Blockchain.info and cache
20
+ bie.save_rates
21
+
22
+ # Import rates from cache to Money Object
23
+ bie.update_rates
24
+
25
+ # Rates expire every 15 minutes
26
+ bie.ttl_in_seconds = 900
27
+
28
+ # Default Bank
29
+ config.default_bank = bie
30
+ ~~~
31
+
32
+ ## License
33
+ The MIT License
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -2,16 +2,16 @@
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: blockchain-info-exchange-rates 0.2.0 ruby lib
5
+ # stub: blockchain-info-exchange-rates 0.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "blockchain-info-exchange-rates"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
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"]
13
13
  s.authors = ["Simon Males"]
14
- s.date = "2014-12-26"
14
+ s.date = "2015-02-11"
15
15
  s.description = "This is a direct rip/port of Money Open Exchange Rates experimental and not used in production."
16
16
  s.email = "sime@sime.net.au"
17
17
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  ]
35
35
  s.homepage = "http://github.com/sime/blockchain-info-exchange-rates"
36
36
  s.licenses = ["MIT"]
37
- s.rubygems_version = "2.2.2"
37
+ s.rubygems_version = "2.4.5"
38
38
  s.summary = "Money Blockchain.info Exchange Rates"
39
39
 
40
40
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blockchain-info-exchange-rates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Males
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: monetize
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.2.2
236
+ rubygems_version: 2.4.5
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Money Blockchain.info Exchange Rates