rzo 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rzo/version.rb CHANGED
@@ -1,3 +1,17 @@
1
+ ##
2
+ # See rzo.rb for the main implementation. This is a light-weight module
3
+ # strictly for version information.
1
4
  module Rzo
2
- VERSION = "0.1.0"
5
+ # The authoritative location of the rzo version. It should be possible to
6
+ # `require 'rizzo/version'` and access `Rizzo::VERSION` from third party
7
+ # libraries and the gemspec. The version is defined as a Semantic Version.
8
+ VERSION = '0.2.0'.freeze
9
+
10
+ ##
11
+ # Return the SemVer string, e.g. `"0.1.0"`
12
+ #
13
+ # @return [String] e.g. "1.0.0"
14
+ def self.version
15
+ Rzo::VERSION
16
+ end
3
17
  end
data/lib/rzo.rb CHANGED
@@ -1,5 +1,9 @@
1
- require "rzo/version"
1
+ require 'rzo/version'
2
+ require 'rzo/trollop'
3
+ require 'rzo/option_parsing'
4
+ require 'rzo/app'
2
5
 
6
+ ##
7
+ # The main module for rizzo
3
8
  module Rzo
4
- # Your code goes here...
5
9
  end
data/rzo.gemspec CHANGED
@@ -1,25 +1,46 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "rzo/version"
5
+ require 'rzo/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "rzo"
8
- spec.version = Rzo::VERSION
9
- spec.authors = ["Garrett Honeycutt"]
10
- spec.email = ["code@garretthoneycutt.com"]
8
+ spec.name = 'rzo'
9
+ spec.version = Rzo.version
10
+ spec.licenses = ['Apache-2.0']
11
+ spec.authors = ['Garrett Honeycutt', 'Jeff McCune']
12
+ spec.email = ['code@learnpuppet.com']
13
+
14
+ spec.summary = 'Rizzo (rzo) is a tool for working with Vagrant and layered Puppet control repos'
15
+ spec.description = 'Rizzo (rzo) is a tool for working with Vagrant and layered Puppet control repos'
16
+ spec.homepage = 'https://github.com/ghoneycutt/rizzo'
11
17
 
12
- spec.summary = %q{Rizzo is a tool for working with Vagrant and layered Puppet control repositories}
13
- spec.homepage = "https://github.com/ghoneycutt/rizzo"
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+ else
21
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
22
+ 'public gem pushes.'
23
+ end
14
24
 
15
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
26
  f.match(%r{^(test|spec|features)/})
17
27
  end
18
- spec.bindir = "exe"
28
+ spec.bindir = 'exe'
19
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ["lib"]
30
+ spec.require_paths = ['lib']
21
31
 
22
- spec.add_development_dependency "bundler", "~> 1.15"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency 'rake', '~> 10.0'
33
+ spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_development_dependency 'rubocop', '~> 0.49'
35
+ spec.add_development_dependency 'yard', '~> 0.9'
36
+ spec.add_development_dependency 'pry', '~> 0.10'
37
+ spec.add_development_dependency 'pry-stack_explorer', '~> 0.4'
38
+ spec.add_development_dependency 'guard', '~> 2.14'
39
+ spec.add_development_dependency 'guard-rspec', '~> 4.7'
40
+ spec.add_development_dependency 'guard-rubocop', '~> 1.3'
41
+ spec.add_development_dependency 'guard-yard', '~> 2.2'
42
+ spec.add_development_dependency 'guard-shell', '~> 0.7'
43
+ spec.add_development_dependency 'simplecov', '~> 0.14'
44
+ spec.add_dependency 'json', '~> 2.1'
45
+ spec.add_dependency 'deep_merge', '~> 1.1'
25
46
  end
metadata CHANGED
@@ -1,79 +1,255 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garrett Honeycutt
8
+ - Jeff McCune
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
12
+ date: 2017-08-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: bundler
15
+ name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '1.15'
20
+ version: '10.0'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '1.15'
27
+ version: '10.0'
27
28
  - !ruby/object:Gem::Dependency
