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 +4 -4
- data/.github/workflows/test.yml +9 -10
- data/getoptlong.gemspec +2 -2
- data/lib/getoptlong.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b62844e3213d4e60f6737e233630255b2b69d26b82eeb93c955fd5eb6a812c2
|
4
|
+
data.tar.gz: 119f8a1630c1f4f1f0e5ed5756d8da55a73129f547849d4541784386b81e4538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f7edceafd953850c2d01b6da450e2fd05326084bea106d077d308b94286d580137df9775927cfe39b851465b2ed0c7369dbd3ee14a69dc89e2138c9b2acb95
|
7
|
+
data.tar.gz: cffc09ec1a5ec57bc94f89fec03f30a514574774abdc5c1b230291e7e9354fd4b02e52044ed63d94de68f1ae5c8f3ad249d8892ac5a810211b5f84b1128e79c5
|
data/.github/workflows/test.yml
CHANGED
@@ -4,24 +4,23 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
ruby-versions:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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@
|
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, "
|
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
|
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
|
-
#
|
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.
|
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.
|
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:
|
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.
|
63
|
+
rubygems_version: 3.5.0.dev
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: GetoptLong for Ruby
|