cmd-optparse.rb 0.1.1 → 0.5.0
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/.gitignore +1 -0
- data/cmd-optparse.rb.gemspec +3 -9
- data/lib/{cmd-optparse → cmd/option_parser}/ac.rb +0 -2
- data/lib/{cmd-optparse → cmd/option_parser}/date.rb +0 -2
- data/lib/{cmd-optparse → cmd/option_parser}/kwargs.rb +0 -1
- data/lib/{cmd-optparse → cmd/option_parser}/shellwords.rb +0 -3
- data/lib/{cmd-optparse → cmd/option_parser}/time.rb +0 -2
- data/lib/{cmd-optparse → cmd/option_parser}/uri.rb +0 -3
- data/lib/{cmd-optparse/option_parser.rb → cmd/optparse.rb} +9 -1
- data/lib/cmd-optparse.rb +1 -1
- metadata +9 -9
- /data/lib/{cmd-optparse → cmd/option_parser}/version.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf82f634b0577123de20738385e9b15fbe0f62652ac8af58397d0226c928fdf
|
4
|
+
data.tar.gz: a4831214ac1b1534d13309826f186e2d34087a7613111901e276c056f055e38d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9683268f5c6a7e983a85e6018672c2448f080cf61c425f04666e58f38fca9f05735043355e02aeefae8cc45e0f7bb201024b0f94448762f27853fcee9958b9a2
|
7
|
+
data.tar.gz: 4f117eae64d9fb5f18d38c7121dbc74dae9c565335ac0d520a10b690bcd421e0498846d052a0af2aa4049596cfdd14a6b7673bf11e7af35ce166a093ccf3375d
|
data/.gitignore
CHANGED
data/cmd-optparse.rb.gemspec
CHANGED
@@ -1,15 +1,9 @@
|
|
1
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*OptionParser::Version\s*=\s*"(.*)"/ =~ line and break $1
|
7
|
-
end rescue nil
|
8
|
-
end
|
2
|
+
require "./lib/cmd-optparse"
|
9
3
|
|
10
4
|
Gem::Specification.new do |spec|
|
11
|
-
spec.name =
|
12
|
-
spec.version =
|
5
|
+
spec.name = File.basename(__FILE__, ".gemspec")
|
6
|
+
spec.version = OptionParser::VERSION
|
13
7
|
spec.authors = ["0x1eef", "Nobu Nakada"]
|
14
8
|
spec.email = ["0x1eef@protonmail.com"]
|
15
9
|
|
@@ -425,7 +425,7 @@
|
|
425
425
|
# If you have any questions, file a ticket at http://bugs.ruby-lang.org.
|
426
426
|
#
|
427
427
|
class OptionParser
|
428
|
-
|
428
|
+
VERSION = "0.5.0"
|
429
429
|
|
430
430
|
# :stopdoc:
|
431
431
|
NoArgument = [NO_ARGUMENT = :NONE, nil].freeze
|
@@ -2337,6 +2337,14 @@ XXX
|
|
2337
2337
|
const_set(:OctalInteger, OptionParser::OctalInteger)
|
2338
2338
|
const_set(:DecimalNumeric, OptionParser::DecimalNumeric)
|
2339
2339
|
end
|
2340
|
+
|
2341
|
+
require_relative "option_parser/ac"
|
2342
|
+
require_relative "option_parser/date"
|
2343
|
+
require_relative "option_parser/time"
|
2344
|
+
require_relative "option_parser/kwargs"
|
2345
|
+
require_relative "option_parser/shellwords"
|
2346
|
+
require_relative "option_parser/uri"
|
2347
|
+
require_relative "option_parser/version"
|
2340
2348
|
end
|
2341
2349
|
|
2342
2350
|
# ARGV is arguable by OptionParser
|
data/lib/cmd-optparse.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require_relative "cmd
|
1
|
+
require_relative "cmd/optparse"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmd-optparse.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '0x1eef'
|
@@ -92,14 +92,14 @@ files:
|
|
92
92
|
- doc/optparse/ruby/uri.rb
|
93
93
|
- doc/optparse/tutorial.rdoc
|
94
94
|
- lib/cmd-optparse.rb
|
95
|
-
- lib/cmd
|
96
|
-
- lib/cmd
|
97
|
-
- lib/cmd
|
98
|
-
- lib/cmd
|
99
|
-
- lib/cmd
|
100
|
-
- lib/cmd
|
101
|
-
- lib/cmd
|
102
|
-
- lib/cmd
|
95
|
+
- lib/cmd/option_parser/ac.rb
|
96
|
+
- lib/cmd/option_parser/date.rb
|
97
|
+
- lib/cmd/option_parser/kwargs.rb
|
98
|
+
- lib/cmd/option_parser/shellwords.rb
|
99
|
+
- lib/cmd/option_parser/time.rb
|
100
|
+
- lib/cmd/option_parser/uri.rb
|
101
|
+
- lib/cmd/option_parser/version.rb
|
102
|
+
- lib/cmd/optparse.rb
|
103
103
|
- misc/rb_optparse.bash
|
104
104
|
- misc/rb_optparse.zsh
|
105
105
|
- rakelib/.document
|
File without changes
|