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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f91f8a37c32e7971823b150b8b89d7f992a6971c66351ae7527b27cdbf0926db
4
- data.tar.gz: bcd3c3131f145cea800da48c7231a6d3b0b892eed9107fd64dac52b03da2f44b
3
+ metadata.gz: 2c6f343ac9ccafcd3a3815ad19278ea429f189704635616446c92ba2d1551db8
4
+ data.tar.gz: f759ec220c1c075e42a0b175c01ef55c9aa5a82e3be754db55415bc257ce7120
5
5
  SHA512:
6
- metadata.gz: e9c808ed77df3bc880db7a790ca207b6b6beb98be447f27f55fdcd25dc32c1131bb06d6d69e47de076b590ff4182e250b6b752b3bf2439ef0f94a2168d3acc40
7
- data.tar.gz: fcfb725ce863649b098cea94314d612a5b755abd996199ed63a3e8018baef804790b8ce57e02229fed75c3247597f2030aab3bec47d0a544eb81586c45548722
6
+ metadata.gz: e714a982d479519bba3120f04f5ecb247d95e072f7f9250884649ca3b71288566368a609b4e78706ee5bd02cf6ee8d153c30408d31cfb1732d5f1232eeb8bccf
7
+ data.tar.gz: f26ca19596dc5099c1203d9a100c2c86072498f2b2e269916f1cdf8b406f11d7585258587eb2da440d63c8a9377f613af49b140b946b1d6b734f8d1c6de11306
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.4
4
+ TargetRubyVersion: 3.0
5
5
  NewCops: enable
6
6
  SuggestExtensions: false
7
7
 
data/.travis.yml CHANGED
@@ -4,10 +4,9 @@ before_install:
4
4
  - gem update --system
5
5
  - gem update bundler
6
6
  rvm:
7
- - 2.4
8
- - 2.5
9
- - 2.6
10
- - 2.7
11
7
  - 3.0
8
+ - 3.1
9
+ - 3.2
10
+ - 3.3
12
11
  - jruby
13
12
  - ruby-head
data/History.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ === 5.0.0 / 2024-01-15
2
+
3
+ * Drop support for Ruby < 3.0; update highline dependency to ~3.0 (#102). (@belousovAV)
4
+
1
5
  === 4.6.0 / 2021-04-09
2
6
 
3
7
  * Fix error with SortedSet on Ruby 3.0 (#98).
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 = '>= 2.4'
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', '~> 2.0.0')
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')
@@ -20,8 +20,8 @@ module Commander
20
20
  END
21
21
  end
22
22
 
23
- def defined_commands(*args, &block)
24
- ::Commander::Runner.instance.commands(*args, &block)
23
+ def defined_commands(...)
24
+ ::Commander::Runner.instance.commands(...)
25
25
  end
26
26
  end
27
27
  end
@@ -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
- begin
348
- Object.const_get(const)
349
- rescue RuntimeError
350
- # Rescue errors in Ruby 3 for SortedSet:
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commander
4
- VERSION = '4.6.0'
4
+ VERSION = '5.0.0'
5
5
  end
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.6.0
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: 2021-04-09 00:00:00.000000000 Z
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: 2.0.0
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: 2.0.0
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/4.6.0
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/v4.6.0
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: '2.4'
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.2.15
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