cli_tool 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 076f3e4c68ba2d9c77a7cdf0bee20413b450441b
4
+ data.tar.gz: 2f82d33125dd2ee16a1b1df75a2fcfb00375be62
5
+ SHA512:
6
+ metadata.gz: bead76e13a0ed654c141edea488a7c50953b920df6a9a420bd91c40300d7f56709ce35086a87dab9c87189b51bb00ff08b63f0f5a8e176ee68e6537f16630eb6
7
+ data.tar.gz: c4b83444f735bfa871f8a83be407d993088396c5d3cdaf4f945e1f676ee63d0baa6904a34c2e38c68a18d7c9e6630f55a298e205d417a55f0b0c17d2d3407828
@@ -42,6 +42,10 @@ module CliTool
42
42
  true
43
43
  end
44
44
 
45
+ def option(option, args = :optional)
46
+ options(option => args)
47
+ end
48
+
45
49
  # Ensure the right format of the options (primarily dashes and casing)
46
50
  def optionify(option, retval = false)
47
51
  if option.is_a?(Array)
@@ -1,3 +1,3 @@
1
1
  module CliTool
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kelly Becker
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: awesome_print
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: pry
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Have trouble with advanced command line options, software dependency
@@ -85,8 +76,8 @@ executables: []
85
76
  extensions: []
86
77
  extra_rdoc_files: []
87
78
  files:
88
- - .gitignore
89
- - .pryrc
79
+ - ".gitignore"
80
+ - ".pryrc"
90
81
  - Gemfile
91
82
  - LICENSE.txt
92
83
  - README.md
@@ -101,27 +92,26 @@ files:
101
92
  homepage: http://kellybecker.me
102
93
  licenses:
103
94
  - MIT
95
+ metadata: {}
104
96
  post_install_message:
105
97
  rdoc_options: []
106
98
  require_paths:
107
99
  - lib
108
100
  required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
101
  requirements:
111
- - - ! '>='
102
+ - - ">="
112
103
  - !ruby/object:Gem::Version
113
104
  version: '0'
114
105
  required_rubygems_version: !ruby/object:Gem::Requirement
115
- none: false
116
106
  requirements:
117
- - - ! '>='
107
+ - - ">="
118
108
  - !ruby/object:Gem::Version
119
109
  version: '0'
120
110
  requirements: []
121
111
  rubyforge_project:
122
- rubygems_version: 1.8.23
112
+ rubygems_version: 2.2.2
123
113
  signing_key:
124
- specification_version: 3
114
+ specification_version: 4
125
115
  summary: Tools to help with writing command line applications
126
116
  test_files: []
127
117
  has_rdoc: