puppet-retrospec 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +52 -0
- data/.gitlab-ci.yml +1 -0
- data/.overcommit.yml +33 -0
- data/.rubocop.yml +17 -3
- data/.rubocop_todo.yml +744 -0
- data/CHANGELOG.md +3 -1
- data/Gemfile +1 -4
- data/Gemfile.lock +34 -62
- data/README.md +2 -2
- data/Rakefile +3 -21
- data/lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb +5 -5
- data/lib/retrospec/plugins/v1/plugin/generators/function_generator.rb +62 -18
- data/lib/retrospec/plugins/v1/plugin/generators/parsers/native_function.rb +58 -0
- data/lib/retrospec/plugins/v1/plugin/puppet.rb +1 -1
- data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
- data/puppet-retrospec.gemspec +5 -1648
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/functions/awesome_parser.rb +14 -0
- data/spec/fixtures/functions/abs.pp +4 -0
- data/spec/unit/generators/acceptance_generator_spec.rb +10 -14
- data/spec/unit/generators/definition_generator_spec.rb +4 -8
- data/spec/unit/generators/fact_generater_spec.rb +6 -7
- data/spec/unit/generators/function_generator_spec.rb +83 -17
- data/spec/unit/generators/function_spec.rb +1 -3
- data/spec/unit/generators/hostclass_generator_spec.rb +7 -10
- data/spec/unit/generators/node_generator_spec.rb +4 -7
- data/spec/unit/generators/parsers/fact_spec.rb +7 -10
- data/spec/unit/generators/parsers/provider_spec.rb +5 -5
- data/spec/unit/generators/parsers/type_spec.rb +8 -9
- data/spec/unit/generators/provider_generator_spec.rb +1 -2
- data/spec/unit/generators/report_generator_spec.rb +5 -7
- data/spec/unit/generators/resource_base_generator_spec.rb +3 -5
- data/spec/unit/generators/schema_generator_spec.rb +28 -32
- data/spec/unit/generators/serializers/rspec_dumper_spec.rb +35 -38
- data/spec/unit/generators/type_generator_spec.rb +116 -116
- data/spec/unit/plugin_spec.rb +15 -22
- data/spec/unit/puppet-retrospec_spec.rb +3 -5
- data/spec/unit/spec_object_spec.rb +17 -20
- metadata +9 -4
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: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Retrofits and generates valid puppet rspec test code to existing modules
|
98
|
-
email: corey@
|
98
|
+
email: corey@nwops.io
|
99
99
|
executables: []
|
100
100
|
extensions: []
|
101
101
|
extra_rdoc_files:
|
@@ -105,9 +105,12 @@ extra_rdoc_files:
|
|
105
105
|
files:
|
106
106
|
- ".dockerignore"
|
107
107
|
- ".document"
|
108
|
+
- ".gitignore"
|
108
109
|
- ".gitlab-ci.yml"
|
110
|
+
- ".overcommit.yml"
|
109
111
|
- ".rspec"
|
110
112
|
- ".rubocop.yml"
|
113
|
+
- ".rubocop_todo.yml"
|
111
114
|
- CHANGELOG.md
|
112
115
|
- DEVELOPMENT.md
|
113
116
|
- Dockerfile
|
@@ -130,6 +133,7 @@ files:
|
|
130
133
|
- lib/retrospec/plugins/v1/plugin/generators/node_generator.rb
|
131
134
|
- lib/retrospec/plugins/v1/plugin/generators/parsers/facter.rb
|
132
135
|
- lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb
|
136
|
+
- lib/retrospec/plugins/v1/plugin/generators/parsers/native_function.rb
|
133
137
|
- lib/retrospec/plugins/v1/plugin/generators/parsers/type.rb
|
134
138
|
- lib/retrospec/plugins/v1/plugin/generators/provider_generator.rb
|
135
139
|
- lib/retrospec/plugins/v1/plugin/generators/report_generator.rb
|
@@ -170,6 +174,7 @@ files:
|
|
170
174
|
- spec/fixtures/fixture_modules/zero_resource_module/manifests/empty_class.pp
|
171
175
|
- spec/fixtures/fixture_modules/zero_resource_module/manifests/not_a_resource_defination.pp
|
172
176
|
- spec/fixtures/fixture_modules/zero_resource_module/metadata.json
|
177
|
+
- spec/fixtures/functions/abs.pp
|
173
178
|
- spec/fixtures/host_class_test.txt
|
174
179
|
- spec/fixtures/manifests/apache.pp
|
175
180
|
- spec/fixtures/manifests/includes-class.pp
|
@@ -1761,7 +1766,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1761
1766
|
version: '0'
|
1762
1767
|
requirements: []
|
1763
1768
|
rubyforge_project:
|
1764
|
-
rubygems_version: 2.
|
1769
|
+
rubygems_version: 2.6.6
|
1765
1770
|
signing_key:
|
1766
1771
|
specification_version: 4
|
1767
1772
|
summary: Generates puppet rspec test code based on the classes and defines inside
|