puppet-debugger 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5495b2df7d84d06cb7871e2201f78c0bfca4240a
4
- data.tar.gz: b98315db3c5862050e0afc147868fb48e6306875
3
+ metadata.gz: dc94187d9069c5845d498319894fc673b5ce27e0
4
+ data.tar.gz: b6c0c7cf52dcee07edc089f51de91b8b44d9d60b
5
5
  SHA512:
6
- metadata.gz: 516bb93a8fef0e35e9b100f0f73b604c74acc2449984d0370127f242dd66226e1e894c051b39547eb5273ebc62d8cb713850d534a1b12443c45276a179520695
7
- data.tar.gz: b2597ecda5402fe9659ab5d3d54b5b0c08e0c96960db30a4fe9453329257352c3813ef4cc25440e5749873f7798b7d8c4b97965fbeb871b83340b6aa6f5509a1
6
+ metadata.gz: bd7a8d95c89179fd2afd02a129529e734401e0e49b5fd17e28b6035d90569c54d23e399e58afb5521597a22d01d34305e8e58d46827276456502f0c1b2ec21b6
7
+ data.tar.gz: 9468ddccf296c8dedc67a6ffec2cddb64cb6ada89a5929f441115f1d3be118d3554eb1c549a195244b5cf5404e7e64d8bd159cb8936ff4814b53a89b2c755d73
data/.gitlab-ci.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  stages:
2
+ - validate
2
3
  - test
4
+ - release
3
5
  - deploy
4
6
  - web_deploy
5
7
 
@@ -8,7 +10,7 @@ stages:
8
10
  script:
9
11
  - gem update --system > /dev/null
10
12
  - gem install bundler > /dev/null
11
- - bundle install --without development
13
+ - bundle install --without development validate
12
14
  - bundle exec puppet module install puppetlabs-stdlib
13
15
  - bundle exec rake spec
14
16
 
@@ -21,6 +23,28 @@ web_trigger_staging:
21
23
  script:
22
24
  - "curl -X POST -F token=$PREPL_BUILD_TRIGGER_TOKEN -F ref=$REF https://gitlab.com/api/v3/projects/1146764/trigger/builds"
23
25
 
26
+ rubocop_ruby:
27
+ stage: validate
28
+ allow_failure: true
29
+ only:
30
+ - branches
31
+ tags:
32
+ - ruby2.2
33
+ script:
34
+ - bundle install
35
+ - bundle exec rubocop -D
36
+
37
+ bump_and_tag:
38
+ type: release
39
+ when: manual
40
+ tags:
41
+ - ruby2.2
42
+ only:
43
+ - master@puppet-debugger/puppet-debugger
44
+ script:
45
+ - gem install release_me
46
+ - bump_and_tag
47
+
24
48
  web_trigger_production:
25
49
  type: web_deploy
26
50
  variables:
@@ -126,4 +150,3 @@ puppet_48_ruby22:
126
150
  PUPPET_GEM_VERSION: "~> 4.8"
127
151
  <<: *puppet_job_def
128
152
  <<: *ruby22
