chloride 0.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chloride might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6de9d1474d03d7012ae1831c35e9a9c572d5117f
4
+ data.tar.gz: 592bb951a691a867845ba875d918299cb397e5b7
5
+ SHA512:
6
+ metadata.gz: 191910b3180eaa360b524e90800fac5586c07bb7b63f095ee24f030cc30fb8dbfc20403edcf4b83d52a0b5f6d0d9a0aab63570544b9ec8f5acc35c0c938543ab
7
+ data.tar.gz: a2fc72c58079d8829a36606be4612de5818c04efa1f22ca6b1446b758d8a95cb3f96b35df9859216b0e4ce9b153fc2d08fc877a7e6891d22d69c5d790e5fd858
data/.gitignore ADDED
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/.rubocop.yml ADDED
@@ -0,0 +1,349 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-10-21 10:10:42 -0700 using RuboCop version 0.44.1.
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: 6
10
+ # Configuration parameters: AllowSafeAssignment.
11
+ Lint/AssignmentInCondition:
12
+ Exclude:
13
+ - 'lib/chloride/host.rb'
14
+
15
+ Lint/HandleExceptions:
16
+ Enabled: true
17
+
18
+ Lint/RescueException:
19
+ Enabled: true
20
+
21
+ # Offense count: 5
22
+ Lint/ShadowingOuterLocalVariable:
23
+ Exclude:
24
+ - 'lib/chloride/host.rb'
25
+
26
+ # Cop supports --auto-correct.
27
+ Lint/StringConversionInInterpolation:
28
+ Enabled: true
29
+ AutoCorrect: true
30
+
31
+ Lint/UnderscorePrefixedVariableName:
32
+ Enabled: true
33
+
34
+ # Cop supports --auto-correct.
35
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
36
+ Lint/UnusedBlockArgument:
37
+ Enabled: true
38
+ AutoCorrect: false
39
+
40
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
41
+ Lint/UnusedMethodArgument:
42
+ Enabled: true
43
+
44
+ Lint/UselessAssignment:
45
+ Enabled: true
46
+
47
+ # Offense count: 1
48
+ Lint/Void:
49
+ Enabled: true
50
+
51
+ # Offense count: 6
52
+ Metrics/AbcSize:
53
+ Max: 70
54
+
55
+ # Offense count: 4
56
+ # Configuration parameters: CountComments.
57
+ Metrics/BlockLength:
58
+ Max: 45
59
+
60
+ # Offense count: 1
61
+ # Configuration parameters: CountComments.
62
+ Metrics/ClassLength:
63
+ Max: 205
64
+
65
+ # Offense count: 2
66
+ Metrics/CyclomaticComplexity:
67
+ Max: 20
68
+
69
+ # Offense count: 90
70
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
71
+ # URISchemes: http, https
72
+ Metrics/LineLength:
73
+ Max: 237
74
+
75
+ # Offense count: 10
76
+ # Configuration parameters: CountComments.
77
+ Metrics/MethodLength:
78
+ Max: 89
79
+
80
+ # Offense count: 2
81
+ Metrics/PerceivedComplexity:
82
+ Max: 23
83
+
84
+ # Offense count: 10
85
+ # Cop supports --auto-correct.
86
+ Performance/RedundantBlockCall:
87
+ AutoCorrect: false
88
+ Exclude:
89
+ - 'lib/chloride/action.rb'
90
+ - 'lib/chloride/action/execute.rb'
91
+ - 'lib/chloride/action/file_copy.rb'
92
+ - 'lib/chloride/action/resolve_dns.rb'
93
+ - 'lib/chloride/host.rb'
94
+
95
+ # Cop supports --auto-correct.
96
+ Performance/TimesMap:
97
+ Enabled: true
98
+ AutoCorrect: true
99
+
100
+ # Offense count: 3
101
+ # Cop supports --auto-correct.
102
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
103
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
104
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
105
+ # FunctionalMethods: let, let!, subject, watch
106
+ # IgnoredMethods: lambda, proc, it
107
+ Style/BlockDelimiters:
108
+ AutoCorrect: false
109
+ Exclude:
110
+ - 'lib/chloride/host.rb'
111
+
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
114
+ # SupportedStyles: braces, no_braces, context_dependent
115
+ Style/BracesAroundHashParameters:
116
+ AutoCorrect: true
117
+
118
+ # Offense count: 8
119
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
120
+ # SupportedStyles: nested, compact
121
+ Style/ClassAndModuleChildren:
122
+ Exclude:
123
+ - 'lib/chloride/action/execute.rb'
124
+ - 'lib/chloride/action/file_copy.rb'
125
+ - 'lib/chloride/action/mkdir.rb'
126
+ - 'lib/chloride/action/mktmp.rb'
127
+ - 'lib/chloride/action/resolve_dns.rb'
128
+ - 'lib/chloride/errors.rb'
129
+ - 'lib/chloride/event.rb'
130
+ - 'lib/chloride/host.rb'
131
+
132
+ # Cop supports --auto-correct.
133
+ Style/ColonMethodCall:
134
+ AutoCorrect: true
135
+
136
+ # Cop supports --auto-correct.
137
+ # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
138
+ # SupportedStyles: assign_to_condition, assign_inside_condition
139
+ Style/ConditionalAssignment:
140
+ AutoCorrect: true
141
+
142
+ # Offense count: 11
143
+ Style/Documentation:
144
+ Exclude:
145
+ - 'spec/**/*'
146
+ - 'test/**/*'
147
+ - 'lib/chloride.rb'
148
+ - 'lib/chloride/action.rb'
149
+ - 'lib/chloride/action/execute.rb'
150
+ - 'lib/chloride/action/file_copy.rb'
151
+ - 'lib/chloride/action/mkdir.rb'
152
+ - 'lib/chloride/action/mktmp.rb'
153
+ - 'lib/chloride/action/resolve_dns.rb'
154
+ - 'lib/chloride/errors.rb'
155
+ - 'lib/chloride/event.rb'
156
+ - 'lib/chloride/event/message.rb'
157
+ - 'lib/chloride/host.rb'
158
+
159
+ # Cop supports --auto-correct.
160
+ Style/EmptyLines:
161
+ AutoCorrect: true
162
+
163
+ # Cop supports --auto-correct.
164
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
165
+ Style/ExtraSpacing:
166
+ AutoCorrect: true
167
+
168
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
169
+ # SupportedStyles: format, sprintf, percent
170
+ Style/FormatString:
171
+ Enabled: true
172
+
173
+ # Offense count: 6
174
+ # Configuration parameters: MinBodyLength.
175
+ Style/GuardClause:
176
+ Exclude:
177
+ - 'lib/chloride/action/execute.rb'
178
+ - 'lib/chloride/action/mkdir.rb'
179
+ - 'lib/chloride/action/mktmp.rb'
180
+ - 'lib/chloride/host.rb'
181
+
182
+ # Cop supports --auto-correct.
183
+ # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
184
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
185
+ Style/HashSyntax:
186
+ AutoCorrect: true
187
+
188
+ # Cop supports --auto-correct.
189
+ # Configuration parameters: MaxLineLength.
190
+ Style/IfUnlessModifier:
191
+ AutoCorrect: true
192
+
193
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
194
+ # SupportedStyles: normal, rails
195
+ Style/IndentationConsistency:
196
+ Enabled: true
197
+
198
+ # Cop supports --auto-correct.
199
+ # Configuration parameters: Width.
200
+ Style/IndentationWidth:
201
+ AutoCorrect: true
202
+
203
+ # Cop supports --auto-correct.
204
+ Style/LeadingCommentSpace:
205
+ AutoCorrect: true
206
+
207
+ # Cop supports --auto-correct.
208
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
209
+ # SupportedStyles: symmetrical, new_line, same_line
210
+ Style/MultilineMethodCallBraceLayout:
211
+ AutoCorrect: true
212
+
213
+ # Cop supports --auto-correct.
214
+ Style/MutableConstant:
215
+ AutoCorrect: true
216
+
217
+ # Cop supports --auto-correct.
218
+ Style/NegatedIf:
219
+ AutoCorrect: true
220
+
221
+ # Cop supports --auto-correct.
222
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
223
+ # SupportedStyles: predicate, comparison
224
+ Style/NumericPredicate:
225
+ AutoCorrect: true
226
+
227
+ # Cop supports --auto-correct.
228
+ # Configuration parameters: AllowSafeAssignment.
229
+ Style/ParenthesesAroundCondition:
230
+ AutoCorrect: true
231
+
232
+ # Cop supports --auto-correct.
233
+ # Configuration parameters: PreferredDelimiters.
234
+ Style/PercentLiteralDelimiters:
235
+ AutoCorrect: true
236
+
237
+ # Cop supports --auto-correct.
238
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
239
+ # SupportedStyles: short, verbose
240
+ Style/PreferredHashMethods:
241
+ AutoCorrect: true
242
+
243
+ # Cop supports --auto-correct.
244
+ Style/Proc:
245
+ AutoCorrect: true
246
+
247
+ # Cop supports --auto-correct.
248
+ Style/RedundantParentheses:
249
+ AutoCorrect: true
250
+
251
+ # Cop supports --auto-correct.
252
+ # Configuration parameters: AllowMultipleReturnValues.
253
+ Style/RedundantReturn:
254
+ AutoCorrect: true
255
+
256
+ # Cop supports --auto-correct.
257
+ Style/RedundantSelf:
258
+ AutoCorrect: true
259
+
260
+ # Cop supports --auto-correct.
261
+ Style/SpaceAfterComma:
262
+ AutoCorrect: true
263
+
264
+ # Cop supports --auto-correct.
265
+ Style/SpaceAfterNot:
266
+ AutoCorrect: true
267
+
268
+ # Cop supports --auto-correct.
269
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
270
+ # SupportedStyles: space, no_space
271
+ Style/SpaceAroundEqualsInParameterDefault:
272
+ AutoCorrect: true
273
+
274
+ # Cop supports --auto-correct.
275
+ # Configuration parameters: AllowForAlignment.
276
+ Style/SpaceAroundOperators:
277
+ AutoCorrect: true
278
+
279
+ # Cop supports --auto-correct.
280
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
281
+ # SupportedStyles: space, no_space
282
+ Style/SpaceBeforeBlockBraces:
283
+ Enabled: true
284
+
285
+ # Cop supports --auto-correct.
286
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
287
+ # SupportedStyles: space, no_space
288
+ Style/SpaceInsideBlockBraces:
289
+ AutoCorrect: true
290
+
291
+ # Cop supports --auto-correct.
292
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
293
+ # SupportedStyles: space, no_space, compact
294
+ Style/SpaceInsideHashLiteralBraces:
295
+ AutoCorrect: true
296
+
297
+ # Cop supports --auto-correct.
298
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
299
+ # SupportedStyles: single_quotes, double_quotes
300
+ Style/StringLiterals:
301
+ Enabled: true
302
+ AutoCorrect: true
303
+
304
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
305
+ # SupportedStyles: single_quotes, double_quotes
306
+ Style/StringLiteralsInInterpolation:
307
+ AutoCorrect: true
308
+
309
+ # Cop supports --auto-correct.
310
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
311
+ # SupportedStyles: require_parentheses, require_no_parentheses
312
+ Style/TernaryParentheses:
313
+ AutoCorrect: true
314
+
315
+ # Cop supports --auto-correct.
316
+ # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
317
+ # SupportedStyles: comma, consistent_comma, no_comma
318
+ Style/TrailingCommaInLiteral:
319
+ AutoCorrect: true
320
+
321
+ # Cop supports --auto-correct.
322
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
323
+ # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
324
+ Style/TrivialAccessors:
325
+ AutoCorrect: true
326
+
327
+ # Cop supports --auto-correct.
328
+ Style/UnlessElse:
329
+ AutoCorrect: true
330
+
331
+ # Cop supports --auto-correct.
332
+ Style/UnneededInterpolation:
333
+ AutoCorrect: true
334
+
335
+ # Cop supports --auto-correct.
336
+ Style/UnneededPercentQ:
337
+ AutoCorrect: true
338
+
339
+ # Cop supports --auto-correct.
340
+ # Configuration parameters: SupportedStyles, WordRegex.
341
+ # SupportedStyles: percent, brackets
342
+ Style/WordArray:
343
+ AutoCorrect: true
344
+ EnforcedStyle: percent
345
+ MinSize: 8
346
+
347
+ # Cop supports --auto-correct.
348
+ Style/ZeroLengthPredicate:
349
+ AutoCorrect: true
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2
4
+ - 2.1
@@ -0,0 +1,74 @@
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 brandon.high@puppetlabs.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/