28
- name: rake
29
+ name: rspec
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
+ version: '3.0'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - "~>"
39
40
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
+ version: '3.0'
41
42
  - !ruby/object:Gem::Dependency
42
- name: rspec
43
+ name: rubocop
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - "~>"
46
47
  - !ruby/object:Gem::Version
47
- version: '3.0'
48
+ version: '0.49'
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - "~>"
53
54
  - !ruby/object:Gem::Version
54
- version: '3.0'
55
- description:
55
+ version: '0.49'
56
+ - !ruby/object:Gem::Dependency
57
+ name: yard
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.9'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.9'
70
+ - !ruby/object:Gem::Dependency
71
+ name: pry
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '0.10'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '0.10'
84
+ - !ruby/object:Gem::Dependency
85
+ name: pry-stack_explorer
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0.4'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.4'
98
+ - !ruby/object:Gem::Dependency
99
+ name: guard
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.14'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.14'
112
+ - !ruby/object:Gem::Dependency
113
+ name: guard-rspec
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '4.7'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '4.7'
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-rubocop
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '1.3'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '1.3'
140
+ - !ruby/object:Gem::Dependency
141
+ name: guard-yard
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '2.2'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '2.2'
154
+ - !ruby/object:Gem::Dependency
155
+ name: guard-shell
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '0.7'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.7'
168
+ - !ruby/object:Gem::Dependency
169
+ name: simplecov
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '0.14'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '0.14'
182
+ - !ruby/object:Gem::Dependency
183
+ name: json
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '2.1'
189
+ type: :runtime
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: '2.1'
196
+ - !ruby/object:Gem::Dependency
197
+ name: deep_merge
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '1.1'
203
+ type: :runtime
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '1.1'
210
+ description: Rizzo (rzo) is a tool for working with Vagrant and layered Puppet control
211
+ repos
56
212
  email:
57
- - code@garretthoneycutt.com
58
- executables: []
213
+ - code@learnpuppet.com
214
+ executables:
215
+ - rizzo
216
+ - rzo
59
217
  extensions: []
60
218
  extra_rdoc_files: []
61
219
  files:
62
220
  - ".gitignore"
63
221
  - ".rspec"
222
+ - ".rubocop.yml"
223
+ - ".simplecov"
64
224
  - ".travis.yml"
65
- - CODE_OF_CONDUCT.md
225
+ - ".yardopts"
226
+ - CHANGELOG.md
66
227
  - Gemfile
228
+ - Guardfile
229
+ - LICENSE
67
230
  - README.md
68
231
  - Rakefile
69
232
  - bin/console
70
233
  - bin/setup
234
+ - exe/rizzo
235
+ - exe/rzo
236
+ - ext/_rizzo.json
71
237
  - lib/rzo.rb
238
+ - lib/rzo/app.rb
239
+ - lib/rzo/app/config.rb
240
+ - lib/rzo/app/generate.rb
241
+ - lib/rzo/app/subcommand.rb
242
+ - lib/rzo/app/templates/Vagrantfile.erb
243
+ - lib/rzo/logging.rb
244
+ - lib/rzo/option_parsing.rb
245
+ - lib/rzo/trollop.rb
72
246
  - lib/rzo/version.rb
73
247
  - rzo.gemspec
74
248
  homepage: https://github.com/ghoneycutt/rizzo
75
- licenses: []
76
- metadata: {}
249
+ licenses:
250
+ - Apache-2.0
251
+ metadata:
252
+ allowed_push_host: https://rubygems.org
77
253
  post_install_message:
78
254
  rdoc_options: []
79
255
  require_paths:
@@ -90,8 +266,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
266
  version: '0'
91
267
  requirements: []
92
268
  rubyforge_project:
93
- rubygems_version: 2.6.11
269
+ rubygems_version: 2.4.8
94
270
  signing_key:
95
271
  specification_version: 4
96
- summary: Rizzo is a tool for working with Vagrant and layered Puppet control repositories
272
+ summary: Rizzo (rzo) is a tool for working with Vagrant and layered Puppet control
273
+ repos
97
274
  test_files: []
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at code@garretthoneycutt.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/