getoptlong 0.1.0 → 0.1.1

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: 97e8f8ce5f0f8b6e7e95b96399f60b00e3d2bc0e806d820db2c990abc9349fca
4
- data.tar.gz: 1b376994a15f54503d342eb6286ba32b6117b409121fe267f0b5ac28da9f6969
3
+ metadata.gz: fe118ad350e6e4ce078d6e4ded76429fddb613f33c4105c5f96678fef3609c87
4
+ data.tar.gz: daa88d5ccd67de73c0d68fe0891f9badbf09a4ef8f2cedb6143e08ec4cf312b2
5
5
  SHA512:
6
- metadata.gz: bdf3632da65a872ce28b4bbbb511b353d31f9c50c47fb31a07102ffc782fcb8b6ac3068abb149f043bd4331b371f2f0140d9c3a24be0c427a8b365dfe6d2a3d7
7
- data.tar.gz: 9e83ccaf5dd67baf196394f0359e3f28f3f0017c67996fc35726da3e012b8e0e418a1c26c13da6658070ce997dbc6f253100c19b9603cd6d5357ce6193af2a34
6
+ metadata.gz: 256c66e80a1e88c3eb1d73770a7e8f439f47d7162c96ce1c2748893861ebae2e38418b55e4f0faf5edda4aa735123ccfcc3f9c0fbe289fa6338e3694826ee975
7
+ data.tar.gz: ba59b59fabb7123d30207277db73b55db4dcb5a339b59810d75ee23baf969677f93200fc859d206fc3b16346647de5bb03d9c2eacf0ce12e849619247a060aa9
@@ -1,17 +1,22 @@
1
- lib = File.expand_path("lib", __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "getoptlong/version"
1
+ # frozen_string_literal: true
2
+
3
+ name = File.basename(__FILE__, ".gemspec")
4
+ version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
5
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
+ end rescue nil
8
+ end
4
9
 
5
10
  Gem::Specification.new do |spec|
6
- spec.name = "getoptlong"
7
- spec.version = GetoptLong::VERSION
11
+ spec.name = name
12
+ spec.version = version
8
13
  spec.authors = ["Yukihiro Matsumoto"]
9
14
  spec.email = ["matz@ruby-lang.org"]
10
15
 
11
16
  spec.summary = %q{GetoptLong for Ruby}
12
17
  spec.description = spec.summary
13
18
  spec.homepage = "https://github.com/ruby/getoptlong"
14
- spec.license = "BSD-2-Clause"
19
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
15
20
 
16
21
  spec.metadata["homepage_uri"] = spec.homepage
17
22
  spec.metadata["source_code_uri"] = spec.homepage
@@ -19,7 +24,7 @@ Gem::Specification.new do |spec|
19
24
  # Specify which files should be added to the gem when it is released.
20
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
28
  end
24
29
  spec.bindir = "exe"
25
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -85,6 +85,9 @@
85
85
  # hello -n 6 --name -- /tmp
86
86
  #
87
87
  class GetoptLong
88
+ # Version.
89
+ VERSION = "0.1.1"
90
+
88
91
  #
89
92
  # Orderings.
90
93
  #
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: GetoptLong for Ruby
14
14
  email:
@@ -26,14 +26,14 @@ files:
26
26
  - bin/setup
27
27
  - getoptlong.gemspec
28
28
  - lib/getoptlong.rb
29
- - lib/getoptlong/version.rb
30
29
  homepage: https://github.com/ruby/getoptlong
31
30
  licenses:
31
+ - Ruby
32
32
  - BSD-2-Clause
33
33
  metadata:
34
34
  homepage_uri: https://github.com/ruby/getoptlong
35
35
  source_code_uri: https://github.com/ruby/getoptlong
36
- post_install_message:
36
+ post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
@@ -48,8 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.0.3
52
- signing_key:
51
+ rubygems_version: 3.2.2
52
+ signing_key:
53
53
  specification_version: 4
54
54
  summary: GetoptLong for Ruby
55
55
  test_files: []
@@ -1,3 +0,0 @@
1
- class GetoptLong
2
- VERSION = "0.1.0"
3
- end