129
-
data/.release_me.yaml ADDED
@@ -0,0 +1,11 @@
1
+ vcs:
2
+ author_email: autobot@nwops.io
3
+ author_name: Autobot
4
+ provider: gitlab
5
+ branch_name: master
6
+
7
+ adapter:
8
+ version_file_relative_path: 'lib/version.rb'
9
+ version_field: 'VERSION'
10
+ version_type: 'semver'
11
+ adapter_name: 'custom'
data/.rubocop.yml ADDED
@@ -0,0 +1,239 @@
1
+ inherit_from: .rubocop_todo.yml
2
+ # This configuration was generated by
3
+ # `rubocop --auto-gen-config`
4
+ # on 2016-11-22 23:40:05 -0800 using RuboCop version 0.45.0.
5
+ # The point is for the user to remove these configuration records
6
+ # one by one as the offenses are removed from the code base.
7
+ # Note that changes in the inspected code, or installation of new
8
+ # versions of RuboCop, may require this file to be generated again.
9
+ AllCops:
10
+ Include:
11
+ - spec
12
+ - lib/puppet
13
+ - lib/puppet-debugger
14
+ - lib/awesome_print
15
+ - lib/version.rb
16
+ - lib/puppet-debugger.rb
17
+ - bin
18
+ # Offense count: 7
19
+ # Configuration parameters: AllowSafeAssignment.
20
+ Lint/AssignmentInCondition:
21
+ Exclude:
22
+ - 'lib/puppet-debugger/cli.rb'
23
+ - 'lib/puppet-debugger/support.rb'
24
+ - 'lib/puppet-debugger/support/input_responders.rb'
25
+ - 'lib/puppet/application/debugger.rb'
26
+
27
+ # Offense count: 23
28
+ # Cop supports --auto-correct.
29
+ Lint/Debugger:
30
+ Exclude:
31
+ - spec/**/*.rb
32
+
33
+
34
+ # Offense count: 1
35
+ # Cop supports --auto-correct.
36
+ # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
37
+ # SupportedStyles: start_of_line, def
38
+ #Lint/DefEndAlignment:
39
+ # Exclude:
40
+ # - 'lib/puppet-debugger/support/errors.rb'
41
+ #
42
+ ## Offense count: 1
43
+ #Lint/ElseLayout:
44
+ # Exclude:
45
+ # - 'lib/puppet-debugger/support/play.rb'
46
+ #
47
+ ## Offense count: 10
48
+ ## Cop supports --auto-correct.
49
+ ## Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
50
+ ## SupportedStyles: keyword, variable, start_of_line
51
+ #Lint/EndAlignment:
52
+ # Exclude:
53
+ # - 'lib/puppet-debugger/code/code_file.rb'
54
+ # - 'lib/puppet-debugger/code/code_range.rb'
55
+ # - 'lib/puppet-debugger/code/loc.rb'
56
+ # - 'lib/trollop.rb'
57
+ #
58
+ ## Offense count: 3
59
+ #Lint/HandleExceptions:
60
+ # Exclude:
61
+ # - 'lib/puppet-debugger/support.rb'
62
+ # - 'lib/trollop.rb'
63
+ #
64
+ ## Offense count: 1
65
+ #Lint/NestedMethodDefinition:
66
+ # Exclude:
67
+ # - 'lib/trollop.rb'
68
+ #
69
+ ## Offense count: 1
70
+ #Lint/ShadowingOuterLocalVariable:
71
+ # Exclude:
72
+ # - 'lib/puppet-debugger/support/input_responders.rb'
73
+ #
74
+ ## Offense count: 18
75
+ #Lint/UselessAssignment:
76
+ # Exclude:
77
+ # - 'lib/puppet-debugger/support.rb'
78
+ # - 'lib/puppet-debugger/support/environment.rb'
79
+ # - 'lib/puppet-debugger/support/errors.rb'
80
+ # - 'lib/puppet-debugger/support/functions.rb'
81
+ # - 'lib/puppet-debugger/support/input_responders.rb'
82
+ # - 'lib/puppet-debugger/support/node.rb'
83
+ # - 'lib/puppet-debugger/support/play.rb'
84
+ # - 'lib/puppet/application/debugger.rb'
85
+ # - 'spec/support_spec.rb'
86
+ #
87
+ ## Offense count: 22
88
+ #Metrics/AbcSize:
89
+ # Max: 150
90
+ #
91
+ ## Offense count: 4
92
+ ## Configuration parameters: CountComments.
93
+ #Metrics/BlockLength:
94
+ # Max: 31
95
+ #
96
+ ## Offense count: 3
97
+ #Metrics/BlockNesting:
98
+ # Max: 6
99
+ #
100
+ ## Offense count: 4
101
+ ## Configuration parameters: CountComments.
102
+ #Metrics/ClassLength:
103
+ # Max: 491
104
+ #
105
+ ## Offense count: 12
106
+ #Metrics/CyclomaticComplexity:
107
+ # Max: 59
108
+ #
109
+ ## Offense count: 152
110
+ ## Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
111
+ ## URISchemes: http, https
112
+ Metrics/LineLength:
113
+ Max: 586
114
+
115
+ ## Offense count: 30
116
+ ## Configuration parameters: CountComments.
117
+ #Metrics/MethodLength:
118
+ # Max: 100
119
+ #
120
+ ## Offense count: 2
121
+ ## Configuration parameters: CountComments.
122
+ #Metrics/ModuleLength:
123
+ # Max: 115
124
+ #
125
+ ## Offense count: 10
126
+ #Metrics/PerceivedComplexity:
127
+ # Max: 46
128
+ #
129
+ ## Offense count: 1
130
+ ## Cop supports --auto-correct.
131
+ #Performance/RedundantMatch:
132
+ # Exclude:
133
+ # - 'lib/awesome_print/ext/awesome_puppet.rb'
134
+ #
135
+ ## Offense count: 8
136
+ #Style/AccessorMethodName:
137
+ # Exclude:
138
+ # - 'lib/puppet-debugger/support/compiler.rb'
139
+ # - 'lib/puppet-debugger/support/environment.rb'
140
+ # - 'lib/puppet-debugger/support/facts.rb'
141
+ # - 'lib/puppet-debugger/support/input_responders.rb'
142
+ # - 'lib/puppet-debugger/support/node.rb'
143
+ # - 'lib/puppet-debugger/support/scope.rb'
144
+ #
145
+ ## Offense count: 2
146
+ ## Configuration parameters: EnforcedStyle, SupportedStyles.
147
+ ## SupportedStyles: nested, compact
148
+ #Style/ClassAndModuleChildren:
149
+ # Exclude:
150
+ # - 'lib/puppet/application/debugger.rb'
151
+ # - 'spec/spec_helper.rb'
152
+ #
153
+ ## Offense count: 21
154
+ #Style/Documentation:
155
+ # Exclude:
156
+ # - 'spec/**/*'
157
+ # - 'test/**/*'
158
+ # - 'lib/awesome_print/ext/awesome_puppet.rb'
159
+ # - 'lib/puppet-debugger/cli.rb'
160
+ # - 'lib/puppet-debugger/code/code_file.rb'
161
+ # - 'lib/puppet-debugger/support.rb'
162
+ # - 'lib/puppet-debugger/support/compiler.rb'
163
+ # - 'lib/puppet-debugger/support/environment.rb'
164
+ # - 'lib/puppet-debugger/support/errors.rb'
165
+ # - 'lib/puppet-debugger/support/facts.rb'
166
+ # - 'lib/puppet-debugger/support/functions.rb'
167
+ # - 'lib/puppet-debugger/support/input_responders.rb'
168
+ # - 'lib/puppet-debugger/support/node.rb'
169
+ # - 'lib/puppet-debugger/support/play.rb'
170
+ # - 'lib/puppet-debugger/support/scope.rb'
171
+ # - 'lib/puppet/application/debugger.rb'
172
+ # - 'lib/trollop.rb'
173
+ #
174
+ ## Offense count: 2
175
+ #Style/DoubleNegation:
176
+ # Exclude:
177
+ # - 'lib/puppet-debugger/debugger_code.rb'
178
+ #
179
+ ## Offense count: 1
180
+ ## Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
181
+ #Style/FileName:
182
+ # Exclude:
183
+ # - 'lib/puppet-debugger.rb'
184
+ #
185
+ ## Offense count: 11
186
+ ## Configuration parameters: MinBodyLength.
187
+ #Style/GuardClause:
188
+ # Exclude:
189
+ # - 'lib/puppet-debugger/cli.rb'
190
+ # - 'lib/puppet-debugger/support.rb'
191
+ # - 'lib/puppet-debugger/support/input_responders.rb'
192
+ # - 'lib/puppet-debugger/support/play.rb'
193
+ # - 'lib/trollop.rb'
194
+ # - 'puppet-debugger.gemspec'
195
+ #
196
+ ## Offense count: 2
197
+ #Style/IdenticalConditionalBranches:
198
+ # Exclude:
199
+ # - 'lib/puppet-debugger/support/play.rb'
200
+ #
201
+ ## Offense count: 1
202
+ ## Cop supports --auto-correct.
203
+ #Style/MethodCallParentheses:
204
+ # Exclude:
205
+ # - 'spec/support_spec.rb'
206
+ #
207
+ ## Offense count: 2
208
+ #Style/MethodMissing:
209
+ # Exclude:
210
+ # - 'lib/puppet-debugger/debugger_code.rb'
211
+ # - 'lib/trollop.rb'
212
+ #
213
+ ## Offense count: 1
214
+ #Style/MultilineTernaryOperator:
215
+ # Exclude:
216
+ # - 'lib/puppet/application/debugger.rb'
217
+ #
218
+ ## Offense count: 2
219
+ ## Cop supports --auto-correct.
220
+ ## Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
221
+ ## SupportedStyles: predicate, comparison
222
+ #Style/NumericPredicate:
223
+ # Exclude:
224
+ # - 'spec/**/*'
225
+ # - 'lib/puppet-debugger/code/code_range.rb'
226
+ #
227
+ ## Offense count: 1
228
+ ## Cop supports --auto-correct.
229
+ ## Configuration parameters: AllowAsExpressionSeparator.
230
+ #Style/Semicolon:
231
+ # Exclude:
232
+ # - 'lib/puppet/application/debugger.rb'
233
+ #
234
+ ## Offense count: 1
235
+ ## Cop supports --auto-correct.
236
+ ## Configuration parameters: AllowForAlignment.
237
+ #Style/SpaceAroundOperators:
238
+ # Exclude:
239
+ # - 'spec/support_spec.rb'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,196 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-12-09 20:03:09 -0800 using RuboCop version 0.45.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
12
+ # SupportedStyles: start_of_line, def
13
+ Lint/DefEndAlignment:
14
+ Exclude:
15
+ - 'lib/puppet-debugger/support/errors.rb'
16
+
17
+ # Offense count: 1
18
+ Lint/ElseLayout:
19
+ Exclude:
20
+ - 'lib/puppet-debugger/support/play.rb'
21
+
22
+ # Offense count: 10
23
+ # Cop supports --auto-correct.
24
+ # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
25
+ # SupportedStyles: keyword, variable, start_of_line
26
+ Lint/EndAlignment:
27
+ Exclude:
28
+ - 'lib/puppet-debugger/code/code_file.rb'
29
+ - 'lib/puppet-debugger/code/code_range.rb'
30
+ - 'lib/puppet-debugger/code/loc.rb'
31
+ - 'lib/trollop.rb'
32
+
33
+ # Offense count: 3
34
+ Lint/HandleExceptions:
35
+ Exclude:
36
+ - 'lib/puppet-debugger/support.rb'
37
+ - 'lib/trollop.rb'
38
+
39
+ # Offense count: 1
40
+ Lint/NestedMethodDefinition:
41
+ Exclude:
42
+ - 'lib/trollop.rb'
43
+
44
+ # Offense count: 1
45
+ Lint/ShadowingOuterLocalVariable:
46
+ Exclude:
47
+ - 'lib/puppet-debugger/support/input_responders.rb'
48
+
49
+ # Offense count: 18
50
+ Lint/UselessAssignment:
51
+ Exclude:
52
+ - 'lib/puppet-debugger/support.rb'
53
+ - 'lib/puppet-debugger/support/environment.rb'
54
+ - 'lib/puppet-debugger/support/errors.rb'
55
+ - 'lib/puppet-debugger/support/functions.rb'
56
+ - 'lib/puppet-debugger/support/input_responders.rb'
57
+ - 'lib/puppet-debugger/support/node.rb'
58
+ - 'lib/puppet-debugger/support/play.rb'
59
+ - 'lib/puppet/application/debugger.rb'
60
+ - 'spec/support_spec.rb'
61
+
62
+ # Offense count: 22
63
+ Metrics/AbcSize:
64
+ Max: 150
65
+
66
+ # Offense count: 3
67
+ # Configuration parameters: CountComments.
68
+ Metrics/BlockLength:
69
+ Max: 31
70
+
71
+ # Offense count: 3
72
+ Metrics/BlockNesting:
73
+ Max: 6
74
+
75
+ # Offense count: 4
76
+ # Configuration parameters: CountComments.
77
+ Metrics/ClassLength:
78
+ Max: 491
79
+
80
+ # Offense count: 12
81
+ Metrics/CyclomaticComplexity:
82
+ Max: 59
83
+
84
+ # Offense count: 30
85
+ # Configuration parameters: CountComments.
86
+ Metrics/MethodLength:
87
+ Max: 100
88
+
89
+ # Offense count: 2
90
+ # Configuration parameters: CountComments.
91
+ Metrics/ModuleLength:
92
+ Max: 115
93
+
94
+ # Offense count: 10
95
+ Metrics/PerceivedComplexity:
96
+ Max: 46
97
+
98
+ # Offense count: 1
99
+ # Cop supports --auto-correct.
100
+ Performance/RedundantMatch:
101
+ Exclude:
102
+ - 'lib/awesome_print/ext/awesome_puppet.rb'
103
+
104
+ # Offense count: 8
105
+ Style/AccessorMethodName:
106
+ Exclude:
107
+ - 'lib/puppet-debugger/support/compiler.rb'
108
+ - 'lib/puppet-debugger/support/environment.rb'
109
+ - 'lib/puppet-debugger/support/facts.rb'
110
+ - 'lib/puppet-debugger/support/input_responders.rb'
111
+ - 'lib/puppet-debugger/support/node.rb'
112
+ - 'lib/puppet-debugger/support/scope.rb'
113
+
114
+ # Offense count: 2
115
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
116
+ # SupportedStyles: nested, compact
117
+ Style/ClassAndModuleChildren:
118
+ Exclude:
119
+ - 'lib/puppet/application/debugger.rb'
120
+ - 'spec/spec_helper.rb'
121
+
122
+ # Offense count: 21
123
+ Style/Documentation:
124
+ Exclude:
125
+ - 'spec/**/*'
126
+ - 'test/**/*'
127
+ - 'lib/awesome_print/ext/awesome_puppet.rb'
128
+ - 'lib/puppet-debugger/cli.rb'
129
+ - 'lib/puppet-debugger/code/code_file.rb'
130
+ - 'lib/puppet-debugger/support.rb'
131
+ - 'lib/puppet-debugger/support/compiler.rb'
132
+ - 'lib/puppet-debugger/support/environment.rb'
133
+ - 'lib/puppet-debugger/support/errors.rb'
134
+ - 'lib/puppet-debugger/support/facts.rb'
135
+ - 'lib/puppet-debugger/support/functions.rb'
136
+ - 'lib/puppet-debugger/support/input_responders.rb'
137
+ - 'lib/puppet-debugger/support/node.rb'
138
+ - 'lib/puppet-debugger/support/play.rb'
139
+ - 'lib/puppet-debugger/support/scope.rb'
140
+ - 'lib/puppet/application/debugger.rb'
141
+ - 'lib/trollop.rb'
142
+
143
+ # Offense count: 2
144
+ Style/DoubleNegation:
145
+ Exclude:
146
+ - 'lib/puppet-debugger/debugger_code.rb'
147
+
148
+ # Offense count: 10
149
+ # Configuration parameters: MinBodyLength.
150
+ Style/GuardClause:
151
+ Exclude:
152
+ - 'lib/puppet-debugger/cli.rb'
153
+ - 'lib/puppet-debugger/support.rb'
154
+ - 'lib/puppet-debugger/support/input_responders.rb'
155
+ - 'lib/puppet-debugger/support/play.rb'
156
+ - 'lib/trollop.rb'
157
+
158
+ # Offense count: 2
159
+ Style/IdenticalConditionalBranches:
160
+ Exclude:
161
+ - 'lib/puppet-debugger/support/play.rb'
162
+
163
+ # Offense count: 2
164
+ Style/MethodMissing:
165
+ Exclude:
166
+ - 'lib/puppet-debugger/debugger_code.rb'
167
+ - 'lib/trollop.rb'
168
+
169
+ # Offense count: 1
170
+ Style/MultilineTernaryOperator:
171
+ Exclude:
172
+ - 'lib/puppet/application/debugger.rb'
173
+
174
+ # Offense count: 2
175
+ # Cop supports --auto-correct.
176
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
177
+ # SupportedStyles: predicate, comparison
178
+ Style/NumericPredicate:
179
+ Exclude:
180
+ - 'spec/**/*'
181
+ - 'lib/puppet-debugger/code/code_range.rb'
182
+
183
+ # Offense count: 3
184
+ # Cop supports --auto-correct.
185
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
186
+ # SupportedStyles: slashes, percent_r, mixed
187
+ Style/RegexpLiteral:
188
+ Exclude:
189
+ - 'spec/puppet_debugger_spec.rb'
190
+
191
+ # Offense count: 1
192
+ # Cop supports --auto-correct.
193
+ # Configuration parameters: AllowAsExpressionSeparator.
194
+ Style/Semicolon:
195
+ Exclude:
196
+ - 'lib/puppet/application/debugger.rb'