shellopts 0.9.3 → 0.9.4

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: 35b358de39fe1966b1f9ad95dd2e92b296e86f122439a0e69d9ca3367005e279
4
- data.tar.gz: 6080ae9b374490c0a39f70a440b65e80a711756646997e2589d059c627c9c12a
3
+ metadata.gz: 405cc16b5b116eaecfbbf6bc3e7896b473380d710de246fe1d0db8957a0b37ad
4
+ data.tar.gz: f455be9f739a91cd3c809670985509a92d91115e92475a7d2c3d4fb46cf22a90
5
5
  SHA512:
6
- metadata.gz: 7ac618dcd5a918827b7a57dd8b462352f8f464e844428eac60aabd5c3cca220a89898f3bd1f4abf7e5d8f8dbac9bfb46dfd22c8a1d4baf300683fc2ccbe24630
7
- data.tar.gz: a278e013c2a8e2ec673c4dc8ebb0198a8060e71164a5b3d3d68f48ec5f56009b1d2589f5f069855d640e7c76f50fe7493ea21e2118c331803e1e0ef003e83178
6
+ metadata.gz: d148291a8658490359f0e9b4515e384f955bcb95ea81d88965dc6659bd3d6d0c7c46d07772ca7c77470a3e3b5e1b7b0261281d322670fdce90738a992d1ce3e8
7
+ data.tar.gz: da6f42af8a1cea71f2f75600200bffbb6c2f3859375cc19ddac137639b1019db7a830723089a419c0266deb3f2b6f4aa5753070b2e8626fe72cf0bd5d5bba5a8
data/TODO CHANGED
@@ -1,5 +1,10 @@
1
1
 
2
2
  TODO
3
+ o Check on return value from #process block to see if all options was handled:
4
+ case opt
5
+ when '-v'; verbose = true # Return value 'true' is ok
6
+ # Unhandled option means return value is nil
7
+ end
3
8
  o Consolidate some of the 3 variations of #error and #fail
4
9
  o Add a option flag for solitary options (--help)
5
10
  o Make a #to_yaml
@@ -55,6 +60,7 @@ LATER
55
60
  o Escape of separator in lists
56
61
  o Handle output of subcommand usage like "cmd1 cmd1.cmd2 cmd2"
57
62
  o Command-specific arguments: clone! o,opt ++ ARG1 ARG2...
63
+ o Hostname and email as basic types
58
64
 
59
65
  ON TO_H BRANCH
60
66
  ShellOpts.process(usage, argv) { |opt,val| ... } => args
@@ -1,3 +1,3 @@
1
1
  module Shellopts
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
data/shellopts.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ["lib"]
34
34
 
35
35
  spec.add_development_dependency "bundler", "~> 1.16"
36
- spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rake", ">= 12.3.3"
37
37
  spec.add_development_dependency "rspec", "~> 3.0"
38
38
  spec.add_development_dependency "indented_io"
39
39
  spec.add_development_dependency "simplecov"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellopts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2020-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement