steem-ruby 0.9.4 → 0.9.5

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
  SHA256:
3
- metadata.gz: 67cb40fbb1b8cf229d3b7fe3388ce1f9ea0b922b2f16f42d73873d965971e209
4
- data.tar.gz: b687c618e644cf4a0128875b4e40d16407b3138d91d777c69879585b0c561a93
3
+ metadata.gz: 6ee068c00342f904efe37abe6e2cafa9332b1221cac3598071aefab473cfe996
4
+ data.tar.gz: b84eb953f450d52ebabfb1417b2e46a0154aeb8a1066981dcee937480b761632
5
5
  SHA512:
6
- metadata.gz: 8235f9f83af323bce4df042c7eb2c6c504af5385cc137520b068c850ca5bc2f661e492ac547001dbb1892f6cc3dd053f1d1db8c9df3977b5ca0dcdb5ab7d31b9
7
- data.tar.gz: 23948d457b71f64db355850214d61b8d5a61439b8ae7af3f60e8583a7cb3335af861572f21a0daba5ae218e92a60caeec1bb651ab64399de73ea88f47a6ab743
6
+ metadata.gz: 824809d5a78d22ac1d15c812537e4c6fa11e85e56920cee365c18c18efc932ba7b265f049462407dd3acae1f460e912f0f582d6f2b05f07ebae8075a8c25b02a
7
+ data.tar.gz: b5fd1bb775ec114939ac338e9f4a83dee337af072b17d435475c420b84b272880bc5847ab3cb8b88f6f689e661fb2897ac729cc6d540ea8ac1fff1073bba69bc
data/.gitignore CHANGED
@@ -43,7 +43,7 @@ build-iPhoneSimulator/
43
43
 
44
44
  # for a library or gem, you might want to ignore these files since the code is
45
45
  # intended to run in multiple environments; otherwise, check them in:
46
- # Gemfile.lock
46
+ Gemfile.lock
47
47
  # .ruby-version
48
48
  # .ruby-gemset
49
49
 
@@ -70,6 +70,58 @@ module Steem
70
70
  process(options.merge(ops: ops), &block)
71
71
  end
72
72
 
73
+ # This operation is used to cast a vote on a post/comment using multiple votable assets.
74
+ #
75
+ # options = {
76
+ # wif: wif,
77
+ # params: {
78
+ # voter: voter,
79
+ # author: author,
80
+ # permlink: permlink,
81
+ # TODO
82
+ # }
83
+ # }
84
+ #
85
+ # Steem::Broadcast.vote2(options) do |result|
86
+ # puts result
87
+ # end
88
+ #
89
+ # @param options [Hash] options
90
+ # @option options [String] :wif Posting wif
91
+ # @option options [Hash] :params
92
+ # * :voter (String)
93
+ # * :author (String)
94
+ # * :permlink (String)
95
+ # * :rshares (Array)
96
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
97
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_vote
98
+ def self.vote2(options, &block)
99
+ required_fields = %i(voter author permlink rshares)
100
+ params = options[:params]
101
+ check_required_fields(params, *required_fields)
102
+
103
+ ops = [[:vote2, params]]
104
+
105
+ process(options.merge(ops: ops), &block)
106
+ end
107
+
108
+ # @param options [Hash] options
109
+ # @option options [String] :wif Posting wif
110
+ # @option options [Hash] :params
111
+ # * :account (String)
112
+ # * :reward_tokens (Array)
113
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
114
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_vote
115
+ def self.claim_reward_balance2(options, &block)
116
+ required_fields = %i(account reward_tokens)
117
+ params = options[:params]
118
+ check_required_fields(params, *required_fields)
119
+
120
+ ops = [[:claim_reward_balance2, params]]
121
+
122
+ process(options.merge(ops: ops), &block)
123
+ end
124
+
73
125
  # Creates a post/comment. This method simplifies content creation by
74
126
  # combining `comment` and `comment_options` into one transaction.
75
127
  #
@@ -381,6 +433,42 @@ module Steem
381
433
  process(options.merge(ops: ops), &block)
