druid-tools 0.4.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +41 -0
  4. data/.rubocop_todo.yml +372 -0
  5. data/.travis.yml +12 -2
  6. data/README.md +36 -16
  7. data/Rakefile +4 -1
  8. data/VERSION +1 -1
  9. data/druid-tools.gemspec +4 -1
  10. data/lib/druid_tools/druid.rb +19 -6
  11. data/spec/druid_spec.rb +470 -0
  12. data/spec/spec_helper.rb +9 -0
  13. metadata +49 -36
  14. data/doc/classes/DruidTools.html +0 -132
  15. data/doc/classes/DruidTools/DifferentContentExistsError.html +0 -111
  16. data/doc/classes/DruidTools/Druid.html +0 -352
  17. data/doc/classes/DruidTools/Druid.src/M000001.html +0 -18
  18. data/doc/classes/DruidTools/Druid.src/M000002.html +0 -18
  19. data/doc/classes/DruidTools/Druid.src/M000003.html +0 -18
  20. data/doc/classes/DruidTools/Druid.src/M000004.html +0 -24
  21. data/doc/classes/DruidTools/Druid.src/M000005.html +0 -18
  22. data/doc/classes/DruidTools/Druid.src/M000006.html +0 -18
  23. data/doc/classes/DruidTools/Druid.src/M000007.html +0 -20
  24. data/doc/classes/DruidTools/Druid.src/M000008.html +0 -25
  25. data/doc/classes/DruidTools/Druid.src/M000009.html +0 -20
  26. data/doc/classes/DruidTools/Druid.src/M000010.html +0 -27
  27. data/doc/classes/DruidTools/Druid.src/M000011.html +0 -24
  28. data/doc/classes/DruidTools/Druid.src/M000012.html +0 -29
  29. data/doc/classes/DruidTools/InvalidDruidError.html +0 -111
  30. data/doc/classes/DruidTools/SameContentExistsError.html +0 -111
  31. data/doc/created.rid +0 -1
  32. data/doc/files/lib/druid-tools_rb.html +0 -108
  33. data/doc/files/lib/druid_tools/druid_rb.html +0 -108
  34. data/doc/files/lib/druid_tools/exceptions_rb.html +0 -101
  35. data/doc/files/lib/druid_tools/version_rb.html +0 -101
  36. data/doc/files/lib/druid_tools_rb.html +0 -110
  37. data/doc/files/spec/druid_tools_spec_rb.html +0 -115
  38. data/doc/files/spec/spec_helper_rb.html +0 -114
  39. data/doc/fr_class_index.html +0 -28
  40. data/doc/fr_file_index.html +0 -30
  41. data/doc/fr_method_index.html +0 -38
  42. data/doc/index.html +0 -24
  43. data/doc/rdoc-style.css +0 -208
  44. data/spec/druid_tools_spec.rb +0 -426
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff667823f90ed97f46171b13552720e11baf161b
4
- data.tar.gz: e49db2f65f8a5734d67d7619d42477f56361cc9b
3
+ metadata.gz: eaa326bb5995a11c1e9b9443cfb97f62bc8d8ea3
4
+ data.tar.gz: c0a509b7acca787a71cccc5cd4ff975eb9dde85a
5
5
  SHA512:
6
- metadata.gz: c95447c9d7b356c96894ea5de798d4292786e8fa2a9c86d696cf3cc87e764ec29c3e97b4ff0aec8007a528ebe6c9d0fefba825bcd63c4f7508c104e74e8b9a2a
7
- data.tar.gz: 222ec27e234269a5606092d3889dbf40b68f22bc6a37e3b5e7791e9a8cfd3255addf873fdfe7ada1656be71e6e0203b03aa0b5e2cd9eb235ddf78112a44fe6c1
6
+ metadata.gz: 68cc38d05d694a56a8acaacb627e50c117dab8344caf4038ab230a1853502021cbaaa3808e0493ebb28b205b91780c1f0a361fad25010b1a2657f1dd32c8c756
7
+ data.tar.gz: 591ec1ad57c8eddbfb1db5e25a3e9935ed5f665c52578086c2266aa684dac0f1851714a0dedc236205f30ae0f9c06d0460dbcb659859996fccafea83254b4d18
data/.gitignore CHANGED
@@ -18,3 +18,5 @@ tmp
18
18
  .ruby-gemset
