pickynode-bchd 0.2.0 → 0.2.2

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: 9692b329159e6e8e00860297e0fb3dc457bbad1814508488bfb94e5fd0fcb682
4
- data.tar.gz: 6e559ec2bf8ca99ac97c0756ac669732b91667ef4dc5031ee418104b8dbfbfca
3
+ metadata.gz: 9cef9d2200745f2f7d2124bbbce1a2597acd8e3c59aea68ee51ede1a5d689963
4
+ data.tar.gz: c73f40313db4ef35225fa98bdba6e78ff4b744caf02bd781ef6bc936094b2861
5
5
  SHA512:
6
- metadata.gz: e45bb66b87212835db831295b587a745292a546aa8e0042eaa084d8ebf5dfe03c6baf29e1fb3e86e7adc370ec50b03326fbaf2eb66d90705837b74b25e9983fe
7
- data.tar.gz: 1b542757f321eb737817a9b3af2a9d393edc0e49b3c327bdeae3b00877d0cfd94a91d037d013c0498fa6273316f3a3e133a645316c3466d74368020649b02a4e
6
+ metadata.gz: e498d208e905026643e7b3a0530652f2f8340bd05a5b2562a14a7e3bb1fde989166bddc21b41aa354410935e4d0184de458d984f4dd1eccdca0c467fd41795c8
7
+ data.tar.gz: 0c0e8da3d2310209d6a85619365a835451a5547e83221eca4bc2537d22dad17cceac66328ba578112dc71ad4be7c9136c98b9ba09812f18e41f7bbef17024f32
@@ -0,0 +1 @@
1
+ github: [zquestz]
data/.gitignore CHANGED
@@ -48,3 +48,6 @@ build-iPhoneSimulator/
48
48
 
49
49
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
50
  .rvmrc
51
+
52
+ # Don't check in the Gemfile.lock
53
+ Gemfile.lock
data/.rubocop.yml CHANGED
@@ -1,13 +1,18 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+ NewCops: disable
1
4
  Metrics/ClassLength:
2
5
  Enabled: false
3
6
  Metrics/BlockLength:
4
- ExcludedMethods: ['describe', 'context']
7
+ ExcludedMethods: ["describe", "context"]
5
8
  Style/NumericPredicate:
6
9
  Enabled: false
7
10
  Layout/EmptyLinesAroundAttributeAccessor:
8
11
  Enabled: true
9
12
  Layout/SpaceAroundMethodCallOperator:
10
13
  Enabled: true
14
+ Layout/LineLength:
15
+ Enabled: true
11
16
  Lint/DeprecatedOpenSSLConstant:
12
17
  Enabled: true
13
18
  Lint/MixedRegexpCaptureTypes:
@@ -30,3 +35,51 @@ Style/RedundantRegexpEscape:
30
35
  Enabled: true
31
36
  Style/SlicingWithRange:
32
37
  Enabled: true
38
+ Lint/DuplicateElsifCondition:
39
+ Enabled: true
40
+ Style/AccessorGrouping:
41
+ Enabled: true
42
+ Style/ArrayCoercion:
43
+ Enabled: true
44
+ Style/BisectedAttrAccessor:
45
+ Enabled: true
46
+ Style/CaseLikeIf:
47
+ Enabled: true
48
+ Style/HashAsLastArrayItem:
49
+ Enabled: true
50
+ Style/HashLikeCase:
51
+ Enabled: true
52
+ Style/RedundantAssignment:
53
+ Enabled: true
54
+ Style/RedundantFetchBlock:
55
+ Enabled: true
56
+ Style/RedundantFileExtensionInRequire:
57
+ Enabled: true
58
+ Lint/BinaryOperatorWithIdenticalOperands:
59
+ Enabled: true
60
+ Lint/DuplicateRescueException:
61
+ Enabled: true
62
+ Lint/EmptyConditionalBody:
63
+ Enabled: true
64
+ Lint/FloatComparison:
65
+ Enabled: true
66
+ Lint/MissingSuper:
67
+ Enabled: true
68
+ Lint/OutOfRangeRegexpRef:
69
+ Enabled: true
70
+ Lint/SelfAssignment:
71
+ Enabled: true
72
+ Lint/TopLevelReturnWithArgument:
73
+ Enabled: true
74
+ Lint/UnreachableLoop:
75
+ Enabled: true
76
+ Style/ExplicitBlockArgument:
77
+ Enabled: true
78
+ Style/GlobalStdStream:
79
+ Enabled: true
80
+ Style/OptionalBooleanParameter:
81
+ Enabled: true
82
+ Style/SingleArgumentDig:
83
+ Enabled: true
84
+ Style/StringConcatenation:
85
+ Enabled: true
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - '2.5.8'
3
+ - "2.5.8"
4
+ - "3.3.5"
data/Gemfile CHANGED
@@ -3,9 +3,12 @@
3
3
  source 'https://rubygems.org'
4
4
  ruby '>= 2.5'
5
5
 
6
- gem 'awesome_print', '~> 1.8.0'
7
- gem 'optimist', '~> 3.0.1'
6
+ gem 'awesome_print', '> 1.8.0'
7
+ gem 'base64'
8
+ gem 'optimist', '> 3.0.1'
9
+ gem 'ostruct'
10
+
8
11
  gem 'rake', '~> 13.0.1'
9
12
  gem 'rspec', '~> 3.9.0'
10
- gem 'rubocop', '~> 0.85.1'
13
+ gem 'rubocop', '~> 0.89.0'
11
14
  gem 'simplecov', '~> 0.18.5', require: false, group: :test
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Josh Ellithorpe
3
+ Copyright (c) 2018-2024 Josh Ellithorpe
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Gem Version](https://badge.fury.io/rb/pickynode-bchd.svg)](https://badge.fury.io/rb/pickynode-bchd) [![Build Status](https://travis-ci.org/zquestz/pickynode-bchd.svg)](https://travis-ci.org/zquestz/pickynode-bchd) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1
+ [![Gem Version](https://badge.fury.io/rb/pickynode-bchd.svg)](https://badge.fury.io/rb/pickynode-bchd) [![Build Status](https://app.travis-ci.com/zquestz/pickynode-bchd.svg?token=6MFuGdxALHX597TYtD8j&branch=master)](https://app.travis-ci.com/zquestz/pickynode-bchd) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
2
  # pickynode-bchd
3
3
 
4
4
  Some people are picky about the bitcoin cash nodes they connect to with bchd.
@@ -9,7 +9,7 @@ require 'uri'
9
9
  # Allows you to easily add/remove/connect/disconnect nodes
10
10
  # based on User Agent.
11
11
  class PickynodeBCHD
12
- VERSION = '0.2.0'
12
+ VERSION = '0.2.2'
13
13
 
14
14
  def initialize(opts = {})
15
15
  @opts = opts
@@ -17,11 +17,13 @@ bitcoin cash nodes they connect to with bchd."
17
17
  s.require_paths = ['lib']
18
18
  s.required_ruby_version = '>= 2.5'
19
19
 
20
- s.add_dependency 'awesome_print', '~> 1.8.0'
21
- s.add_dependency 'optimist', '~> 3.0.1'
20
+ s.add_dependency 'awesome_print', '> 1.8.0'
21
+ s.add_dependency 'base64'
22
+ s.add_dependency 'optimist', '> 3.0.1'
23
+ s.add_dependency 'ostruct'
22
24
 
23
25
  s.add_development_dependency 'rake', '~> 13.0.1'
24
26
  s.add_development_dependency 'rspec', '~> 3.9.0'
25
- s.add_development_dependency 'rubocop', '~> 0.85.1'
27
+ s.add_development_dependency 'rubocop', '~> 0.88.0'
26
28
  s.add_development_dependency 'simplecov', '~> 0.18.5'
27
29
  end
metadata CHANGED
@@ -1,43 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickynode-bchd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-15 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: base64
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: optimist
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">"
32
46
  - !ruby/object:Gem::Version
33
47
  version: 3.0.1
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">"
39
53
  - !ruby/object:Gem::Version
40
54
  version: 3.0.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: ostruct
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rake
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +100,14 @@ dependencies:
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 0.85.1
103
+ version: 0.88.0
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: 0.85.1
110
+ version: 0.88.0
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: simplecov
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -102,13 +130,13 @@ executables:
102
130
  extensions: []
103
131
  extra_rdoc_files: []
104
132
  files:
133
+ - ".github/FUNDING.yml"
105
134
  - ".gitignore"
106
135
  - ".rubocop.yml"
107
136
  - ".ruby-gemset"
108
137
  - ".ruby-version"
109
138
  - ".travis.yml"
110
139
  - Gemfile
111
- - Gemfile.lock
112
140
  - LICENSE
113
141
  - README.md
114
142
  - Rakefile
@@ -138,8 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
166
  - !ruby/object:Gem::Version
139
167
  version: '0'
140
168
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.7.6.2
169
+ rubygems_version: 3.0.9
143
170
  signing_key:
144
171
  specification_version: 4
145
172
  summary: Manage connections to your bchd node
data/Gemfile.lock DELETED
@@ -1,62 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- ast (2.4.1)
5
- awesome_print (1.8.0)
6
- diff-lcs (1.3)
7
- docile (1.3.2)
8
- optimist (3.0.1)
9
- parallel (1.19.1)
10
- parser (2.7.1.3)
11
- ast (~> 2.4.0)
12
- rainbow (3.0.0)
13
- rake (13.0.1)
14
- regexp_parser (1.7.1)
15
- rexml (3.2.4)
16
- rspec (3.9.0)
17
- rspec-core (~> 3.9.0)
18
- rspec-expectations (~> 3.9.0)
19
- rspec-mocks (~> 3.9.0)
20
- rspec-core (3.9.2)
21
- rspec-support (~> 3.9.3)
22
- rspec-expectations (3.9.2)
23
- diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.9.0)
25
- rspec-mocks (3.9.1)
26
- diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.9.0)
28
- rspec-support (3.9.3)
29
- rubocop (0.85.1)
30
- parallel (~> 1.10)
31
- parser (>= 2.7.0.1)
32
- rainbow (>= 2.2.2, < 4.0)
33
- regexp_parser (>= 1.7)
34
- rexml
35
- rubocop-ast (>= 0.0.3)
36
- ruby-progressbar (~> 1.7)
37
- unicode-display_width (>= 1.4.0, < 2.0)
38
- rubocop-ast (0.0.3)
39
- parser (>= 2.7.0.1)
40
- ruby-progressbar (1.10.1)
41
- simplecov (0.18.5)
42
- docile (~> 1.1)
43
- simplecov-html (~> 0.11)
44
- simplecov-html (0.12.2)
45
- unicode-display_width (1.7.0)
46
-
47
- PLATFORMS
48
- ruby
49
-
50
- DEPENDENCIES
51
- awesome_print (~> 1.8.0)
52
- optimist (~> 3.0.1)
53
- rake (~> 13.0.1)
54
- rspec (~> 3.9.0)
55
- rubocop (~> 0.85.1)
56
- simplecov (~> 0.18.5)
57
-
58
- RUBY VERSION
59
- ruby 2.5.8p224
60
-
61
- BUNDLED WITH
62
- 2.1.4