rcmdr 0.1.0.pre.alpha → 0.1.1.pre.alpha

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: 584f1e1d52d90ceb086abeb81429503eb63d03f0c100cb7d38d3ac9d797cdca7
4
- data.tar.gz: 8ec4a49b63121dbba0c415834bedd76e6b5ad6e3e6fe36d747a29a9c0d1bb875
3
+ metadata.gz: 7241cfc6c82a0cd608036121a225d749a70117c6420411435228d96b6d3cbb63
4
+ data.tar.gz: f26f07aaf1cd0ae357014e7337ca0e6b39b916fb875984d51ef48f4fc6eeee3f
5
5
  SHA512:
6
- metadata.gz: 4f6167976eacf7579f1312c4d9708c90dee93f9123c8ceea63496b4be43a49492f5294f336f45f5c3ca849bb6bc206ef1f697305b8d9808cd2d4fe6c64264566
7
- data.tar.gz: a3867e01376c9a7d1b7fcb58ee204de29d81d6a1a8c8c8180b8b8d019f846a5b6289eef773e25778da34716a8e622e3c7a59dc8081edbb32903656a30c1cbf1c
6
+ metadata.gz: e29d455feeec2a2c24ee029995c44c564ea404867796ff06a9810d0120391b31b0e0289d805d76d5702a06ca675ff05fcf1f65dd8de93e0c0d7068ad3fa83e95
7
+ data.tar.gz: cd498f449dfdca34bc7b757db1da8ef8e5a5197575fd834af6bdd4f89f43f8dde4ebce45ed912fd76a6a1ec07d9a235a5ca154952dcbee5af1abc0c32252704a
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  require:
2
2
  - rubocop-performance
3
3
  - rubocop-rspec
4
+ - rubocop-rake
4
5
 
5
6
  AllCops:
6
7
  TargetRubyVersion: 3.0.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2022-10-16
3
+ ### [0.1.1-alpha] - 2024-02-18
4
+
5
+ - Update ruby gems, reorganize gems.
6
+
7
+ ## [Unreleased]
8
+
9
+ ### [0.1.0-alpha] - 2022-10-16
4
10
 
5
11
  - Initial release
data/Gemfile CHANGED
@@ -5,10 +5,20 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in rcmdr.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 13.0'
9
- gem 'rspec', '~> 3.0'
10
- gem 'rubocop', '~> 0.81.0'
8
+ group :development do
9
+ gem 'pry-byebug', '~> 3.9'
10
+ gem 'reek', '~> 6.1', '>= 6.1.1'
11
+ gem 'rubocop', '~> 1.60', '>= 1.60.2'
12
+ gem 'rubocop-performance', '~> 1.20', '>= 1.20.2'
13
+ gem 'rubocop-rake', '~> 0.6.0'
14
+ gem 'rubocop-rspec', '~> 2.26', '>= 2.26.1'
15
+ end
11
16
 
12
- gem 'pry-byebug', '~> 3.9'
13
- gem 'reek', '~> 6.1', '>= 6.1.1'
14
- gem 'simplecov', '~> 0.21.2'
17
+ group :test do
18
+ gem 'rspec', '~> 3.0'
19
+ gem 'simplecov', '~> 0.21.2'
20
+ end
21
+
22
+ group :development, :test do
23
+ gem 'rake', '~> 13.0'
24
+ end
data/Gemfile.lock CHANGED
@@ -1,91 +1,154 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rcmdr (0.1.0.pre.alpha)
4
+ rcmdr (0.1.1.pre.alpha)
5
5
  activesupport (~> 7.0, >= 7.0.4)