382
434
  end
383
435
 
436
+ # This operation creates a limit order and matches it against existing open
437
+ # orders.
438
+ #
439
+ # @param options [Hash] options
440
+ # @option options [String] :wif Active wif
441
+ # @option options [Hash] :params
442
+ # * :owner (String)
443
+ # * :orderid (String)
444
+ # * :amount_to_sell (String)
445
+ # * :exchange_rate (Hash)
446
+ # * :fill_or_kill (Boolean)
447
+ # * :expiration (String)
448
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
449
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_limit_order_create2
450
+ def self.limit_order_create2(options, &block)
451
+ required_fields = %i(owner orderid amount_to_sell exchange_rate
452
+ fill_or_kill)
453
+ params = options[:params]
454
+ check_required_fields(params, *required_fields)
455
+
456
+ params[:amount_to_sell] = normalize_amount(options.merge amount: params[:amount_to_sell])
457
+ params[:exchange_rate] = {
458
+ base: normalize_amount(options.merge amount: params[:exchange_rate][:base]),
459
+ quote: normalize_amount(options.merge amount: params[:exchange_rate][:quote])
460
+ }
461
+
462
+ if !!params[:expiration]
463
+ params[:expiration] = Time.parse(params[:expiration].to_s)
464
+ params[:expiration] = params[:expiration].strftime('%Y-%m-%dT%H:%M:%S')
465
+ end
466
+
467
+ ops = [[:limit_order_create2, params]]
468
+
469
+ process(options.merge(ops: ops), &block)
470
+ end
471
+
384
472
  # Cancels an order and returns the balance to owner.
385
473
  #
386
474
  # @param options [Hash] options
@@ -1240,6 +1328,166 @@ module Steem
1240
1328
  process(options.merge(ops: ops), &block)
1241
1329
  end
1242
1330
 
1331
+ # @param options [Hash] options
1332
+ # @option options [String] :wif Active wif
1333
+ # @option options [Hash] :params
1334
+ # * :control_account (String)
1335
+ # * :symbol (Hash)
1336
+ # * :smt_creation_fee (Hash)
1337
+ # * :precision (Integer)
1338
+ # * :extensions (Array)
1339
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1340
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1341
+ def self.smt_create(options, &block)
1342
+ required_fields = %i(control_account symbol smt_creation_fee precision)
1343
+ params = options[:params]
1344
+
1345
+ check_required_fields(params, *required_fields)
1346
+
1347
+ params[:smt_creation_fee] = normalize_amount(options.merge amount: params[:smt_creation_fee])
1348
+ params[:extensions] ||= []
1349
+
1350
+ ops = [[:smt_create, params]]
1351
+
1352
+ process(options.merge(ops: ops), &block)
1353
+ end
1354
+
1355
+ # @param options [Hash] options
1356
+ # @option options [String] :wif Active wif
1357
+ # @option options [Hash] :params
1358
+ # * :control_account (String)
1359
+ # * :symbol (Hash)
1360
+ # * :contribution_begin_time (String)
1361
+ # * :contribution_end_time (String)
1362
+ # * :launch_time max_supply (String)
1363
+ # * :steem_units_hard_cap (Integer)
1364
+ # * :steem_units_soft_cap (Integer)
1365
+ # * :steem_units_min (Integer)
1366
+ # * initial_generation_policy (String)
1367
+ # * :extensions (Array)
1368
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1369
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1370
+ def self.smt_setup(options, &block)
1371
+ required_fields = %i(control_account symbol contribution_begin_time contribution_end_time launch_time max_supply steem_units_hard_cap steem_units_soft_cap steem_units_min initial_generation_policy)
1372
+ params = options[:params]
1373
+
1374
+ check_required_fields(params, *required_fields)
1375
+
1376
+ params[:extensions] ||= []
1377
+
1378
+ ops = [[:smt_setup, params]]
1379
+
1380
+ process(options.merge(ops: ops), &block)
1381
+ end
1382
+
1383
+ # @param options [Hash] options
1384
+ # @option options [String] :wif Active wif
1385
+ # @option options [Hash] :params
1386
+ # * :control_account (String)
1387
+ # * :symbol (Hash)
1388
+ # * :setup_parameters (Array)
1389
+ # * :extensions (Array)
1390
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1391
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1392
+ def self.smt_set_setup_parameters(options, &block)
1393
+ required_fields = %i(control_account symbol setup_parameters)
1394
+ params = options[:params]
1395
+
1396
+ check_required_fields(params, *required_fields)
1397
+
1398
+ params[:extensions] ||= []
1399
+
1400
+ ops = [[:smt_set_setup_parameters, params]]
1401
+
1402
+ process(options.merge(ops: ops), &block)
1403
+ end
1404
+
1405
+ # @param options [Hash] options
1406
+ # @option options [String] :wif Active wif
1407
+ # @option options [Hash] :params
1408
+ # * :control_account (String)
1409
+ # * :symbol (Hash)
1410
+ # * :runtime_parameters (Array)
1411
+ # * :extensions (Array)
1412
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1413
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1414
+ def self.smt_set_runtime_parameters(options, &block)
1415
+ required_fields = %i(control_account symbol runtime_parameters)
1416
+ params = options[:params]
1417
+
1418
+ check_required_fields(params, *required_fields)
1419
+
1420
+ params[:extensions] ||= []
1421
+
1422
+ ops = [[:smt_set_runtime_parameters, params]]
1423
+
1424
+ process(options.merge(ops: ops), &block)
1425
+ end
1426
+
1427
+ # @param options [Hash] options
1428
+ # @option options [String] :wif Active wif
1429
+ # @option options [Hash] :params
1430
+ # * :control_account (String)
1431
+ # * :symbol (Hash)
1432
+ # * :extensions (Array)
1433
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1434
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1435
+ def self.smt_setup_emissions(options, &block)
1436
+ required_fields = %i(control_account symbol schedule_time emissions_unit interval_seconds interval_count lep_time rep_time lep_abs_amount rep_abs_amount lep_rel_amount_numerator rep_rel_amount_numerator rel_amount_denom_bits remove floor_emissions)
1437
+ params = options[:params]
1438
+
1439
+ check_required_fields(params, *required_fields)
1440
+
1441
+ params[:extensions] ||= []
1442
+
1443
+ ops = [[:smt_setup_emissions, params]]
1444
+
1445
+ process(options.merge(ops: ops), &block)
1446
+ end
1447
+
1448
+ # @param options [Hash] options
1449
+ # @option options [String] :wif Active wif
1450
+ # @option options [Hash] :params
1451
+ # * :control_account (String)
1452
+ # * :symbol (Hash)
1453
+ # * :extensions (Array)
1454
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1455
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1456
+ def self.smt_contribute(options, &block)
1457
+ required_fields = %i(contributor symbol contribution_id contribution)
1458
+ params = options[:params]
1459
+
1460
+ check_required_fields(params, *required_fields)
1461
+
1462
+ params[:extensions] ||= []
1463
+
1464
+ ops = [[:smt_contribute, params]]
1465
+
1466
+ process(options.merge(ops: ops), &block)
1467
+ end
1468
+
1469
+ # @param options [Hash] options
1470
+ # @option options [String] :wif Active wif
1471
+ # @option options [Hash] :params
1472
+ # * :from_account (String)
1473
+ # * :to_pool (String)
1474
+ # * :amount (Hash)
1475
+ # * :extensions (Array)
1476
+ # @option options [Boolean] :pretend Just validate, do not broadcast.
1477
+ # @see https://developers.steem.io/apidefinitions/broadcast-ops#broadcast_ops_smt_create
1478
+ def self.delegate_to_pool(options, &block)
1479
+ required_fields = %i(from_account to_pool amount)
1480
+ params = options[:params]
1481
+
1482
+ check_required_fields(params, *required_fields)
1483
+
1484
+ params[:extensions] ||= []
1485
+
1486
+ ops = [[:delegate_to_pool, params]]
1487
+
1488
+ process(options.merge(ops: ops), &block)
1489
+ end
1490
+
1243
1491
  # @param options [Hash] options
1244
1492
  # @option options [Array<Array<Hash>] :ops Operations to process.
1245
1493
  # @option options [Boolean] :pretend Just validate, do not broadcast.
@@ -3,8 +3,8 @@ module Steem
3
3
  EXPIRE_IN_SECS = 600
4
4
  EXPIRE_IN_SECS_PROPOSAL = 24 * 60 * 60
5
5
 
6
- NETWORKS_STEEM_CHAIN_ID = '0000000000000000000000000000000000000000000000000000000000000000'
7
- NETWORKS_STEEM_ADDRESS_PREFIX = 'STM'
6
+ NETWORKS_STEEM_CHAIN_ID = 'abc93c9021bbd9a8dd21c438ee3c480a661ca1966b5e4e838326dcf42a3dac2d'
7
+ NETWORKS_STEEM_ADDRESS_PREFIX = 'TST'
8
8
  NETWORKS_STEEM_CORE_ASSET = ["0", 3, "@@000000021"] # STEEM
9
9
  NETWORKS_STEEM_DEBT_ASSET = ["0", 3, "@@000000013"] # SBD
10
10
  NETWORKS_STEEM_VEST_ASSET = ["0", 6, "@@000000037"] # VESTS
@@ -24,7 +24,7 @@ module Steem
24
24
  # NETWORKS_STEEM_DEFAULT_NODE = 'https://rpc.steemviz.com'
25
25
  # NETWORKS_STEEM_DEFAULT_NODE = 'https://steemd.steemgigs.org'
26
26
 
27
- NETWORKS_TEST_CHAIN_ID = '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32'
27
+ NETWORKS_TEST_CHAIN_ID = 'abc93c9021bbd9a8dd21c438ee3c480a661ca1966b5e4e838326dcf42a3dac2d'
28
28
  NETWORKS_TEST_ADDRESS_PREFIX = 'TST'
29
29
  NETWORKS_TEST_CORE_ASSET = ["0", 3, "@@000000021"] # TESTS
30
30
  NETWORKS_TEST_DEBT_ASSET = ["0", 3, "@@000000013"] # TBD
@@ -1,3 +1,5 @@
1
+ require 'pry'
2
+
1
3
  module Steem
2
4
  # {TransactionBuilder} can be used to create a transaction that the
3
5
  # {NetworkBroadcastApi} can broadcast to the rest of the platform. The main
@@ -35,7 +37,7 @@ module Steem
35
37
  alias force_serialize? force_serialize
36
38
 
37
39
  def initialize(options = {})
38
- @app_base = !!options[:app_base] # default false
40
+ @app_base = true#!!options[:app_base] # default false
39
41
  @database_api = options[:database_api]
40
42
  @block_api = options[:block_api]
41
43
 
@@ -49,8 +51,8 @@ module Steem
49
51
 
50
52
  @wif = [options[:wif]].flatten
51
53
  @signed = false
52
- @testnet = !!options[:testnet]
53
- @force_serialize = !!options[:force_serialize]
54
+ @testnet = true#!!options[:testnet]
55
+ @force_serialize = true#!!options[:force_serialize]
54
56
 
55
57
  if !!(trx = options[:trx])
56
58
  trx = case trx
@@ -62,7 +64,7 @@ module Steem
62
64
  end
63
65
 
64
66
  @trx ||= Transaction.new
65
- @chain = options[:chain] || :steem
67
+ @chain = options[:chain] || :test
66
68
  @error_pipe = options[:error_pipe] || STDERR
67
69
  @chain_id = options[:chain_id]
68
70
  @chain_id ||= case @chain
@@ -71,9 +73,9 @@ module Steem
71
73
  else; raise UnsupportedChainError, "Unsupported chain: #{@chain}"
72
74
  end
73
75
 
74
- if testnet? && @chain_id == NETWORKS_STEEM_CHAIN_ID
75
- raise UnsupportedChainError, "Unsupported testnet chain id: #{@chain_id}"
76
- end
76
+ # if testnet? && @chain_id == NETWORKS_STEEM_CHAIN_ID
77
+ # raise UnsupportedChainError, "Unsupported testnet chain id: #{@chain_id}"
78
+ # end
77
79
  end
78
80
 
79
81
  def inspect
@@ -215,7 +217,7 @@ module Steem
215
217
  catch :serialize do; begin
216
218
  transaction_hex.tap do |result|
217
219
  hex = if app_base?
218
- result.hex
220
+ result
219
221
  else
220
222
  result
221
223
  end
@@ -236,7 +238,7 @@ module Steem
236
238
  raise SerializationMismatchError unless @trx == derrived_trx
237
239
  end
238
240
 
239
- hex = hex[0..-4] # drop empty signature array
241
+ hex = hex.to_s[0..-4] # drop empty signature array
240
242
  @trx.id = Digest::SHA256.hexdigest(unhexlify(hex))[0..39]
241
243
 
242
244
  hex = @chain_id + hex
@@ -27,7 +27,7 @@ module Steem
27
27
  when '@@000000013' then 'SBD'
28
28
  when '@@000000021' then 'STEEM'
29
29
  when '@@000000037' then 'VESTS'
30
- else; raise TypeError, "Asset #{@nai} unknown."
30
+ # else; raise TypeError, "Asset #{@nai} unknown."
31
31
  end
32
32
 
33
33
  @amount = "%.#{@precision}f" % (@amount.to_f / 10 ** @precision)
@@ -40,7 +40,7 @@ module Steem
40
40
  when '@@000000013' then 'SBD'
41
41
  when '@@000000021' then 'STEEM'
42
42
  when '@@000000037' then 'VESTS'
43
- else; raise TypeError, "Asset #{@nai} unknown."
43
+ # else; raise TypeError, "Asset #{@nai} unknown."
44
44
  end
45
45
 
46
46
  @amount = "%.#{@precision}f" % (@amount.to_f / 10 ** @precision)
@@ -57,7 +57,7 @@ module Steem
57
57
  when 'SBD' then 3
58
58
  when 'TESTS' then 3
59
59
  when 'TBD' then 3
60
- else; raise TypeError, "Asset #{@asset} unknown."
60
+ # else; raise TypeError, "Asset #{@asset} unknown."
61
61
  end
62
62
  end
63
63
  end
@@ -81,7 +81,7 @@ module Steem
81
81
 
82
82
  def to_h
83
83
  case @asset
84
- when 'STEEM' then {
84
+ when 'STEEM', 'TESTS' then {
85
85
  amount: (@amount.to_f * 1000).to_i.to_s,
86
86
  precision: 3,
87
87
  nai: '@@000000021'
@@ -91,11 +91,17 @@ module Steem
91
91
  precision: 6,
92
92
  nai: '@@000000037'
93
93
  }
94
- when 'SBD' then {
94
+ when 'SBD', 'TBD' then {
95
95
  amount: (@amount.to_f * 1000).to_i.to_s,
96
96
  precision: 3,
97
97
  nai: '@@000000013'
98
98
  }
99
+ else
100
+ {
101
+ amount: (@amount.to_f * (10 ** @precision)).to_i.to_s,
102
+ precision: @precision,
103
+ nai: @nai
104
+ }
99
105
  end
100
106
  end
101
107
 
@@ -1,4 +1,4 @@
1
1
  module Steem
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  AGENT_ID = "steem-ruby/#{VERSION}"
4
4
  end
@@ -17,21 +17,24 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test)/}) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.1'
21
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.0'
20
+ spec.add_development_dependency 'bundler', '~> 2.1', '>= 1.16.1'
21
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 12.3.0'
22
22
  spec.add_development_dependency 'minitest', '~> 5.10', '>= 5.10.3'
23
23
  spec.add_development_dependency 'minitest-line', '~> 0.6', '>= 0.6.4'
24
24
  spec.add_development_dependency 'minitest-proveit', '~> 1.0', '>= 1.0.0'
25
25
  spec.add_development_dependency 'webmock', '~> 3.3', '>= 3.3.0'
26
26
  spec.add_development_dependency 'simplecov', '~> 0.15', '>= 0.15.1'
27
- spec.add_development_dependency 'vcr', '~> 4.0', '>= 4.0.0'
27
+ spec.add_development_dependency 'vcr', '~> 6.0', '>= 4.0.0'
28
28
  spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.12'
29
29
  spec.add_development_dependency 'pry', '~> 0.11', '>= 0.11.3'
30
30
  spec.add_development_dependency 'awesome_print', '~> 1.8', '>= 1.8.0'
31
+ spec.add_development_dependency 'rb-readline', '~> 0.5', '>= 0.5.5'
32
+ spec.add_development_dependency 'irb', '~> 1.0', '>= 1.0.0'
33
+ spec.add_development_dependency 'highline', '~> 2.0', '>= 2.0.3'
31
34
 
32
35
  spec.add_dependency 'json', '~> 2.1', '>= 2.1.0'
33
36
  spec.add_dependency 'logging', '~> 2.2', '>= 2.2.0'
34
- spec.add_dependency 'hashie', '~> 3.5', '>= 3.5.7'
37
+ spec.add_dependency 'hashie', '~> 4.1', '>= 3.5.7'
35
38
  spec.add_dependency 'bitcoin-ruby', '~> 0.0', '>= 0.0.18'
36
39
  spec.add_dependency 'ffi', '~> 1.9', '>= 1.9.23'
37
40
  spec.add_dependency 'bindata', '~> 2.4', '>= 2.4.4'
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steem-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.16'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 1.16.1
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.1'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.16'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 1.16.1
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '12.3'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 12.3.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '13.0'
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '12.3'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 12.3.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '13.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: minitest
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -94,42 +94,42 @@ dependencies:
94
94
  name: minitest-proveit
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.0'
100
97
  - - ">="
101
98
  - !ruby/object:Gem::Version
102
99
  version: 1.0.0
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.0'
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.0'
110
107
  - - ">="
111
108
  - !ruby/object:Gem::Version
112
109
  version: 1.0.0
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '1.0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: webmock
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '3.3'
120
117
  - - ">="
121
118
  - !ruby/object:Gem::Version
122
119
  version: 3.3.0
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '3.3'
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '3.3'
130
127
  - - ">="
131
128
  - !ruby/object:Gem::Version
132
129
  version: 3.3.0
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '3.3'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: simplecov
135
135
  requirement: !ruby/object:Gem::Requirement
@@ -154,22 +154,22 @@ dependencies:
154
154
  name: vcr
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '4.0'
160
157
  - - ">="
161
158
  - !ruby/object:Gem::Version
162
159
  version: 4.0.0
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '6.0'
163
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '4.0'
170
167
  - - ">="
171
168
  - !ruby/object:Gem::Version
172
169
  version: 4.0.0
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '6.0'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: yard
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -214,82 +214,142 @@ dependencies:
214
214
  name: awesome_print
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: 1.8.0
217
220
  - - "~>"
218
221
  - !ruby/object:Gem::Version
219
222
  version: '1.8'
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
220
227
  - - ">="
221
228
  - !ruby/object:Gem::Version
222
229
  version: 1.8.0
230
+ - - "~>"
231
+ - !ruby/object:Gem::Version
232
+ version: '1.8'
233
+ - !ruby/object:Gem::Dependency
234
+ name: rb-readline
235
+ requirement: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - "~>"
238
+ - !ruby/object:Gem::Version
239
+ version: '0.5'
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: 0.5.5
223
243
  type: :development
224
244
  prerelease: false
225
245
  version_requirements: !ruby/object:Gem::Requirement
226
246
  requirements:
227
247
  - - "~>"
228
248
  - !ruby/object:Gem::Version
229
- version: '1.8'
249
+ version: '0.5'
230
250
  - - ">="
