commander 4.6.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +3 -4
- data/History.rdoc +4 -0
- data/commander.gemspec +3 -3
- data/lib/commander/delegates.rb +2 -2
- data/lib/commander/user_interaction.rb +4 -6
- data/lib/commander/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c6f343ac9ccafcd3a3815ad19278ea429f189704635616446c92ba2d1551db8
|
4
|
+
data.tar.gz: f759ec220c1c075e42a0b175c01ef55c9aa5a82e3be754db55415bc257ce7120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e714a982d479519bba3120f04f5ecb247d95e072f7f9250884649ca3b71288566368a609b4e78706ee5bd02cf6ee8d153c30408d31cfb1732d5f1232eeb8bccf
|
7
|
+
data.tar.gz: f26ca19596dc5099c1203d9a100c2c86072498f2b2e269916f1cdf8b406f11d7585258587eb2da440d63c8a9377f613af49b140b946b1d6b734f8d1c6de11306
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/History.rdoc
CHANGED
data/commander.gemspec
CHANGED
@@ -19,14 +19,14 @@ Gem::Specification.new do |s|
|
|
19
19
|
'homepage_uri' => s.homepage,
|
20
20
|
'source_code_uri' => "#{s.homepage}/tree/v#{s.version}",
|
21
21
|
}
|
22
|
-
s.required_ruby_version = '>=
|
22
|
+
s.required_ruby_version = '>= 3.0'
|
23
23
|
|
24
|
-
s.files = `git ls-files`.split("\n")
|
24
|
+
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
26
26
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
27
27
|
s.require_paths = ['lib']
|
28
28
|
|
29
|
-
s.add_runtime_dependency('highline', '~>
|
29
|
+
s.add_runtime_dependency('highline', '~> 3.0.0')
|
30
30
|
|
31
31
|
s.add_development_dependency('rake')
|
32
32
|
s.add_development_dependency('rspec', '~> 3.2')
|
data/lib/commander/delegates.rb
CHANGED
@@ -344,12 +344,10 @@ module Commander
|
|
344
344
|
# All Classes that respond to #parse
|
345
345
|
# Ignore constants that trigger deprecation warnings
|
346
346
|
available_classes = (Object.constants - DEPRECATED_CONSTANTS).map do |const|
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
# The `SortedSet` class has been extracted from the `set` library.
|
352
|
-
end
|
347
|
+
Object.const_get(const)
|
348
|
+
rescue RuntimeError
|
349
|
+
# Rescue errors in Ruby 3 for SortedSet:
|
350
|
+
# The `SortedSet` class has been extracted from the `set` library.
|
353
351
|
end.compact.select do |const|
|
354
352
|
const.instance_of?(Class) && const.respond_to?(:parse)
|
355
353
|
end
|
data/lib/commander/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,9 +143,9 @@ licenses:
|
|
143
143
|
metadata:
|
144
144
|
bug_tracker_uri: https://github.com/commander-rb/commander/issues
|
145
145
|
changelog_uri: https://github.com/commander-rb/commander/blob/master/History.rdoc
|
146
|
-
documentation_uri: https://www.rubydoc.info/gems/commander/
|
146
|
+
documentation_uri: https://www.rubydoc.info/gems/commander/5.0.0
|
147
147
|
homepage_uri: https://github.com/commander-rb/commander
|
148
|
-
source_code_uri: https://github.com/commander-rb/commander/tree/
|
148
|
+
source_code_uri: https://github.com/commander-rb/commander/tree/v5.0.0
|
149
149
|
post_install_message:
|
150
150
|
rdoc_options: []
|
151
151
|
require_paths:
|
@@ -154,14 +154,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
154
|
requirements:
|
155
155
|
- - ">="
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
157
|
+
version: '3.0'
|
158
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
159
|
requirements:
|
160
160
|
- - ">="
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
|
-
rubygems_version: 3.
|
164
|
+
rubygems_version: 3.3.11
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: The complete solution for Ruby command-line executables
|