cash-addr 0.2.0 → 0.3.0

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: 58230d641f2c6f448ef793224bb0353e40c4cf27d869ef422255fabfb40c5f75
4
- data.tar.gz: 755380b3d0a0c723626e0a30345f1bcc64870a2903231bf82c3ba6cace2c07cd
3
+ metadata.gz: 29ba62b971b4d74fe059c2d611b3c9c9c9820352840f821d93b3b011f2786fbf
4
+ data.tar.gz: b49578bd4898bb85311c4d73b0309bdadd9aeb025220337bf00a995338b1673d
5
5
  SHA512:
6
- metadata.gz: 42fa523bbebacfd90af7b4909712e2f7e46d151a6a6325c0d1fabda493474514f4a32da3202bb08cc032e2d464a81505e36f1551e96144154abb7f69804787be
7
- data.tar.gz: 281858239154981b7306cbf653a6044653d4a19c3466f8de5974b03f85de352063ca888fd228ad9e398fa57ca36c5e370fd5968841f00ae8903b12bd751f7bdb
6
+ metadata.gz: cfaa7f37d755409faba0794535f3e00921e15ca93d7487e451c8ece9fda89ee715e60c45eadca68411734691e0a85166ea298caad932e86f86121b5ef65b249e
7
+ data.tar.gz: ef7c560de84291d0ee35e4a0b0cdd9317164b248c6d41aa0761b3328591856c21a6d345ac8034a180e5e9e2819b3488fac834f4b2a12fe5dbd07089199958e59
@@ -32,4 +32,19 @@ Metrics/PerceivedComplexity:
32
32
  Enabled: false
33
33
 
34
34
  Metrics/BlockLength:
35
- Enabled: false
35
+ Enabled: false
36
+
37
+ Lint/RaiseException:
38
+ Enabled: true
39
+
40
+ Lint/StructNewOverride:
41
+ Enabled: true
42
+
43
+ Style/HashEachMethods:
44
+ Enabled: true
45
+
46
+ Style/HashTransformKeys:
47
+ Enabled: true
48
+
49
+ Style/HashTransformValues:
50
+ Enabled: true
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cash-addr (0.2.0)
5
- base58 (~> 0.2.2)
4
+ cash-addr (0.3.0)
5
+ base58 (~> 0.2.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -10,44 +10,46 @@ GEM
10
10
  ast (2.4.0)
11
11
  base58 (0.2.3)
12
12
  diff-lcs (1.3)
13
- parallel (1.12.1)
14
- parser (2.5.1.0)
13
+ jaro_winkler (1.5.4)
14
+ parallel (1.19.1)
15
+ parser (2.7.1.0)
15
16
  ast (~> 2.4.0)
16
- powerpack (0.1.1)
17
17
  rainbow (3.0.0)
18
- rake (10.5.0)
19
- rspec (3.7.0)
20
- rspec-core (~> 3.7.0)
21
- rspec-expectations (~> 3.7.0)
22
- rspec-mocks (~> 3.7.0)
23
- rspec-core (3.7.1)
24
- rspec-support (~> 3.7.0)
25
- rspec-expectations (3.7.0)
18
+ rake (13.0.1)
19
+ rexml (3.2.4)
20
+ rspec (3.9.0)
21
+ rspec-core (~> 3.9.0)
22
+ rspec-expectations (~> 3.9.0)
23
+ rspec-mocks (~> 3.9.0)
24
+ rspec-core (3.9.1)
25
+ rspec-support (~> 3.9.1)
26
+ rspec-expectations (3.9.1)
26
27
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.7.0)
28
- rspec-mocks (3.7.0)
28
+ rspec-support (~> 3.9.0)
29
+ rspec-mocks (3.9.1)
29
30
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.7.0)
31
- rspec-support (3.7.1)
32
- rubocop (0.52.1)
31
+ rspec-support (~> 3.9.0)
32
+ rspec-support (3.9.2)
33
+ rubocop (0.81.0)
34
+ jaro_winkler (~> 1.5.1)
33
35
  parallel (~> 1.10)
