onchain 2.14 → 2.15

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/block_chain.rb +12 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 497eb9d3e5bb3d29084a9a23a4b561fad6aa5741
4
- data.tar.gz: f88bf87335078d90a81b98f3072407c9084c3013
3
+ metadata.gz: 8949428218f046ebf96acd6fdca7766d1b743227
4
+ data.tar.gz: 1e56ce7dd1c9688695f79daf7be21f94c97fb43f
5
5
  SHA512:
6
- metadata.gz: 14f11c239a9290f881842d596db662e64c674688e58c861af62dcd64c955182230204efa0ede8d3ccbabc11e8a5414ea40671327087688e06e061be69d6ce162
7
- data.tar.gz: eaca8826a602581cceefb9b69ca5839ad93935089ecae04526564e985ac98c017769241a1579b8bab3167f82210a6e7baa70cfd0aee836289f62a6d67e5da166
6
+ metadata.gz: ba9384350fc5ff725174df0c2ec68cdbef199926fc8f80497836070fe6ada6b8101f64822897deb42f08c643009818b752161af8626270134633fe7481e74e16
7
+ data.tar.gz: ea40f89f415f8fe70316abad9a7a6697d290fa12af9ea4bd3a1b2c30141ee1c64b4d1891c8c111f60e4786d71580a0462a246798adfa41bd9a3c1f514caa0dda
@@ -27,20 +27,21 @@ end
27
27
  class OnChain::BlockChain
28
28
  class << self
29
29
 
30
- ALL_SUPPLIERS = [ :blockr, :blockinfo ]
30
+ ALL_SUPPLIERS = [ :blockr, :blockinfo, :insight ]
31
31
 
32
32
  def method_missing (method_name, *args, &block)
33
33
 
34
34
  network = :bitcoin
35
35
  if args.length > 0
36
- if args[args.length - 1] == :testnet3
37
- network = :testnet3
36
+ if args[args.length - 1] == :testnet3 or args[args.length - 1] == :zcash_testnet
37
+ network = args[args.length - 1]
38
38
  end
39
39
  end
40
40
 
41
41
  get_available_suppliers(method_name, network).each do |supplier|
42
42
 
43
43
  real_method = "#{supplier.to_s}_#{method_name}"
44
+
44
45
  begin
45
46
  method = self.method(real_method)
46
47
  begin
@@ -127,6 +128,14 @@ class OnChain::BlockChain
127
128
  next
128
129
  end
129
130
 
131
+ if supplier == :blockinfo and network == :zcash_testnet
132
+ next
133
+ end
134
+
135
+ if supplier == :blockr and network == :zcash_testnet
136
+ next
137
+ end
138
+
130
139
  if supplier == :blockinfo and method_name.to_s == 'send_tx'
131
140
  next
132
141
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.14'
4
+ version: '2.15'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Number 6
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake