puppet-retrospec 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +281 -49
  4. data/VERSION +1 -1
  5. data/lib/retrospec/helpers.rb +8 -11
  6. data/lib/retrospec/puppet_module.rb +10 -2
  7. data/lib/retrospec/templates/acceptance_spec_test.erb +1 -1
  8. data/lib/retrospec/templates/{fixtures_file.erb → module_files/.fixtures.yml} +0 -0
  9. data/lib/retrospec/templates/module_files/.gitignore.erb +8 -0
  10. data/lib/retrospec/templates/{travis.yml.erb → module_files/.travis.yml} +0 -0
  11. data/lib/retrospec/templates/module_files/Gemfile +29 -0
  12. data/lib/retrospec/templates/{rakefile.erb → module_files/Rakefile} +0 -0
  13. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/centos-59-x64.yml +0 -0
  14. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/centos-64-x64-pe.yml +0 -0
  15. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/centos-64-x64.yml +0 -0
  16. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/centos-66-x64.yml +0 -0
  17. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/debian-607-x64.yml +0 -0
  18. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/debian-70rc1-x64.yml +0 -0
  19. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/debian-73-i386.yml +0 -0
  20. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/debian-73-x64.yml +0 -0
  21. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/default.yml +0 -0
  22. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/fedora-18-x64.yml +0 -0
  23. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/sles-11sp1-x64.yml +0 -0
  24. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/ubuntu-server-10044-x64.yml +0 -0
  25. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/ubuntu-server-12042-x64.yml +0 -0
  26. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/ubuntu-server-1310-x64.yml +0 -0
  27. data/lib/retrospec/templates/{nodesets → module_files/spec/acceptance/nodesets}/ubuntu-server-1404-x64.yml +0 -0
  28. data/lib/retrospec/templates/{shared_context.erb → module_files/spec/shared_contexts.rb} +2 -1
  29. data/lib/retrospec/templates/{spec_helper_file.erb → module_files/spec/spec_helper.rb} +1 -1
  30. data/lib/retrospec/templates/{spec_helper_acceptance.rb.erb → module_files/spec/spec_helper_acceptance.rb} +0 -0
  31. data/lib/retrospec/templates/resource_spec_file.erb +1 -1
  32. data/lib/retrospec.rb +25 -49
  33. data/puppet-retrospec.gemspec +28 -26
  34. data/spec/unit/puppet-retrospec_spec.rb +60 -41
  35. metadata +54 -52
  36. data/lib/retrospec/templates/gemfile.erb +0 -29
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-retrospec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet
@@ -28,154 +28,154 @@ dependencies:
28
28
  name: trollop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.12'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.12'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jeweler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: fakefs
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pry-rescue
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry-stack_explorer
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: pry-coolline
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  description: Retrofits and generates valid puppet rspec test code to existing modules
@@ -187,9 +187,10 @@ extra_rdoc_files:
187
187
  - LICENSE
188
188
  - README.md
189
189
  files:
190
- - .document
191
- - .rspec
192
- - .travis.yml
190
+ - ".document"
191
+ - ".rspec"
192
+ - ".travis.yml"
193
+ - CHANGELOG.md
193
194
  - Gemfile
194
195
  - LICENSE
195
196
  - README.md
@@ -204,29 +205,30 @@ files:
204
205
  - lib/retrospec/resource.rb
205
206
  - lib/retrospec/spec_object.rb
206
207
  - lib/retrospec/templates/acceptance_spec_test.erb