231
251
  - !ruby/object:Gem::Version
232
- version: 1.8.0
252
+ version: 0.5.5
233
253
  - !ruby/object:Gem::Dependency
234
- name: json
254
+ name: irb
235
255
  requirement: !ruby/object:Gem::Requirement
236
256
  requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: 1.0.0
237
260
  - - "~>"
238
261
  - !ruby/object:Gem::Version
239
- version: '2.1'
262
+ version: '1.0'
263
+ type: :development
264
+ prerelease: false
265
+ version_requirements: !ruby/object:Gem::Requirement
266
+ requirements:
240
267
  - - ">="
241
268
  - !ruby/object:Gem::Version
242
- version: 2.1.0
243
- type: :runtime
269
+ version: 1.0.0
270
+ - - "~>"
271
+ - !ruby/object:Gem::Version
272
+ version: '1.0'
273
+ - !ruby/object:Gem::Dependency
274
+ name: highline
275
+ requirement: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - "~>"
278
+ - !ruby/object:Gem::Version
279
+ version: '2.0'
280
+ - - ">="
281
+ - !ruby/object:Gem::Version
282
+ version: 2.0.3
283
+ type: :development
244
284
  prerelease: false
245
285
  version_requirements: !ruby/object:Gem::Requirement
246
286
  requirements:
287
+ - - "~>"
288
+ - !ruby/object:Gem::Version
289
+ version: '2.0'
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: 2.0.3
293
+ - !ruby/object:Gem::Dependency
294
+ name: json
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: 2.1.0
247
300
  - - "~>"
248
301
  - !ruby/object:Gem::Version
249
302
  version: '2.1'
303
+ type: :runtime
304
+ prerelease: false
305
+ version_requirements: !ruby/object:Gem::Requirement
306
+ requirements:
250
307
  - - ">="
251
308
  - !ruby/object:Gem::Version
252
309
  version: 2.1.0
310
+ - - "~>"
311
+ - !ruby/object:Gem::Version
312
+ version: '2.1'
253
313
  - !ruby/object:Gem::Dependency
254
314
  name: logging
255
315
  requirement: !ruby/object:Gem::Requirement
256
316
  requirements:
257
- - - "~>"
258
- - !ruby/object:Gem::Version
259
- version: '2.2'
260
317
  - - ">="
261
318
  - !ruby/object:Gem::Version
262
319
  version: 2.2.0
320
+ - - "~>"
321
+ - !ruby/object:Gem::Version
322
+ version: '2.2'
263
323
  type: :runtime
264
324
  prerelease: false
265
325
  version_requirements: !ruby/object:Gem::Requirement
266
326
  requirements:
267
- - - "~>"
268
- - !ruby/object:Gem::Version
269
- version: '2.2'
270
327
  - - ">="
271
328
  - !ruby/object:Gem::Version
272
329
  version: 2.2.0
330
+ - - "~>"
331
+ - !ruby/object:Gem::Version
332
+ version: '2.2'
273
333
  - !ruby/object:Gem::Dependency
274
334
  name: hashie
275
335
  requirement: !ruby/object:Gem::Requirement
276
336
  requirements:
277
- - - "~>"
278
- - !ruby/object:Gem::Version
279
- version: '3.5'
280
337
  - - ">="
281
338
  - !ruby/object:Gem::Version
282
339
  version: 3.5.7
340
+ - - "~>"
341
+ - !ruby/object:Gem::Version
342
+ version: '4.1'
283
343
  type: :runtime
284
344
  prerelease: false
285
345
  version_requirements: !ruby/object:Gem::Requirement
286
346
  requirements:
287
- - - "~>"
288
- - !ruby/object:Gem::Version
289
- version: '3.5'
290
347
  - - ">="
291
348
  - !ruby/object:Gem::Version
292
349
  version: 3.5.7
350
+ - - "~>"
351
+ - !ruby/object:Gem::Version
352
+ version: '4.1'
293
353
  - !ruby/object:Gem::Dependency
294
354
  name: bitcoin-ruby
