helloblock 0.0.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.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +56 -0
  6. data/Rakefile +1 -0
  7. data/helloblock.gemspec +32 -0
  8. data/lib/helloblock.rb +20 -0
  9. data/lib/helloblock/api_interface/api_parameters.rb +10 -0
  10. data/lib/helloblock/api_interface/endpoints.rb +23 -0
  11. data/lib/helloblock/configuration.rb +22 -0
  12. data/lib/helloblock/http/connection.rb +28 -0
  13. data/lib/helloblock/http/request.rb +26 -0
  14. data/lib/helloblock/resources/address.rb +15 -0
  15. data/lib/helloblock/resources/block.rb +7 -0
  16. data/lib/helloblock/resources/faucet.rb +17 -0
  17. data/lib/helloblock/resources/query.rb +74 -0
  18. data/lib/helloblock/resources/transaction.rb +15 -0
  19. data/lib/helloblock/resources/wallet.rb +7 -0
  20. data/lib/helloblock/spec_helper.rb +11 -0
  21. data/lib/helloblock/utils.rb +17 -0
  22. data/lib/helloblock/version.rb +3 -0
  23. data/spec/fixture/vcr_cassettes/batch_address_unspents.yml +49 -0
  24. data/spec/fixture/vcr_cassettes/batch_addresses.yml +47 -0
  25. data/spec/fixture/vcr_cassettes/batch_transactions.yml +47 -0
  26. data/spec/fixture/vcr_cassettes/batch_transactions_addresses.yml +49 -0
  27. data/spec/fixture/vcr_cassettes/batch_unspents.yml +49 -0
  28. data/spec/fixture/vcr_cassettes/faucet.yml +45 -0
  29. data/spec/fixture/vcr_cassettes/latest_blocks.yml +47 -0
  30. data/spec/fixture/vcr_cassettes/latest_transactions.yml +47 -0
  31. data/spec/fixture/vcr_cassettes/propagate.yml +49 -0
  32. data/spec/fixture/vcr_cassettes/single_address.yml +47 -0
  33. data/spec/fixture/vcr_cassettes/single_address_unspents.yml +49 -0
  34. data/spec/fixture/vcr_cassettes/single_block.yml +47 -0
  35. data/spec/fixture/vcr_cassettes/single_transaction.yml +47 -0
  36. data/spec/fixture/vcr_cassettes/wallet.yml +47 -0
  37. data/spec/fixture/vcr_cassettes/withdrawal.yml +45 -0
  38. data/spec/integration/api_calls_work_spec.rb +176 -0
  39. data/spec/lib/address_spec.rb +77 -0
  40. data/spec/lib/connection_spec.rb +28 -0
  41. data/spec/lib/faucet_spec.rb +30 -0
  42. data/spec/lib/helloblock_spec.rb +51 -0
  43. data/spec/lib/request_spec.rb +41 -0
  44. data/spec/lib/transaction_spec.rb +106 -0
  45. data/spec/spec_helper.rb +13 -0
  46. metadata +251 -0
@@ -0,0 +1,77 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock::Address, '.query' do
4
+ it 'defaults to the query hash' do
5
+ expect(HelloBlock::Address.query).to eq(
6
+ { path: '/addresses/', params: {} }
7
+ )
8
+ end
9
+ end
10
+
11
+ describe HelloBlock::Address, '.find' do
12
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
13
+ after :each do
14
+ HelloBlock::Address.inspect # clear the query for other specs
15
+ end
16
+
17
+ it 'adds a single specific address to the path' do
18
+ HelloBlock::Address.find(address)
19
+
20
+ expect(HelloBlock::Address.query).to eq(
21
+ { path: "/addresses/#{address}", params: {} }
22
+ )
23
+ end
24
+ end
25
+
26
+ describe HelloBlock::Address, 'inspect' do
27
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
28
+ before :each do
29
+ HelloBlock.stub(:get)
30
+ end
31
+
32
+ it 'resets the query' do
33
+ HelloBlock::Address.find(address).inspect
34
+
35
+ expect(HelloBlock::Address.query).to eq({ path: "/addresses/", params: {} })
36
+ end
37
+ end
38
+
39
+ describe HelloBlock::Address, '.where' do
40
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
41
+ let(:connection) { double(:faraday_connection).as_null_object }
42
+
43
+ it 'adds a batch of specific addresses to the params' do
44
+ HelloBlock.stub(:connection).and_return(connection)
45
+
46
+ response = HelloBlock::Address.where(address: [address, address])
47
+
48
+ response['status'] # kick the query
49
+
50
+ expect(connection).to have_received(:get).with(
51
+ '/v1/addresses/', { addresses: [address, address] },
52
+ { accept: '*/*', content_type: 'application/json; charset=UTF-8' }
53
+ )
54
+ end
55
+ end
56
+
57
+ describe HelloBlock::Address, '.unspents' do
58
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
59
+ after :each do
60
+ HelloBlock::Address.inspect
61
+ end
62
+
63
+ it 'adds the unspents endpoint to the path for a single address' do
64
+ HelloBlock::Address.find(address).unspents
65
+
66
+ expect(HelloBlock::Address.query[:path]).to eq "/addresses/#{address}/unspents"
67
+ end
68
+
69
+ it 'adds the unspents endpoint to the path for a batch of addresses' do
70
+ HelloBlock::Address.where(address: [address, address]).unspents
71
+
72
+ expect(HelloBlock::Address.query[:path]).to eq "/addresses/unspents"
73
+ expect(HelloBlock::Address.query[:params]).to eq(
74
+ { addresses: [address, address] }
75
+ )
76
+ end
77
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock::Connection, '.connection' do
4
+ it 'is available on HelloBlock' do
5
+ faraday = double(:faraday_connection).as_null_object
6
+ Faraday.stub(:new).and_return(faraday)
7
+
8
+ connection = HelloBlock.connection
9
+
10
+ expect(connection).to eq faraday
11
+ end
12
+ end
13
+
14
+ describe HelloBlock::Connection, '.connection_options' do
15
+ it 'returns the headers and request settings' do
16
+ expect(HelloBlock.connection_options).to eq(
17
+ { headers: {
18
+ accept: 'application/json',
19
+ user_agent: "HelloBlock Gem #{HelloBlock::VERSION}"
20
+ },
21
+ request: {
22
+ open_timeout: 10,
23
+ timeout: 30
24
+ }
25
+ }
26
+ )
27
+ end
28
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock::Faucet, '.where' do
4
+ after :each do
5
+ HelloBlock::Faucet.inspect
6
+ end
7
+
8
+ it 'adds the type to the params' do
9
+ HelloBlock::Faucet.where(type: 3)
10
+
11
+ expect(HelloBlock::Faucet.query[:params]).to eq({ type: 3 })
12
+ expect(HelloBlock::Faucet.query[:path]).to eq '/faucet'
13
+ end
14
+ end
15
+
16
+ describe HelloBlock::Faucet, '.withdraw' do
17
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
18
+ after :each do
19
+ HelloBlock::Faucet.inspect
20
+ end
21
+
22
+ it 'adds the type to the params' do
23
+ HelloBlock::Faucet.withdraw(to: address, amount: 100_000)
24
+
25
+ expect(HelloBlock::Faucet.query[:path]).to eq '/faucet/withdrawal'
26
+ expect(HelloBlock::Faucet.query[:params]).to eq(
27
+ { toAddress: address, amount: 100_000, post: true }
28
+ )
29
+ end
30
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock, '.api_key=' do
4
+ it 'sets the api key' do
5
+ HelloBlock.api_key = 'apikey'
6
+
7
+ expect(HelloBlock.api_key).to eq 'apikey'
8
+ end
9
+ end
10
+
11
+ describe HelloBlock, '.network=' do
12
+ it 'sets the network to testnet or mainnet' do
13
+ HelloBlock.network = :mainnet
14
+
15
+ expect(HelloBlock.network).to eq :mainnet
16
+ end
17
+ end
18
+
19
+ describe HelloBlock, '.network' do
20
+ it 'defaults to testnet' do
21
+ expect(HelloBlock.network).to eq :testnet
22
+ end
23
+ end
24
+
25
+ describe HelloBlock, '.version=' do
26
+ it 'sets the version of the api to use' do
27
+ HelloBlock.version = :v5
28
+
29
+ expect(HelloBlock.version).to eq :v5
30
+ end
31
+ end
32
+
33
+ describe HelloBlock, '.version' do
34
+ it 'defaults to v1' do
35
+ expect(HelloBlock.version).to eq :v1
36
+ end
37
+ end
38
+
39
+ describe HelloBlock, '.configure' do
40
+ it 'accepts a block of configurations' do
41
+ HelloBlock.configure do |config|
42
+ config.api_key = 'bananas'
43
+ config.network = :mainnet
44
+ config.version = :v2
45
+ end
46
+
47
+ expect(HelloBlock.api_key).to eq 'bananas'
48
+ expect(HelloBlock.network).to eq :mainnet
49
+ expect(HelloBlock.version).to eq :v2
50
+ end
51
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock::Request, '.get' do
4
+ let(:connection) { double(:faraday_connection).as_null_object }
5
+ before :each do
6
+ HelloBlock.stub(:connection).and_return(connection)
7
+ end
8
+
9
+ it 'is available on HelloBlock' do
10
+ connection.stub_chain(:get, :body)
11
+
12
+ HelloBlock.get('/bananas/', {})
13
+
14
+ expect(connection).to have_received(:get).with(
15
+ '/v1/bananas/', {}, {
16
+ accept: '*/*',
17
+ content_type: 'application/json; charset=UTF-8'
18
+ }
19
+ )
20
+ end
21
+ end
22
+
23
+ describe HelloBlock::Request, '.post' do
24
+ let(:connection) { double(:faraday_connection).as_null_object }
25
+ before :each do
26
+ HelloBlock.stub(:connection).and_return(connection)
27
+ end
28
+
29
+ it 'is available on HelloBlock' do
30
+ connection.stub_chain(:post, :body)
31
+
32
+ HelloBlock.post('/bananas/', {})
33
+
34
+ expect(connection).to have_received(:post).with(
35
+ '/v1/bananas/', { body: {} }, {
36
+ accept: '*/*',
37
+ content_type: 'application/json; charset=UTF-8'
38
+ }
39
+ )
40
+ end
41
+ end
@@ -0,0 +1,106 @@
1
+ require 'spec_helper'
2
+
3
+ describe HelloBlock::Transaction, '.query' do
4
+ it 'defaults to the query hash' do
5
+ expect(HelloBlock::Transaction.query).to eq(
6
+ { path: '/transactions/', params: {} }
7
+ )
8
+ end
9
+ end
10
+
11
+ describe HelloBlock::Transaction, 'inspect' do
12
+ it 'kicks the query and resets the query hash' do
13
+ HelloBlock::Transaction.find('bananas')
14
+
15
+ HelloBlock::Transaction.inspect
16
+
17
+ expect(HelloBlock::Transaction.query).to eq(
18
+ { path: '/transactions/', params: {} }
19
+ )
20
+ end
21
+ end
22
+
23
+ describe HelloBlock::Transaction, '.find' do
24
+ let(:tx) { 'f37e6181661473c14a123cca6f0ad0ab3303d011246f1d4bb4ccf3fccef2d700' }
25
+ after :each do
26
+ HelloBlock::Transaction.inspect #clear the query for other specs
27
+ end
28
+
29
+ it 'adds a single transaction hash to the path' do
30
+ HelloBlock::Transaction.find(tx)
31
+
32
+ expect(HelloBlock::Transaction.query[:path]).to eq("/transactions/#{tx}")
33
+ end
34
+ end
35
+
36
+ describe HelloBlock::Transaction, '.where' do
37
+ let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
38
+ let(:tx) { 'f37e6181661473c14a123cca6f0ad0ab3303d011246f1d4bb4ccf3fccef2d700' }
39
+ after :each do
40
+ HelloBlock::Transaction.inspect
41
+ end
42
+
43
+ it 'adds a batch of transaction hashes to the params and alters the path' do
44
+ HelloBlock::Transaction.where(transaction: [tx, tx])
45
+
46
+ expect(HelloBlock::Transaction.query[:params]).to eq(
47
+ txHashes: [tx, tx]
48
+ )
49
+ end
50
+
51
+ it 'adds a batch of addresses to the params' do
52
+ HelloBlock::Transaction.where(address: [address, address])
53
+
54
+ expect(HelloBlock::Transaction.query[:path]).to eq '/addresses/transactions'
55
+ expect(HelloBlock::Transaction.query[:params]).to eq(
56
+ { addresses: [address, address] }
57
+ )
58
+ end
59
+ end
60
+
61
+
62
+ describe HelloBlock::Transaction, '.last' do
63
+ after :each do
64
+ HelloBlock::Transaction.inspect
65
+ end
66
+
67
+ it 'changes the path to the latest transactions path and passes a limit' do
68
+ HelloBlock::Transaction.last(5)
69
+
70
+ expect(HelloBlock::Transaction.query[:path]).to eq '/transactions/latest'
71
+ expect(HelloBlock::Transaction.query[:params]).to eq({ limit: 5 })
72
+ end
73
+ end
74
+
75
+ describe HelloBlock::Transaction, '.offset' do
76
+ after :each do
77
+ HelloBlock::Transaction.inspect
78
+ end
79
+
80
+ it 'changes the path to the latest transactions path and passes a limit' do
81
+ HelloBlock::Transaction.offset(5)
82
+
83
+ expect(HelloBlock::Transaction.query[:params]).to eq({ offset: 5 })
84
+ end
85
+ end
86
+
87
+ describe HelloBlock::Transaction, '.create' do
88
+ let(:tx) { '0100000001ec71e2ceac8476bea21fbc4a97062c000f07def6c8ef8d917' +
89
+ '1fb1a5e113418e0010000008c493046022100e6f39b4393794ef03b0f9d' +
90
+ 'c71395e0835a211015b42ab4329cb6a6c1c8b3c6ea022100f1ccae451f3' +
91
+ '5e5c5ad25a8f7e7b5e778bafc4dc69dd560fab1cbadbb88767916014104' +
92
+ 'e1934263e84e202ebffca95246b63c18c07cd369c4f02de76dbd1db89e6' +
93
+ '255dacb3ab1895af0422e24e1d1099e80f01b899cfcdf9b947575352dbc' +
94
+ '1af57466b5ffffffff0210270000000000001976a914652c453e3f8768d' +
95
+ '6d6e1f2985cb8939db91a4e0588ace065f81f000000001976a914cf0dfe' +
96
+ '6e0fa6ea5dda32c58ff699071b672e1faf88ac00000000' }
97
+ after :each do
98
+ HelloBlock::Transaction.inspect
99
+ end
100
+
101
+ it 'sets the raw transaction hex in the parameters' do
102
+ HelloBlock::Transaction.create(tx)
103
+
104
+ expect(HelloBlock::Transaction.query[:params]).to eq({ rawTxHex: tx })
105
+ end
106
+ end
@@ -0,0 +1,13 @@
1
+ require 'helloblock'
2
+ require 'rspec'
3
+ require 'vcr'
4
+
5
+ VCR.configure do |config|
6
+ config.cassette_library_dir = 'spec/fixture/vcr_cassettes'
7
+ config.hook_into :webmock
8
+ config.allow_http_connections_when_no_cassette = true
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.before(:each){ HelloBlock.reset }
13
+ end
metadata ADDED
@@ -0,0 +1,251 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: helloblock
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nathaniel Wroblewski
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.14'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.14'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.17'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.17'
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.8'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.8'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '4.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '4.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: multi_json
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '1.9'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '1.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: yajl-ruby
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '1.2'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '1.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: faraday_middleware
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: '0.9'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: '0.9'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rash
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: '0.4'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '0.4'
153
+ description: Fluent Ruby wrapper for the helloblock.io API
154
+ email:
155
+ - nathanielwroblewski@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - .gitignore
161
+ - Gemfile
162
+ - LICENSE.txt
163
+ - README.md
164
+ - Rakefile
165
+ - helloblock.gemspec
166
+ - lib/helloblock.rb
167
+ - lib/helloblock/api_interface/api_parameters.rb
168
+ - lib/helloblock/api_interface/endpoints.rb
169
+ - lib/helloblock/configuration.rb
170
+ - lib/helloblock/http/connection.rb
171
+ - lib/helloblock/http/request.rb
172
+ - lib/helloblock/resources/address.rb
173
+ - lib/helloblock/resources/block.rb
174
+ - lib/helloblock/resources/faucet.rb
175
+ - lib/helloblock/resources/query.rb
176
+ - lib/helloblock/resources/transaction.rb
177
+ - lib/helloblock/resources/wallet.rb
178
+ - lib/helloblock/spec_helper.rb
179
+ - lib/helloblock/utils.rb
180
+ - lib/helloblock/version.rb
181
+ - spec/fixture/vcr_cassettes/batch_address_unspents.yml
182
+ - spec/fixture/vcr_cassettes/batch_addresses.yml
183
+ - spec/fixture/vcr_cassettes/batch_transactions.yml
184
+ - spec/fixture/vcr_cassettes/batch_transactions_addresses.yml
185
+ - spec/fixture/vcr_cassettes/batch_unspents.yml
186
+ - spec/fixture/vcr_cassettes/faucet.yml
187
+ - spec/fixture/vcr_cassettes/latest_blocks.yml
188
+ - spec/fixture/vcr_cassettes/latest_transactions.yml
189
+ - spec/fixture/vcr_cassettes/propagate.yml
190
+ - spec/fixture/vcr_cassettes/single_address.yml
191
+ - spec/fixture/vcr_cassettes/single_address_unspents.yml
192
+ - spec/fixture/vcr_cassettes/single_block.yml
193
+ - spec/fixture/vcr_cassettes/single_transaction.yml
194
+ - spec/fixture/vcr_cassettes/wallet.yml
195
+ - spec/fixture/vcr_cassettes/withdrawal.yml
196
+ - spec/integration/api_calls_work_spec.rb
197
+ - spec/lib/address_spec.rb
198
+ - spec/lib/connection_spec.rb
199
+ - spec/lib/faucet_spec.rb
200
+ - spec/lib/helloblock_spec.rb
201
+ - spec/lib/request_spec.rb
202
+ - spec/lib/transaction_spec.rb
203
+ - spec/spec_helper.rb
204
+ homepage: ''
205
+ licenses:
206
+ - MIT
207
+ metadata: {}
208
+ post_install_message:
209
+ rdoc_options: []
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - '>='
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 2.0.5
225
+ signing_key:
226
+ specification_version: 4
227
+ summary: Fluent Ruby wrapper for the helloblock.io API
228
+ test_files:
229
+ - spec/fixture/vcr_cassettes/batch_address_unspents.yml
230
+ - spec/fixture/vcr_cassettes/batch_addresses.yml
231
+ - spec/fixture/vcr_cassettes/batch_transactions.yml
232
+ - spec/fixture/vcr_cassettes/batch_transactions_addresses.yml
233
+ - spec/fixture/vcr_cassettes/batch_unspents.yml
234
+ - spec/fixture/vcr_cassettes/faucet.yml
235
+ - spec/fixture/vcr_cassettes/latest_blocks.yml
236
+ - spec/fixture/vcr_cassettes/latest_transactions.yml
237
+ - spec/fixture/vcr_cassettes/propagate.yml
238
+ - spec/fixture/vcr_cassettes/single_address.yml
239
+ - spec/fixture/vcr_cassettes/single_address_unspents.yml
240
+ - spec/fixture/vcr_cassettes/single_block.yml
241
+ - spec/fixture/vcr_cassettes/single_transaction.yml
242
+ - spec/fixture/vcr_cassettes/wallet.yml
243
+ - spec/fixture/vcr_cassettes/withdrawal.yml
244
+ - spec/integration/api_calls_work_spec.rb
245
+ - spec/lib/address_spec.rb
246
+ - spec/lib/connection_spec.rb
247
+ - spec/lib/faucet_spec.rb
248
+ - spec/lib/helloblock_spec.rb
249
+ - spec/lib/request_spec.rb
250
+ - spec/lib/transaction_spec.rb
251
+ - spec/spec_helper.rb