19
19
  Gemfile.lock
20
20
  .project
21
+ doc
22
+ .pry_history
@@ -0,0 +1,41 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ # Turn on RSpec cops
4
+ require: rubocop-rspec
5
+
6
+ AllCops:
7
+ DisplayCopNames: true
8
+ Include:
9
+ - 'Rakefile'
10
+ Exclude:
11
+ - 'Gemfile.lock'
12
+ - '**/*.md'
13
+ - 'vendor/**/*' # avoid running rubocop on travis cached bundler
14
+
15
+ # --- Layout ---
16
+
17
+ # --- Lint ---
18
+
19
+ # --- Metrics ---
20
+
21
+ # because this isn't 1994
22
+ Metrics/LineLength:
23
+ Max: 167 # would like to reduce this to 120
24
+
25
+ # --- Naming ---
26
+
27
+ Naming/FileName:
28
+ Exclude:
29
+ - Gemfile
30
+ - druid-tools.gemspec
31
+ - lib/druid-tools.rb
32
+
33
+ # -- Performance ---
34
+
35
+ # --- RSpec ---
36
+
37
+ # --- Style ---
38
+
39
+ # because ' vs " isn't a big deal for readability or maintainability or execution time
40
+ Style/StringLiterals:
41
+ Enabled: false
@@ -0,0 +1,372 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2017-10-18 23:54:58 -0700 using RuboCop version 0.50.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: 2
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
+ # Include: **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'Gemfile'
16
+
17
+ # Offense count: 6
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
20
+ # SupportedStyles: empty_lines, no_empty_lines
21
+ Layout/EmptyLinesAroundBlockBody:
22
+ Exclude:
23
+ - 'spec/access_druid_spec.rb'
24
+ - 'spec/druid_spec.rb'
25
+
26
+ # Offense count: 4
27
+ # Cop supports --auto-correct.
28
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
29
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
30
+ Layout/EmptyLinesAroundClassBody:
31
+ Exclude:
32
+ - 'lib/druid_tools/access_druid.rb'
33
+ - 'lib/druid_tools/druid.rb'
34
+
35
+ # Offense count: 2
36
+ # Cop supports --auto-correct.
37
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
38
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
39
+ Layout/EmptyLinesAroundModuleBody:
40
+ Exclude:
41
+ - 'lib/druid_tools/access_druid.rb'
42
+
43
+ # Offense count: 2
44
+ # Cop supports --auto-correct.
45
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
46
+ Layout/ExtraSpacing:
47
+ Exclude:
48
+ - 'lib/druid_tools/druid.rb'
49
+ - 'spec/druid_spec.rb'
50
+
51
+ # Offense count: 1
52
+ # Cop supports --auto-correct.
53
+ # Configuration parameters: Width, IgnoredPatterns.
54
+ Layout/IndentationWidth:
55
+ Exclude:
56
+ - 'spec/access_druid_spec.rb'
57
+
58
+ # Offense count: 44
59
+ # Cop supports --auto-correct.
60
+ Layout/LeadingCommentSpace:
61
+ Exclude:
62
+ - 'lib/druid_tools/druid.rb'
63
+ - 'spec/druid_spec.rb'
64
+ - 'spec/spec_helper.rb'
65
+
66
+ # Offense count: 13
67
+ # Cop supports --auto-correct.
68
+ Layout/SpaceAfterComma:
69
+ Exclude:
70
+ - 'lib/druid_tools/access_druid.rb'
71
+ - 'lib/druid_tools/druid.rb'
72
+ - 'spec/access_druid_spec.rb'
73
+
74
+ # Offense count: 11
75
+ # Cop supports --auto-correct.
76
+ # Configuration parameters: SupportedStyles.
77
+ # SupportedStyles: space, no_space
78
+ Layout/SpaceAroundEqualsInParameterDefault:
79
+ EnforcedStyle: no_space
80
+
81
+ # Offense count: 3
82
+ # Cop supports --auto-correct.
83
+ Layout/SpaceAroundKeyword:
84
+ Exclude:
85
+ - 'lib/druid_tools/druid.rb'
86
+
87
+ # Offense count: 2
88
+ # Cop supports --auto-correct.
89
+ # Configuration parameters: AllowForAlignment.
90
+ Layout/SpaceAroundOperators:
91
+ Exclude:
92
+ - 'lib/druid_tools/druid.rb'
93
+
94
+ # Offense count: 4
95
+ # Cop supports --auto-correct.
96
+ # Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces.
97
+ # SupportedStyles: space, no_space
98
+ # SupportedStylesForEmptyBraces: space, no_space
99
+ Layout/SpaceBeforeBlockBraces:
100
+ Exclude:
101
+ - 'druid-tools.gemspec'
102
+ - 'spec/druid_spec.rb'
103
+
104
+ # Offense count: 8
105
+ # Cop supports --auto-correct.
106
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
107
+ # SupportedStyles: space, no_space
108
+ # SupportedStylesForEmptyBraces: space, no_space
109
+ Layout/SpaceInsideBlockBraces:
110
+ Exclude:
111
+ - 'spec/druid_spec.rb'
112
+
113
+ # Offense count: 2
114
+ # Cop supports --auto-correct.
115
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
116
+ # SupportedStyles: final_newline, final_blank_line
117
+ Layout/TrailingBlankLines:
118
+ Exclude:
119
+ - 'lib/druid-tools.rb'
120
+ - 'lib/druid_tools/exceptions.rb'
121
+
122
+ # Offense count: 21
123
+ # Cop supports --auto-correct.
124
+ Lint/DeprecatedClassMethods:
125
+ Exclude:
126
+ - 'lib/druid_tools/access_druid.rb'
127
+ - 'lib/druid_tools/druid.rb'
128
+ - 'spec/druid_spec.rb'
129
+
130
+ # Offense count: 3
131
+ # Cop supports --auto-correct.
132
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
133
+ # SupportedStyles: runtime_error, standard_error
134
+ Lint/InheritException:
135
+ Exclude:
136
+ - 'lib/druid_tools/exceptions.rb'
137
+
138
+ # Offense count: 1
139
+ Lint/UselessAssignment:
140
+ Exclude:
141
+ - 'spec/druid_spec.rb'
142
+
143
+ # Offense count: 1
144
+ Metrics/AbcSize:
145
+ Max: 21
146
+
147
+ # Offense count: 8
148
+ # Configuration parameters: CountComments, ExcludedMethods.
149
+ Metrics/BlockLength:
150
+ Max: 371
151
+
152
+ # Offense count: 1
153
+ # Configuration parameters: CountComments.
154
+ Metrics/ClassLength:
155
+ Max: 146
156
+
157
+ # Offense count: 1
158
+ # Configuration parameters: CountComments.
159
+ Metrics/MethodLength:
160
+ Max: 12
161
+
162
+ # Offense count: 1
163
+ # Configuration parameters: Blacklist.
164
+ # Blacklist: END, (?-mix:EO[A-Z]{1})
165
+ Naming/HeredocDelimiterNaming:
166
+ Exclude:
167
+ - 'lib/druid_tools/druid.rb'
168
+
169
+ # Offense count: 2
170
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
171
+ # SupportedStyles: snake_case, normalcase, non_integer
172
+ Naming/VariableNumber:
173
+ Exclude:
174
+ - 'spec/druid_spec.rb'
175
+
176
+ # Offense count: 2
177
+ RSpec/BeforeAfterAll:
178
+ Exclude:
179
+ - 'spec/spec_helper.rb'
180
+ - 'spec/rails_helper.rb'
181
+ - 'spec/support/**/*.rb'
182
+ - 'spec/druid_spec.rb'
183
+
184
+ # Offense count: 36
185
+ # Configuration parameters: SkipBlocks, EnforcedStyle, SupportedStyles.
186
+ # SupportedStyles: described_class, explicit
187
+ RSpec/DescribedClass:
188
+ Exclude:
189
+ - 'spec/access_druid_spec.rb'
190
+ - 'spec/druid_spec.rb'
191
+
192
+ # Offense count: 10
193
+ # Configuration parameters: Max.
194
+ RSpec/ExampleLength:
195
+ Exclude:
196
+ - 'spec/druid_spec.rb'
197
+
198
+ # Offense count: 2
199
+ # Configuration parameters: CustomTransform, IgnoreMethods.
200
+ RSpec/FilePath:
201
+ Exclude:
202
+ - 'spec/access_druid_spec.rb'
203
+ - 'spec/druid_spec.rb'
204
+
205
+ # Offense count: 6
206
+ # Configuration parameters: SupportedStyles.
207
+ # SupportedStyles: implicit, each, example
208
+ RSpec/HookArgument:
209
+ EnforcedStyle: each
210
+
211
+ # Offense count: 22
212
+ RSpec/MultipleExpectations:
213
+ Max: 11
214
+
215
+ # Offense count: 8
216
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
217
+ # SupportedStyles: not_to, to_not
218
+ RSpec/NotToNot:
219
+ Exclude:
220
+ - 'spec/access_druid_spec.rb'
221
+ - 'spec/druid_spec.rb'
222
+
223
+ # Offense count: 22
224
+ # Configuration parameters: Strict, EnforcedStyle, SupportedStyles.
225
+ # SupportedStyles: inflected, explicit
226
+ RSpec/PredicateMatcher:
227
+ Exclude:
228
+ - 'spec/druid_spec.rb'
229
+
230
+ # Offense count: 2
231
+ RSpec/RepeatedExample:
232
+ Exclude:
233
+ - 'spec/druid_spec.rb'
234
+
235
+ # Offense count: 3
236
+ # Cop supports --auto-correct.
237
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
238
+ # SupportedStyles: always, conditionals
239
+ Style/AndOr:
240
+ Exclude:
241
+ - 'lib/druid_tools/access_druid.rb'
242
+ - 'lib/druid_tools/druid.rb'
243
+
244
+ # Offense count: 1
245
+ Style/ClassVars:
246
+ Exclude:
247
+ - 'lib/druid_tools/druid.rb'
248
+
249
+ # Offense count: 4
250
+ # Cop supports --auto-correct.
251
+ Style/ColonMethodCall:
252
+ Exclude:
253
+ - 'lib/druid_tools/druid.rb'
254
+ - 'spec/druid_spec.rb'
255
+
256
+ # Offense count: 2
257
+ Style/Documentation:
258
+ Exclude:
259
+ - 'spec/**/*'
260
+ - 'test/**/*'
261
+ - 'lib/druid_tools.rb'
262
+ - 'lib/druid_tools/druid.rb'
263
+
264
+ # Offense count: 1
265
+ # Cop supports --auto-correct.
266
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AutoCorrectEncodingComment.
267
+ # SupportedStyles: when_needed, always, never
268
+ Style/Encoding:
269
+ Exclude:
270
+ - 'druid-tools.gemspec'
271
+
272
+ # Offense count: 8
273
+ # Cop supports --auto-correct.
274
+ # Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
275
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
276
+ Style/HashSyntax:
277
+ EnforcedStyle: hash_rockets
278
+
279
+ # Offense count: 1
280
+ # Cop supports --auto-correct.
281
+ Style/MethodCallWithoutArgsParentheses:
282
+ Exclude:
283
+ - 'spec/druid_spec.rb'
284
+
285
+ # Offense count: 1
286
+ # Cop supports --auto-correct.
287
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
288
+ # SupportedStyles: both, prefix, postfix
289
+ Style/NegatedIf:
290
+ Exclude:
291
+ - 'lib/druid_tools/druid.rb'
292
+
293
+ # Offense count: 2
294
+ # Cop supports --auto-correct.
295
+ Style/Not:
296
+ Exclude:
297
+ - 'lib/druid_tools/access_druid.rb'
298
+ - 'lib/druid_tools/druid.rb'
299
+
300
+ # Offense count: 1
301
+ # Cop supports --auto-correct.
302
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
303
+ # SupportedStyles: predicate, comparison
304
+ Style/NumericPredicate:
305
+ Exclude:
306
+ - 'spec/**/*'
307
+ - 'lib/druid_tools/druid.rb'
308
+
309
+ # Offense count: 1
310
+ # Cop supports --auto-correct.
311
+ # Configuration parameters: PreferredDelimiters.
312
+ Style/PercentLiteralDelimiters:
313
+ Exclude:
314
+ - 'spec/druid_spec.rb'
315
+
316
+ # Offense count: 2
317
+ # Cop supports --auto-correct.
318
+ Style/RedundantParentheses:
319
+ Exclude:
320
+ - 'lib/druid_tools/access_druid.rb'
321
+ - 'lib/druid_tools/druid.rb'
322
+
323
+ # Offense count: 4
324
+ # Cop supports --auto-correct.
325
+ # Configuration parameters: AllowMultipleReturnValues.
326
+ Style/RedundantReturn:
327
+ Exclude:
328
+ - 'lib/druid_tools/druid.rb'
329
+
330
+ # Offense count: 11
331
+ # Cop supports --auto-correct.
332
+ Style/RedundantSelf:
333
+ Exclude:
334
+ - 'lib/druid_tools/druid.rb'
335
+
336
+ # Offense count: 2
337
+ # Cop supports --auto-correct.
338
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
339
+ # SupportedStyles: slashes, percent_r, mixed
340
+ Style/RegexpLiteral:
341
+ Exclude:
342
+ - 'spec/access_druid_spec.rb'
343
+ - 'spec/druid_spec.rb'
344
+
345
+ # Offense count: 1
346
+ # Cop supports --auto-correct.
347
+ # Configuration parameters: SupportedStyles.
348
+ # SupportedStyles: use_perl_names, use_english_names
349
+ Style/SpecialGlobalVars:
350
+ EnforcedStyle: use_perl_names
351
+
352
+ # Offense count: 3
353
+ # Cop supports --auto-correct.
354
+ # Configuration parameters: MinSize, SupportedStyles.
355
+ # SupportedStyles: percent, brackets
356
+ Style/SymbolArray:
357
+ EnforcedStyle: brackets
358
+
359
+ # Offense count: 2
360
+ # Cop supports --auto-correct.
361
+ # Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
362
+ # SupportedStyles: percent, brackets
363
+ Style/WordArray:
364
+ Exclude:
365
+ - 'spec/access_druid_spec.rb'
366
+ - 'spec/druid_spec.rb'
367
+
368
+ # Offense count: 2
369
+ # Cop supports --auto-correct.
370
+ Style/ZeroLengthPredicate:
371
+ Exclude:
372
+ - 'lib/druid_tools/druid.rb'
@@ -2,7 +2,17 @@ notifications:
2
2
  email: false
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
- - 2.0.0
7
5
  - 2.1.2
6
+ - 2.2.4
7
+ - 2.3.1
8
+ - 2.4.1
9
+ - 2.4.2
8
10
 
11
+ # script, expressed as an array, is necessary for 'bundle exec coveralls push' to work locally
12
+ script:
13
+ - bundle exec rake
14
+
15
+ cache: bundler
16
+
17
+ before_install:
18
+ - gem install bundler # the default version of bundler for ruby 2.1 is out of date.