6
6
  deco_lite (~> 1.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (7.0.4)
12
- activesupport (= 7.0.4)
13
- activesupport (7.0.4)
11
+ activemodel (7.1.3)
12
+ activesupport (= 7.1.3)
13
+ activesupport (7.1.3)
14
+ base64
15
+ bigdecimal
14
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ connection_pool (>= 2.2.5)
18
+ drb
15
19
  i18n (>= 1.6, < 2)
16
20
  minitest (>= 5.1)
21
+ mutex_m
17
22
  tzinfo (~> 2.0)
18
23
  ast (2.4.2)
24
+ base64 (0.2.0)
25
+ bigdecimal (3.1.6)
19
26
  byebug (11.1.3)
20
27
  coderay (1.1.3)
21
- concurrent-ruby (1.1.10)
22
- deco_lite (1.3.0)
23
- activemodel (~> 7.0, >= 7.0.3.1)
24
- activesupport (~> 7.0, >= 7.0.3.1)
25
- immutable_struct_ex (~> 0.2.0)
26
- mad_flatter (~> 2.0)
27
- diff-lcs (1.5.0)
28
+ concurrent-ruby (1.2.3)
29
+ connection_pool (2.4.1)
30
+ deco_lite (1.5.12)
31
+ activemodel (>= 7.0.8, <= 7.12.0)
32
+ activesupport (>= 7.0.8, <= 7.12.0)
33
+ immutable_struct_ex (>= 1.0, < 2.0)
34
+ mad_flatter (>= 3.0, < 4.0)
35
+ diff-lcs (1.5.1)
28
36
  docile (1.4.0)
29
- i18n (1.12.0)
37
+ drb (2.2.0)
38
+ ruby2_keywords
39
+ dry-configurable (1.1.0)
40
+ dry-core (~> 1.0, < 2)
41
+ zeitwerk (~> 2.6)
42
+ dry-core (1.0.1)
30
43
  concurrent-ruby (~> 1.0)
31
- immutable_struct_ex (0.2.3)
32
- jaro_winkler (1.5.4)
33
- kwalify (0.7.2)
34
- mad_flatter (2.0.0)
35
- activesupport (~> 7.0, >= 7.0.3.1)
36
- immutable_struct_ex (~> 0.2.0)
44
+ zeitwerk (~> 2.6)
45
+ dry-inflector (1.0.0)
46
+ dry-initializer (3.1.1)
47
+ dry-logic (1.5.0)
48
+ concurrent-ruby (~> 1.0)
49
+ dry-core (~> 1.0, < 2)
50
+ zeitwerk (~> 2.6)
51
+ dry-schema (1.13.3)
52
+ concurrent-ruby (~> 1.0)
53
+ dry-configurable (~> 1.0, >= 1.0.1)
54
+ dry-core (~> 1.0, < 2)
55
+ dry-initializer (~> 3.0)
56
+ dry-logic (>= 1.4, < 2)
57
+ dry-types (>= 1.7, < 2)
58
+ zeitwerk (~> 2.6)
59
+ dry-types (1.7.2)
60
+ bigdecimal (~> 3.0)
61
+ concurrent-ruby (~> 1.0)
62
+ dry-core (~> 1.0)
63
+ dry-inflector (~> 1.0)
64
+ dry-logic (~> 1.4)
65
+ zeitwerk (~> 2.6)
66
+ i18n (1.14.1)
67
+ concurrent-ruby (~> 1.0)
68
+ immutable_struct_ex (1.0.9)
69
+ json (2.7.1)
70
+ language_server-protocol (3.17.0.3)
71
+ mad_flatter (3.0.6)
72
+ activesupport (>= 7.0.8, < 7.2.0)
73
+ immutable_struct_ex (>= 1.0, < 2.0)
37
74
  method_source (1.0.0)
38
- minitest (5.16.3)
39
- parallel (1.22.1)
40
- parser (3.1.2.1)
75
+ minitest (5.22.2)
76
+ mutex_m (0.2.0)
77
+ parallel (1.24.0)
78
+ parser (3.3.0.5)
41
79
  ast (~> 2.4.1)
42
- pry (0.14.1)
80
+ racc
81
+ pry (0.14.2)
43
82
  coderay (~> 1.1)
44
83
  method_source (~> 1.0)
45
84
  pry-byebug (3.10.1)
46
85
  byebug (~> 11.0)
47
86
  pry (>= 0.13, < 0.15)
87
+ racc (1.7.3)
48
88
  rainbow (3.1.1)
49
- rake (13.0.6)
50
- reek (6.1.1)
51
- kwalify (~> 0.7.0)
52
- parser (~> 3.1.0)
89
+ rake (13.1.0)
90
+ reek (6.3.0)
91
+ dry-schema (~> 1.13.0)
92
+ parser (~> 3.3.0)
53
93
  rainbow (>= 2.0, < 4.0)
54
- rexml (3.2.5)
55
- rspec (3.11.0)
56
- rspec-core (~> 3.11.0)
57
- rspec-expectations (~> 3.11.0)
58
- rspec-mocks (~> 3.11.0)
59
- rspec-core (3.11.0)
60
- rspec-support (~> 3.11.0)
61
- rspec-expectations (3.11.1)
94
+ rexml (~> 3.1)
95
+ regexp_parser (2.9.0)
96
+ rexml (3.2.6)
97
+ rspec (3.13.0)
98
+ rspec-core (~> 3.13.0)
99
+ rspec-expectations (~> 3.13.0)
100
+ rspec-mocks (~> 3.13.0)
101
+ rspec-core (3.13.0)
102
+ rspec-support (~> 3.13.0)
103
+ rspec-expectations (3.13.0)
62
104
  diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.11.0)