207
- - lib/retrospec/templates/fixtures_file.erb
208
- - lib/retrospec/templates/gemfile.erb
209
- - lib/retrospec/templates/nodesets/centos-59-x64.yml
210
- - lib/retrospec/templates/nodesets/centos-64-x64-pe.yml
211
- - lib/retrospec/templates/nodesets/centos-64-x64.yml
212
- - lib/retrospec/templates/nodesets/centos-66-x64.yml
213
- - lib/retrospec/templates/nodesets/debian-607-x64.yml
214
- - lib/retrospec/templates/nodesets/debian-70rc1-x64.yml
215
- - lib/retrospec/templates/nodesets/debian-73-i386.yml
216
- - lib/retrospec/templates/nodesets/debian-73-x64.yml
217
- - lib/retrospec/templates/nodesets/default.yml
218
- - lib/retrospec/templates/nodesets/fedora-18-x64.yml
219
- - lib/retrospec/templates/nodesets/sles-11sp1-x64.yml
220
- - lib/retrospec/templates/nodesets/ubuntu-server-10044-x64.yml
221
- - lib/retrospec/templates/nodesets/ubuntu-server-12042-x64.yml
222
- - lib/retrospec/templates/nodesets/ubuntu-server-1310-x64.yml
223
- - lib/retrospec/templates/nodesets/ubuntu-server-1404-x64.yml
224
- - lib/retrospec/templates/rakefile.erb
208
+ - lib/retrospec/templates/module_files/.fixtures.yml
209
+ - lib/retrospec/templates/module_files/.gitignore.erb
210
+ - lib/retrospec/templates/module_files/.travis.yml
211
+ - lib/retrospec/templates/module_files/Gemfile
212
+ - lib/retrospec/templates/module_files/Rakefile
213
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-59-x64.yml
214
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64-pe.yml
215
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64.yml
216
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-66-x64.yml
217
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-607-x64.yml
218
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-70rc1-x64.yml
219
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-i386.yml
220
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-x64.yml
221
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/default.yml
222
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/fedora-18-x64.yml
223
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/sles-11sp1-x64.yml
224
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
225
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
226
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml
227
+ - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
228
+ - lib/retrospec/templates/module_files/spec/shared_contexts.rb
229
+ - lib/retrospec/templates/module_files/spec/spec_helper.rb
230
+ - lib/retrospec/templates/module_files/spec/spec_helper_acceptance.rb
225
231
  - lib/retrospec/templates/resource_spec_file.erb
226
- - lib/retrospec/templates/shared_context.erb
227
- - lib/retrospec/templates/spec_helper_acceptance.rb.erb
228
- - lib/retrospec/templates/spec_helper_file.erb
229
- - lib/retrospec/templates/travis.yml.erb
230
232
  - lib/retrospec/type_code.rb
231
233
  - lib/retrospec/variable_store.rb
232
234
  - lib/retrospec/version.rb
@@ -257,17 +259,17 @@ require_paths:
257
259
  - lib
258
260
  required_ruby_version: !ruby/object:Gem::Requirement
259
261
  requirements:
260
- - - '>='
262
+ - - ">="
261
263
  - !ruby/object:Gem::Version
262
264
  version: '0'
263
265
  required_rubygems_version: !ruby/object:Gem::Requirement
264
266
  requirements:
265
- - - '>='
267
+ - - ">="
266
268
  - !ruby/object:Gem::Version
267
269
  version: '0'
268
270
  requirements: []
269
271
  rubyforge_project:
270
- rubygems_version: 2.4.4
272
+ rubygems_version: 2.4.5
271
273
  signing_key:
272
274
  specification_version: 4
273
275
  summary: Generates puppet rspec test code based on the classes and defines inside
@@ -1,29 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- group :test do
4
- gem "rake"
5
- gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.7.3'
6
- gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
7
- gem "puppetlabs_spec_helper"
8
- gem 'rspec-puppet-utils', :git => 'https://github.com/Accuity/rspec-puppet-utils.git'
9
- gem 'hiera-puppet-helper', :git => 'https://github.com/bobtfish/hiera-puppet-helper.git'
10
- <%- if enable_beaker_tests? -%>
11
- gem "beaker", :git => 'https://github.com/puppetlabs/beaker.git'
12
- gem "beaker-rspec", :git => 'https://github.com/puppetlabs/beaker-rspec.git'
13
- gem "vagrant-wrapper"
14
- gem 'serverspec'
15
- <%- end -%>
16
- # there seems to be a bug with puppet-blacksmith and metadata-json-lint
17
- # removing metadata for now
18
- gem "metadata-json-lint"
19
- gem 'puppet-syntax'
20
- gem 'puppet-lint'
21
- end
22
-
23
- group :development do
24
- gem "travis"
25
- gem "travis-lint"
26
- gem "puppet-blacksmith"
27
- gem "guard-rake"
28
- end
29
-