34
- parser (>= 2.4.0.2, < 3.0)
35
- powerpack (~> 0.1)
36
+ parser (>= 2.7.0.1)
36
37
  rainbow (>= 2.2.2, < 4.0)
38
+ rexml
37
39
  ruby-progressbar (~> 1.7)
38
- unicode-display_width (~> 1.0, >= 1.0.1)
39
- ruby-progressbar (1.9.0)
40
- unicode-display_width (1.3.0)
40
+ unicode-display_width (>= 1.4.0, < 2.0)
41
+ ruby-progressbar (1.10.1)
42
+ unicode-display_width (1.7.0)
41
43
 
42
44
  PLATFORMS
43
45
  ruby
44
46
 
45
47
  DEPENDENCIES
46
- bundler (~> 1.16)
48
+ bundler (~> 2.1.4)
47
49
  cash-addr!
48
- rake (~> 10.0)
49
- rspec (~> 3.0)
50
- rubocop (~> 0.52.1)
50
+ rake (~> 13.0.1)
51
+ rspec (~> 3.9.0)
52
+ rubocop (~> 0.81.0)
51
53
 
52
54
  BUNDLED WITH
53
- 1.16.0
55
+ 2.1.4
@@ -1,7 +1,6 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
5
  require 'cash_addr/version'
7
6
 
@@ -22,10 +21,10 @@ Gem::Specification.new do |spec|
22
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
22
  spec.require_paths = ['lib']
24
23
 
25
- spec.add_development_dependency 'bundler', '~> 1.16'
26
- spec.add_development_dependency 'rake', '~> 10.0'
27
- spec.add_development_dependency 'rspec', '~> 3.0'
28
- spec.add_development_dependency 'rubocop', '~> 0.52.1'
24
+ spec.add_development_dependency 'bundler', '~> 2.1.4'
25
+ spec.add_development_dependency 'rake', '~> 13.0.1'
26
+ spec.add_development_dependency 'rspec', '~> 3.9.0'
27
+ spec.add_development_dependency 'rubocop', '~> 0.81.0'
29
28
 
30
- spec.add_dependency 'base58', '~> 0.2.2'
29
+ spec.add_dependency 'base58', '~> 0.2.3'
31
30
  end
@@ -28,7 +28,7 @@ module CashAddr
28
28
  @payload = payload
29
29
  @digest = digest
30
30
 
31
- @prefix = prefix ? prefix : DEFAULT_PREFIX
31
+ @prefix = prefix || DEFAULT_PREFIX
32
32
 
33
33
  @version = 'P2SHTestnet' if prefix == 'bchtest' && version == 'P2SH'
34
34
  @version = 'P2PKHTestnet' if prefix == 'bchtest' && version == 'P2PKH'
@@ -65,6 +65,7 @@ module CashAddr
65
65
  def self.from_string(address_string)
66
66
  raise(CashAddr::InvalidAddress, 'Expected string as input') unless address_string.is_a?(String)
67
67
  return legacy_string(address_string) unless address_string.include?(':')
68
+
68
69
  cash_string(address_string)
69
70
  end
70
71
 
@@ -3,5 +3,5 @@
3
3
  module CashAddr
4
4
  ##
5
5
  # Version of the cash-addr gem.
6
- VERSION = '0.2.0'
6
+ VERSION = '0.3.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cash-addr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-07 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 13.0.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 13.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: 3.9.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: 3.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.52.1
61
+ version: 0.81.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.52.1
68
+ version: 0.81.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: base58
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.2
75
+ version: 0.2.3
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.2
82
+ version: 0.2.3
83
83
  description:
84
84
  email:
85
85
  - josh.ellithorpe@coinbase.com
@@ -175,8 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubyforge_project:
179
- rubygems_version: 2.7.4
178
+ rubygems_version: 3.0.3
180
179
  signing_key:
181
180
  specification_version: 4
182
181
  summary: Library to convert between base58 and CashAddr BCH addresses