64
- rspec-mocks (3.11.1)
105
+ rspec-support (~> 3.13.0)
106
+ rspec-mocks (3.13.0)
65
107
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.11.0)
67
- rspec-support (3.11.1)
68
- rubocop (0.81.0)
69
- jaro_winkler (~> 1.5.1)
108
+ rspec-support (~> 3.13.0)
109
+ rspec-support (3.13.0)
110
+ rubocop (1.60.2)
111
+ json (~> 2.3)
112
+ language_server-protocol (>= 3.17.0)
70
113
  parallel (~> 1.10)
71
- parser (>= 2.7.0.1)
114
+ parser (>= 3.3.0.2)
72
115
  rainbow (>= 2.2.2, < 4.0)
73
- rexml
116
+ regexp_parser (>= 1.8, < 3.0)
117
+ rexml (>= 3.2.5, < 4.0)
118
+ rubocop-ast (>= 1.30.0, < 2.0)
74
119
  ruby-progressbar (~> 1.7)
75
- unicode-display_width (>= 1.4.0, < 2.0)
76
- ruby-progressbar (1.11.0)
120
+ unicode-display_width (>= 2.4.0, < 3.0)
121
+ rubocop-ast (1.30.0)
122
+ parser (>= 3.2.1.0)
123
+ rubocop-capybara (2.20.0)
124
+ rubocop (~> 1.41)
125
+ rubocop-factory_bot (2.25.1)
126
+ rubocop (~> 1.41)
127
+ rubocop-performance (1.20.2)
128
+ rubocop (>= 1.48.1, < 2.0)
129
+ rubocop-ast (>= 1.30.0, < 2.0)
130
+ rubocop-rake (0.6.0)
131
+ rubocop (~> 1.0)
132
+ rubocop-rspec (2.26.1)
133
+ rubocop (~> 1.40)
134
+ rubocop-capybara (~> 2.17)
135
+ rubocop-factory_bot (~> 2.22)
136
+ ruby-progressbar (1.13.0)
137
+ ruby2_keywords (0.0.5)
77
138
  simplecov (0.21.2)
78
139
  docile (~> 1.1)
79
140
  simplecov-html (~> 0.11)
80
141
  simplecov_json_formatter (~> 0.1)
81
142
  simplecov-html (0.12.3)
82
143
  simplecov_json_formatter (0.1.4)
83
- tzinfo (2.0.5)
144
+ tzinfo (2.0.6)
84
145
  concurrent-ruby (~> 1.0)
85
- unicode-display_width (1.8.0)
146
+ unicode-display_width (2.5.0)
147
+ zeitwerk (2.6.13)
86
148
 
87
149
  PLATFORMS
88
150
  x86_64-darwin-19
151
+ x86_64-darwin-21
89
152
 
90
153
  DEPENDENCIES
91
154
  pry-byebug (~> 3.9)
@@ -93,7 +156,10 @@ DEPENDENCIES
93
156
  rcmdr!
94
157
  reek (~> 6.1, >= 6.1.1)
95
158
  rspec (~> 3.0)
96
- rubocop (~> 0.81.0)
159
+ rubocop (~> 1.60, >= 1.60.2)
160
+ rubocop-performance (~> 1.20, >= 1.20.2)
161
+ rubocop-rake (~> 0.6.0)
162
+ rubocop-rspec (~> 2.26, >= 2.26.1)
97
163
  simplecov (~> 0.21.2)
98
164
 
99
165
  BUNDLED WITH
data/lib/rcmdr/command.rb CHANGED
@@ -100,7 +100,7 @@ module Rcmdr
100
100
  end
101
101
 
102
102
  def help
103
- commands.each do |_command, command_data|
103
+ commands.each_value do |command_data|
104
104
  puts "#{command_namespaces.join(' ')} #{command_data[:help]}"
105
105
  end
106
106
  end
@@ -5,7 +5,7 @@ module Rcmdr
5
5
  private
6
6
 
7
7
  # rubocop:disable Lint/UnusedMethodArgument
8
- def command_help_for(command:, desc:, namespaces: nil, long_desc: nil, options: {}, commands: [])
8
+ def command_help_for(command:, desc:, namespaces: nil, long_desc: nil, options: {}, commands: []) # rubocop:disable Metrics/ParameterLists
9
9
  namespaces ||= command_namespaces
10
10
  help =
11
11
  <<~HELP
data/lib/rcmdr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rcmdr
4
- VERSION = '0.1.0-alpha'
4
+ VERSION = '0.1.1-alpha'
5
5
  end
data/lib/rcmdr.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'rcmdr/command_help'
4
+ require_relative 'rcmdr/command'
5
+ require_relative 'rcmdr/subcommand'
3
6
  require_relative 'rcmdr/version'
4
7
 
5
8
  module Rcmdr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcmdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha
4
+ version: 0.1.1.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2024-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -73,7 +73,6 @@ files:
73
73
  - lib/rcmdr/command_help.rb
74
74
  - lib/rcmdr/subcommand.rb
75
75
  - lib/rcmdr/version.rb
76
- - rcmdr.gemspec
77
76
  - sig/rcmdr.rbs
78
77
  homepage: https://github.com/gangelo/rcmdr
79
78
  licenses:
@@ -98,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
97
  - !ruby/object:Gem::Version
99
98
  version: 1.3.1
100
99
  requirements: []
101
- rubygems_version: 3.3.22
100
+ rubygems_version: 3.2.15
102
101
  signing_key:
103
102
  specification_version: 4
104
103
  summary: rcmdr, the RESTful command manager/interpreter gem.
data/rcmdr.gemspec DELETED
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/rcmdr/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'rcmdr'
7
- spec.version = Rcmdr::VERSION
8
- spec.authors = ['Gene M. Angelo, Jr.']
9
- spec.email = ['public.gma@gmail.com']
10
-
11
- spec.summary = 'rcmdr, the RESTful command manager/interpreter gem.'
12
- spec.description = <<-DESC
13
- rcmdr a Ruby gem that uses a RESTful approach to managing and interpreting
14
- commands and their requests. A "command" being defined as any action that may
15
- be carried out in a manner consistent with the following REST verbs GET, POST,
16
- PUT, PATCH, DELETE and OPTIONS.
17
- DESC
18
- spec.homepage = 'https://github.com/gangelo/rcmdr'
19
- spec.license = 'MIT'
20
- spec.required_ruby_version = '>= 3.0.1'
21
-
22
- # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
23
-
24
- spec.metadata['homepage_uri'] = spec.homepage
25
- spec.metadata['source_code_uri'] = spec.homepage
26
- spec.metadata['changelog_uri'] = 'https://github.com/gangelo/rcmdr/blob/main/CHANGELOG.md'
27
-
28
- # Specify which files should be added to the gem when it is released.
29
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
31
- `git ls-files -z`.split("\x0").reject do |f|
32
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
33
- end
34
- end
35
- spec.bindir = 'exe'
36
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
37
- spec.require_paths = ['lib']
38
-
39
- spec.add_dependency 'activesupport', '~> 7.0', '>= 7.0.4'
40
- spec.add_dependency 'deco_lite', '~> 1.3'
41
-
42
- spec.metadata['rubygems_mfa_required'] = 'true'
43
- end