pickynode-bchd 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 6c0163f2370bc6bc8cb40f499d7bcdfb01e9badb
4
- data.tar.gz: 506af5da58343a81e8ebdf13857d98c0909344ca
3
+ metadata.gz: 9b377097fa94b8858da3cd758b0d2404c2e98dfb
4
+ data.tar.gz: 6624c6b6d14836883dc5ba6e2bd60442520fd1aa
5
5
  SHA512:
6
- metadata.gz: 38310722ff50c7c0f98b9716fad239732cea2119880e09c92a7a872bf70aacbaec9e7bea2e17e43b0ade5913205fadd69c4fcd426438e09f6fe826b63c464a3f
7
- data.tar.gz: cd9d70e40e50267b8b9309868410438e6519d4f06ee2251651de32632316356e01bf5d69c5992ba33fe7ef27f887b74540ccf20cae18aed347cf399d4c7dc768
6
+ metadata.gz: 904c3561fec5a51047fb911d6863513afe5ccd75fb051cb695b615631b459244ba13c51aed3aceaa24ae45a387e65c82bc1d367652cd5a8d20b10d70b6a13d12
7
+ data.tar.gz: 47f89410bf4c673b677de0817227577b09d0c11e29164c91b7d36bd3b21d864c0610729438813250f95cead00ae61600036895c344601b1460c8413b181a5111
data/Gemfile CHANGED
@@ -4,8 +4,8 @@ source 'https://rubygems.org'
4
4
  ruby '>= 2.0'
5
5
 
6
6
  gem 'awesome_print', '~> 1.7'
7
+ gem 'optimist', '~> 3.0'
7
8
  gem 'rake', '~> 12.0'
8
9
  gem 'rspec', '~> 3.6'
9
10
  gem 'rubocop', '~> 0.48'
10
11
  gem 'simplecov', '~> 0.14', require: false, group: :test
11
- gem 'trollop', '~> 2.1'
@@ -6,6 +6,7 @@ GEM
6
6
  diff-lcs (1.3)
7
7
  docile (1.1.5)
8
8
  json (2.1.0)
9
+ optimist (3.0.0)
9
10
  parser (2.4.0.0)
10
11
  ast (~> 2.2)
11
12
  powerpack (0.1.1)
@@ -37,7 +38,6 @@ GEM
37
38
  json (>= 1.8, < 3)
38
39
  simplecov-html (~> 0.10.0)
39
40
  simplecov-html (0.10.1)
40
- trollop (2.1.2)
41
41
  unicode-display_width (1.2.1)
42
42
 
43
43
  PLATFORMS
@@ -45,14 +45,14 @@ PLATFORMS
45
45
 
46
46
  DEPENDENCIES
47
47
  awesome_print (~> 1.7)
48
+ optimist (~> 3.0)
48
49
  rake (~> 12.0)
49
50
  rspec (~> 3.6)
50
51
  rubocop (~> 0.48)
51
52
  simplecov (~> 0.14)
52
- trollop (~> 2.1)
53
53
 
54
54
  RUBY VERSION
55
55
  ruby 2.3.4p301
56
56
 
57
57
  BUNDLED WITH
58
- 1.14.6
58
+ 1.17.1
data/README.md CHANGED
@@ -45,7 +45,6 @@ pickynode-bchd --disconnect=USER_AGENT_FILTER
45
45
  ### Help:
46
46
 
47
47
  ```
48
- pickynode-bchd v0.1.0
49
48
  Options:
50
49
  -i, --info Local node info
51
50
  -d, --debug Debug mode
@@ -3,7 +3,9 @@
3
3
 
4
4
  require 'pickynode_bchd'
5
5
 
6
- opts = Trollop.options do
6
+ limit_desc = 'Limit number of nodes to add/remove/connect/disconnect'
7
+
8
+ opts = Optimist.options do
7
9
  version "pickynode-bchd v#{PickynodeBCHD::VERSION}"
8
10
  opt :info, 'Local node info'
9
11
  opt :debug, 'Debug mode'
@@ -12,8 +14,8 @@ opts = Trollop.options do
12
14
  opt :remove, 'Remove node type', type: :string
13
15
  opt :connect, 'Connect to node type', type: :string
14
16
  opt :disconnect, 'Disconnect from node type', type: :string
15
- opt :limit, 'Limit number of nodes to add/remove/connect/disconnect', type: :integer
17
+ opt :limit, limit_desc, type: :integer
16
18
  end
17
19
 
18
- Trollop.die :limit, 'must be positive' if opts[:limit] && opts[:limit] <= 0
20
+ Optimist.die :limit, 'must be positive' if opts[:limit] && opts[:limit] <= 0
19
21
  PickynodeBCHD.new(opts).run
@@ -3,13 +3,13 @@
3
3
  require 'awesome_print'
4
4
  require 'json'
5
5
  require 'net/http'
6
- require 'trollop'
6
+ require 'optimist'
7
7
  require 'uri'
8
8
 
9
9
  # Allows you to easily add/remove/connect/disconnect nodes
10
10
  # based on User Agent.
11
11
  class PickynodeBCHD
12
- VERSION = '0.1.2'
12
+ VERSION = '0.1.3'
13
13
 
14
14
  def initialize(opts = {})
15
15
  @opts = opts
@@ -18,7 +18,7 @@ bitcoin cash nodes they connect to with bchd."
18
18
  s.required_ruby_version = '>= 2.0'
19
19
 
20
20
  s.add_dependency 'awesome_print', '~> 1.7'
21
- s.add_dependency 'trollop', '~> 2.1'
21
+ s.add_dependency 'optimist', '~> 3.0'
22
22
 
23
23
  s.add_development_dependency 'rspec', '~> 3.6'
24
24
  s.add_development_dependency 'rake', '~> 12.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickynode-bchd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
- name: trollop
28
+ name: optimist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
33
+ version: '3.0'
34
34
  type: :runtime
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: '2.1'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement