getoptlong 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b270eb9d604cd1ffd4d5f0470b369d9c336c950d7feb0d2a07b4552048f0c85
4
- data.tar.gz: 2443fc1bdf21695a9fe0c444d239064930eb3fbbe7b36638f5ed30879a22bc76
3
+ metadata.gz: 9b62844e3213d4e60f6737e233630255b2b69d26b82eeb93c955fd5eb6a812c2
4
+ data.tar.gz: 119f8a1630c1f4f1f0e5ed5756d8da55a73129f547849d4541784386b81e4538
5
5
  SHA512:
6
- metadata.gz: 3fdf473be5224dbd4151bd035f77862b77834ded4059a3ac4f4088f16ddbf8c84c52d90829dbe26a1da67a8e227489f362d3c190acd4f405baa97d142dff5524
7
- data.tar.gz: ee73c1412d372f84e1de744d17a4aa3a2eb223fa79f39efccafd4e1f918c82632343c3fd440fa7428bf13e90fdb1b617737e6d4b93486af6389a7417f95b6496
6
+ metadata.gz: 12f7edceafd953850c2d01b6da450e2fd05326084bea106d077d308b94286d580137df9775927cfe39b851465b2ed0c7369dbd3ee14a69dc89e2138c9b2acb95
7
+ data.tar.gz: cffc09ec1a5ec57bc94f89fec03f30a514574774abdc5c1b230291e7e9354fd4b02e52044ed63d94de68f1ae5c8f3ad249d8892ac5a810211b5f84b1128e79c5
@@ -4,24 +4,23 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  ruby-versions:
7
- runs-on: ubuntu-latest
8
- outputs:
9
- versions: ${{ steps.versions.outputs.value }}
10
- steps:
11
- - id: versions
12
- run: |
13
- versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.6"]')
14
- echo "::set-output name=value::${versions}"
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ min_version: 2.6
10
+
15
11
  test:
16
12
  needs: ruby-versions
17
13
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
18
14
  strategy:
19
15
  matrix:
20
16
  ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
21
- os: [ ubuntu-latest, macos-latest ]
17
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
18
+ exclude:
19
+ - { os: windows-latest, ruby: truffleruby-head }
20
+ - { os: windows-latest, ruby: truffleruby }
22
21
  runs-on: ${{ matrix.os }}
23
22
  steps:
24
- - uses: actions/checkout@v3
23
+ - uses: actions/checkout@v4
25
24
  - name: Set up Ruby
26
25
  uses: ruby/setup-ruby@v1
27
26
  with:
data/getoptlong.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  name = File.basename(__FILE__, ".gemspec")
4
- version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
4
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
5
5
  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
6
  /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
7
  end rescue nil
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  # Specify which files should be added to the gem when it is released.
25
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
28
  end
29
29
  spec.require_paths = ["lib"]
30
30
  end
data/lib/getoptlong.rb CHANGED
@@ -352,7 +352,7 @@
352
352
  #
353
353
  # Command line:
354
354
  #
355
- # $ ruby fibonacci.rb --number 6 --verbose yes
355
+ # $ ruby fibonacci.rb --number 6 --verbose yes
356
356
  #
357
357
  # Output:
358
358
  #
@@ -368,7 +368,7 @@
368
368
  #
369
369
  class GetoptLong
370
370
  # Version.
371
- VERSION = "0.2.0"
371
+ VERSION = "0.2.1"
372
372
 
373
373
  #
374
374
  # Orderings.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getoptlong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: GetoptLong for Ruby
14
14
  email:
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.4.0.dev
63
+ rubygems_version: 3.5.0.dev
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: GetoptLong for Ruby