onchain 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/sweeper.rb +4 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ef2b547fa4d6a22c2f25316fc38c4c33c81a12f
4
- data.tar.gz: 79cc4f5dc8fc2ffad0f0a3f105c6c6915ae60137
3
+ metadata.gz: 2d922bba5d40cdba4b60569952eb452a3f2a6efd
4
+ data.tar.gz: b8c74edfc9dd67c6a18ded412f0ec464cfa7bf3c
5
5
  SHA512:
6
- metadata.gz: f4eab868831a2a29667a19b14c57b34556622c44d2dc2d026398db1f6253d026adafe0d4fe1a50cc2d31ad658c0d7d946a24755bc73b47eed6e00970f6dc7271
7
- data.tar.gz: d2f99924c6bd866ff7d561c7d3c9632f2547a171b4eee1ec401f473d9a9b8401cfcff8b799cf5b5852d24abbbd7826cafc20a46c900de8229516aab8ee2ad778
6
+ metadata.gz: 1174acbe66b8b94d109573dd60cea267079f56ab6a848686f944ad79d64a4ae63acd6d475b0cd8f04108da14016f6c8d6675c724177e37995dff4939ddf84a77
7
+ data.tar.gz: 876700bfa69e07e578579c73b9c3f4d2a2f252c56907539c7b197b18b80d79631142f2e86e129cc02173d1958b4ec4c4b8f24da56fe331d5c579f89d8fb38b8d
@@ -1,4 +1,4 @@
1
- require 'rest_client'
1
+ require 'httparty'
2
2
 
3
3
  class OnChain::Sweeper
4
4
  class << self
@@ -145,11 +145,11 @@ class OnChain::Sweeper
145
145
  end
146
146
  end
147
147
 
148
-
149
- res = RestClient.post 'https://onchain.io/api/v1/transaction', :tx => tx_hex,
148
+ return HTTParty.post('https://onchain.io/api/v1/transaction',
149
+ :body => { :tx => tx_hex,
150
150
  :meta_data => meta,
151
151
  :user_email => ENV['ONCHAIN_EMAIL'],
152
- :user_token => ENV['ONCHAIN_TOKEN']
152
+ :user_token => ENV['ONCHAIN_TOKEN'] })
153
153
  end
154
154
 
155
155
  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: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Purton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rest-client
84
+ name: httparty
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="