brigadier 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +20 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +83 -0
- data/Rakefile +8 -0
- data/brigadier.gemspec +25 -0
- data/examples/advanced.rb +109 -0
- data/examples/basic.rb +19 -0
- data/examples/intermediate.rb +28 -0
- data/lib/brigadier/commands/base.rb +117 -0
- data/lib/brigadier/commands/command.rb +40 -0
- data/lib/brigadier/commands/sub_command.rb +63 -0
- data/lib/brigadier/commands.rb +8 -0
- data/lib/brigadier/exceptions/base.rb +21 -0
- data/lib/brigadier/exceptions/execute_block_missing.rb +5 -0
- data/lib/brigadier/exceptions/value_invalid.rb +5 -0
- data/lib/brigadier/exceptions/value_missing.rb +5 -0
- data/lib/brigadier/exceptions.rb +10 -0
- data/lib/brigadier/helper.rb +55 -0
- data/lib/brigadier/parameters/argument.rb +57 -0
- data/lib/brigadier/parameters/base.rb +75 -0
- data/lib/brigadier/parameters/option.rb +51 -0
- data/lib/brigadier/parameters/toggle.rb +63 -0
- data/lib/brigadier/parameters.rb +9 -0
- data/lib/brigadier/runner.rb +71 -0
- data/lib/brigadier/validators/base.rb +25 -0
- data/lib/brigadier/validators/email.rb +15 -0
- data/lib/brigadier/validators.rb +7 -0
- data/lib/brigadier/version.rb +3 -0
- data/lib/brigadier.rb +123 -0
- metadata +149 -0
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: brigadier
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ash McKenzie
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.37'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.37'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.11'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.11'
|
83
|
+
description: Brigadier is a DSL that provides the ability to create complex command
|
84
|
+
line tools with support for - sub commands, arguments, options and toggles
|
85
|
+
email:
|
86
|
+
- ash@the-rebellion.net
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".rubocop.yml"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CODE_OF_CONDUCT.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- brigadier.gemspec
|
101
|
+
- examples/advanced.rb
|
102
|
+
- examples/basic.rb
|
103
|
+
- examples/intermediate.rb
|
104
|
+
- lib/brigadier.rb
|
105
|
+
- lib/brigadier/commands.rb
|
106
|
+
- lib/brigadier/commands/base.rb
|
107
|
+
- lib/brigadier/commands/command.rb
|
108
|
+
- lib/brigadier/commands/sub_command.rb
|
109
|
+
- lib/brigadier/exceptions.rb
|
110
|
+
- lib/brigadier/exceptions/base.rb
|
111
|
+
- lib/brigadier/exceptions/execute_block_missing.rb
|
112
|
+
- lib/brigadier/exceptions/value_invalid.rb
|
113
|
+
- lib/brigadier/exceptions/value_missing.rb
|
114
|
+
- lib/brigadier/helper.rb
|
115
|
+
- lib/brigadier/parameters.rb
|
116
|
+
- lib/brigadier/parameters/argument.rb
|
117
|
+
- lib/brigadier/parameters/base.rb
|
118
|
+
- lib/brigadier/parameters/option.rb
|
119
|
+
- lib/brigadier/parameters/toggle.rb
|
120
|
+
- lib/brigadier/runner.rb
|
121
|
+
- lib/brigadier/validators.rb
|
122
|
+
- lib/brigadier/validators/base.rb
|
123
|
+
- lib/brigadier/validators/email.rb
|
124
|
+
- lib/brigadier/version.rb
|
125
|
+
homepage: https://github.com/ashmckenzie
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.4.5.1
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: Brigadier - Take control of your command line
|
149
|
+
test_files: []
|