insight_bitpay 0.0.3 → 0.0.4

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: 2b862d61050fd8444f25f9129cee9991de2113e8
4
- data.tar.gz: 903845c22d3db64abb37e55ab86ac8f5fd98e7ea
3
+ metadata.gz: b1682f3616cc81c7125193fcd78e71878e3aa5c7
4
+ data.tar.gz: 32b201edf9bde597148a4b3c597b7738b41675d0
5
5
  SHA512:
6
- metadata.gz: 928362c69f947d2530e3366b6d9becdf8d91bc53f495b57ae7bad89097d0a2ade76914e0810d73b5ec4ba6b54a1568a4689c3f59ef821dcdb735b3ff89110c57
7
- data.tar.gz: 89728a51170fe3dea7a989f410a29de178034a22a0ac1cc0caa59fbcb087cbe116ccaf4ee2d47afe5f35ce59244af9c9dc3560a8df015ae0a37786c5bb7db757
6
+ metadata.gz: d33fa3fb71cf798763cf4127c7e642b1dc95fca7f0309cf83c37e1cfcbad338b6eb1d15d03fc73db12bb4011c5309b2272a4cf0f15c9084e860885f0eb6291ef
7
+ data.tar.gz: 0cf9dfbea6748e78f9dd318972137323627e02fab139a923a5020b290aecc310e52b8496e95ae5e2863f185f311c71b6444cfcdb9a48d0d22b72df096883f0d4
data/lib/insight/api.rb CHANGED
@@ -34,6 +34,10 @@ module Insight
34
34
  @connection.get("/tx/#{hash}")
35
35
  end
36
36
 
37
+ def rawtx(hash)
38
+ @connection.get("/rawtx/#{hash}")
39
+ end
40
+
37
41
  def push_transaction(hex)
38
42
  @connection.post('/tx/send', rawtx: hex)
39
43
  end
@@ -1,3 +1,3 @@
1
1
  module Insight
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/lib/insight.rb CHANGED
@@ -7,11 +7,10 @@ module Insight
7
7
 
8
8
  attr_writer :api
9
9
 
10
- API_VERSION = 'v1'
11
10
  BLOCK_CHAIN = 'btc'
12
11
 
13
12
  def self.api
14
- @api ||= API.new(network:BLOCK_CHAIN, api_version:API_VERSION)
13
+ @api ||= API.new(network:BLOCK_CHAIN)
15
14
  end
16
15
 
17
16
  def self.method_missing(sym, *args, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insight_bitpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genaro Madrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client