block_io 1.2.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c7fc111ee1e745f444deeec8b30fa3c3b021fa8e
4
- data.tar.gz: d124f3c04d871af2fad451df1488f8569303ff94
2
+ SHA256:
3
+ metadata.gz: 64a968ba0f92fcd2d78097633d45b3c5af847bb4d485d1edad901dbbfff959d6
4
+ data.tar.gz: 8924f4b86c12833f80bda1ef5f91be065d974f37556a4909703d46b635db0071
5
5
  SHA512:
6
- metadata.gz: 55794be8297122645d9b8b2b978c6377b3aba65b13b3fc155a810d455efc4e4326ac2283553f26e8c7c6bd55ca99bb8191877ad0ef663fcbc61c9b9168464a73
7
- data.tar.gz: c05d90965618efe46d3e4dcee968503962fefd6f196ad34e8bc74fda971c11b16b641e6fa69287d0ae75fdbca848bb585aa83125cbf433880071eed014f3a41e
6
+ metadata.gz: 658d6559024e0bfa246fee235c61327111fd624df4d0503ec1522df6d8cd029fb8e155885f6b9555efe5fd823d2f9d7bdf8847e4b09579057ae8c2c4bcc690ae
7
+ data.tar.gz: ed86538d0e8811b768271b20c1dc370c9d00f9cdbce18fd75a9582e6a80e2a2562b6851c8f74e422b39aac3550ce6d8350635b9b9c7edc2915393e7226f5b3cd
data/README.md CHANGED
@@ -14,10 +14,11 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install block_io -v=1.2.0
17
+ $ gem install block_io -v=1.2.1
18
18
 
19
19
  ## Changelog
20
20
 
21
+ *05/10/19*: Prevent inadvertent passing of PINs (user error).
21
22
  *06/25/18*: Remove support for Ruby < 1.9.3 (OpenSSL::Cipher::Cipher). Remove connection_pool dependency.
22
23
  *01/21/15*: Added ability to sweep coins from one address to another.
23
24
  *11/04/14*: Fix issue with nil parameters in an API call.
@@ -1,6 +1,7 @@
1
1
  # creates a new destination address, withdraws from the default label to it, gets sent transactions, and the current price
2
2
 
3
3
  require 'block_io'
4
+ require 'json'
4
5
 
5
6
  # please use the Dogecoin Testnet API key here
6
7
  puts "*** Initialize BlockIo library: "
@@ -59,9 +59,11 @@ module BlockIo
59
59
 
60
60
  raise Exception.new("PIN not set. Use BlockIo.set_options(:api_key=>'API KEY',:pin=>'SECRET PIN',:version=>'API VERSION')") if @pin.nil?
61
61
 
62
- params = get_params(args)
62
+ # make sure pins don't get passed inadvertently
63
+ args.delete(:pin)
64
+ args.delete('pin')
63
65
 
64
- params << "&pin=" << @pin if @version == 1 # Block.io handles the Secret PIN in the legacy API (v1)
66
+ params = get_params(args)
65
67
 
66
68
  response = self.api_call([method_name, params])
67
69
 
@@ -1,3 +1,3 @@
1
1
  module BlockIo
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: block_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atif Nazir
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,42 +42,42 @@ dependencies:
42
42
  name: ecdsa
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.2'
48
45
  - - ">="
49
46
  - !ruby/object:Gem::Version
50
47
  version: 1.2.0
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '1.2'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '1.2'
58
55
  - - ">="
59
56
  - !ruby/object:Gem::Version
60
57
  version: 1.2.0
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.2'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: httpclient
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '2.8'
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
67
  version: 2.8.0
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '2.8'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '2.8'
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
77
  version: 2.8.0
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '2.8'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: oj
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -158,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.6.11
161
+ rubygems_version: 3.0.1
163
162
  signing_key:
164
163
  specification_version: 4
165
164
  summary: An easy to use Dogecoin, Bitcoin, Litecoin wallet API by Block.io. Sign up