295
355
  requirement: !ruby/object:Gem::Requirement
@@ -380,7 +440,6 @@ files:
380
440
  - ".gitignore"
381
441
  - CONTRIBUTING.md
382
442
  - Gemfile
383
- - Gemfile.lock
384
443
  - LICENSE
385
444
  - README.md
386
445
  - Rakefile
@@ -457,7 +516,7 @@ homepage: https://github.com/steem/steem-ruby
457
516
  licenses:
458
517
  - MIT
459
518
  metadata: {}
460
- post_install_message:
519
+ post_install_message:
461
520
  rdoc_options: []
462
521
  require_paths:
463
522
  - lib
@@ -472,9 +531,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
472
531
  - !ruby/object:Gem::Version
473
532
  version: '0'
474
533
  requirements: []
475
- rubyforge_project:
476
- rubygems_version: 2.7.7
477
- signing_key:
534
+ rubygems_version: 3.0.8
535
+ signing_key:
478
536
  specification_version: 4
479
537
  summary: Steem Ruby Client
480
538
  test_files: []
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- steem-ruby (0.9.4)
5
- base58 (~> 0.2, >= 0.2.3)
6
- bindata (~> 2.4, >= 2.4.4)
7
- bitcoin-ruby (~> 0.0, >= 0.0.18)
8
- ffi (~> 1.9, >= 1.9.23)
9
- hashie (~> 3.5, >= 3.5.7)
10
- json (~> 2.1, >= 2.1.0)
11
- logging (~> 2.2, >= 2.2.0)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- addressable (2.5.2)
17
- public_suffix (>= 2.0.2, < 4.0)
18
- awesome_print (1.8.0)
19
- base58 (0.2.3)
20
- bindata (2.4.4)
21
- bitcoin-ruby (0.0.18)
22
- coderay (1.1.2)
23
- crack (0.4.3)
24
- safe_yaml (~> 1.0.0)
25
- docile (1.3.1)
26
- ffi (1.9.25)
27
- hashdiff (0.3.7)
28
- hashie (3.6.0)
29
- json (2.1.0)
30
- little-plugger (1.1.4)
31
- logging (2.2.2)
32
- little-plugger (~> 1.1)
33
- multi_json (~> 1.10)
34
- method_source (0.9.1)
35
- minitest (5.11.3)
36
- minitest-line (0.6.5)
37
- minitest (~> 5.0)
38
- minitest-proveit (1.0.0)
39
- minitest (> 5, < 7)
40
- multi_json (1.13.1)
41
- pry (0.12.0)
42
- coderay (~> 1.1.0)
43
- method_source (~> 0.9.0)
44
- public_suffix (3.0.3)
45
- rake (12.3.1)
46
- safe_yaml (1.0.4)
47
- simplecov (0.16.1)
48
- docile (~> 1.1)
49
- json (>= 1.8, < 3)
50
- simplecov-html (~> 0.10.0)
51
- simplecov-html (0.10.2)
52
- vcr (4.0.0)
53
- webmock (3.4.2)
54
- addressable (>= 2.3.6)
55
- crack (>= 0.3.2)
56
- hashdiff
57
- yard (0.9.16)
58
-
59
- PLATFORMS
60
- ruby
61
-
62
- DEPENDENCIES
63
- awesome_print (~> 1.8, >= 1.8.0)
64
- bundler (~> 1.16, >= 1.16.1)
65
- minitest (~> 5.10, >= 5.10.3)
66
- minitest-line (~> 0.6, >= 0.6.4)
67
- minitest-proveit (~> 1.0, >= 1.0.0)
68
- pry (~> 0.11, >= 0.11.3)
69
- rake (~> 12.3, >= 12.3.0)
70
- simplecov (~> 0.15, >= 0.15.1)
71
- steem-ruby!
72
- vcr (~> 4.0, >= 4.0.0)
73
- webmock (~> 3.3, >= 3.3.0)
74
- yard (~> 0.9, >= 0.9.12)
75
-
76
- BUNDLED WITH
77
- 1.16.5