compact_index 0.9.4 → 0.13.0

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
- SHA1:
3
- metadata.gz: ad1dc1768a2c3699451729892496cc84c87b47fa
4
- data.tar.gz: bc2a2568b268897a9292262754183cd959bbb1e2
2
+ SHA256:
3
+ metadata.gz: 1dff2d41c3d78849c96c088dacb0a5239bd9f13c9529cbdad5bb851c5e6595ba
4
+ data.tar.gz: daf89c33d1b78bc7c53d313f206855567fa82ed106cde6a6dd86c84d12291945
5
5
  SHA512:
6
- metadata.gz: 37ac28ed2d9c66a90e905dabb7fb7f21b6c74272bca4a03d894cdfad2c5f96618ac032c7eae406a52912eda9c34f936a1f87cdd4abc953646a9565acc83fb9be
7
- data.tar.gz: 56316d3972c1cac287f3bf02d16d5f39f01a4891bb9a6ca089781abdd852a2f4a83a06ff482985b0f5e439a877192cabce411af08ea7de722f7091064d067ff3
6
+ metadata.gz: 7c22448a57539dae4f9fc99195aa0207ac801464803d02fbe765fb9480f170462cde8c4b8dd4beaba37ce909dfedfd9d5bb109080ad9fcee3d49ab11fdeb97b2
7
+ data.tar.gz: 7d18839880faf6e772733afed6e132b732b3c83007ae6ba3fdda9fe6fa6565c2368aebe1a22be16d01c21b8ea40d4c8369122e92e9c9ee0c5b0e52d7c40a80c3
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -2,6 +2,7 @@ inherit_from:
2
2
  - .rubocop_todo.yml
3
3
 
4
4
  AllCops:
5
+ TargetRubyVersion: 1.9
5
6
  Exclude:
6
7
  - tmp/**/*
7
8
  - lib/bundler/vendor/**/*
@@ -14,23 +15,39 @@ Lint/AssignmentInCondition:
14
15
  Enabled: false
15
16
 
16
17
  Lint/EndAlignment:
17
- AlignWith: variable
18
+ EnforcedStyleAlignWith: variable
19
+ AutoCorrect: true
18
20
 
19
21
  Lint/UnusedMethodArgument:
20
22
  Enabled: false
21
23
 
22
24
  # Style
23
25
 
24
- Style/AccessModifierIndentation:
26
+ Layout/AccessModifierIndentation:
25
27
  EnforcedStyle: outdent
26
28
 
27
- Style/AlignParameters:
29
+ Style/Alias:
30
+ EnforcedStyle: prefer_alias_method
31
+
32
+ Layout/AlignParameters:
28
33
  EnforcedStyle: with_fixed_indentation
29
34
 
30
- Style/MultilineOperationIndentation:
35
+ Style/FrozenStringLiteralComment:
36
+ EnforcedStyle: always
37
+
38
+ Style/MultilineBlockChain:
39
+ Enabled: false
40
+
41
+ Layout/MultilineOperationIndentation:
31
42
  EnforcedStyle: indented
32
43
 
33
- Style/SpaceInsideBlockBraces:
44
+ Style/PerlBackrefs:
45
+ Enabled: false
46
+
47
+ Style/SingleLineBlockParams:
48
+ Enabled: false
49
+
50
+ Layout/SpaceInsideBlockBraces:
34
51
  SpaceBeforeBlockParameters: false
35
52
 
36
53
  Style/TrivialAccessors:
@@ -48,9 +65,16 @@ Style/StringLiteralsInInterpolation:
48
65
 
49
66
  # Having these make it easier to *not* forget to add one when adding a new
50
67
  # value and you can simply copy the previous line.
51
- Style/TrailingComma:
68
+ Style/TrailingCommaInLiteral:
52
69
  EnforcedStyleForMultiline: comma
53
70
 
71
+ Style/TrailingUnderscoreVariable:
72
+ Enabled: false
73
+
74
+ # `String.new` is preferred style with enabled frozen string literal
75
+ Style/EmptyLiteral:
76
+ Enabled: false
77
+
54
78
  # 1.8.7 support
55
79
 
56
80
  Style/HashSyntax:
@@ -59,7 +83,7 @@ Style/HashSyntax:
59
83
  Style/Lambda:
60
84
  Enabled: false
61
85
 
62
- Style/DotPosition:
86
+ Layout/DotPosition:
63
87
  EnforcedStyle: trailing
64
88
 
65
89
  Style/EachWithObject:
@@ -68,7 +92,10 @@ Style/EachWithObject:
68
92
  Style/SpecialGlobalVars:
69
93
  Enabled: false
70
94
 
71
- Style/TrailingComma:
95
+ Style/TrailingCommaInArguments:
96
+ Enabled: false
97
+
98
+ Performance/FlatMap:
72
99
  Enabled: false
73
100
 
74
101
  # Metrics
@@ -92,5 +119,10 @@ Metrics/AbcSize:
92
119
  Metrics/CyclomaticComplexity:
93
120
  Enabled: false
94
121
 
122
+ Metrics/ParameterLists:
123
+ Enabled: false
124
+
125
+ # It will be obvious which code is complex, Rubocop should only lint simple
126
+ # rules for us.
95
127
  Metrics/PerceivedComplexity:
96
128
  Enabled: false
@@ -1,4 +1,13 @@
1
1
  inherit_from: .rubocop-bundler.yml
2
2
 
3
3
  AllCops:
4
- DisplayCopNames: true
4
+ Exclude:
5
+ - !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/
6
+
7
+ Metrics/BlockLength:
8
+ Exclude:
9
+ - "db/migrations/*.rb"
10
+ - "spec/**/*.rb"
11
+
12
+ Style/FrozenStringLiteralComment:
13
+ EnforcedStyle: always
@@ -1,389 +1,46 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-07-20 19:11:40 -0300 using RuboCop version 0.32.1.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-01-21 10:40:40 -0600 using RuboCop version 0.36.0.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
6
7
  # versions of RuboCop, may require this file to be generated again.
7
8
 
8
9
  # Offense count: 1
9
- Lint/AmbiguousOperator:
10
- Enabled: false
10
+ Lint/IneffectiveAccessModifier:
11
+ Exclude:
12
+ - 'lib/compact_index.rb'
11
13
 
12
14
  # Offense count: 1
13
- # Configuration parameters: AllowSafeAssignment.
14
- Lint/AssignmentInCondition:
15
- Enabled: false
15
+ Lint/UselessAccessModifier:
16
+ Exclude:
17
+ - 'lib/compact_index.rb'
16
18
 
17
- # Offense count: 1
18
- # Cop supports --auto-correct.
19
- Lint/DeprecatedClassMethods:
20
- Enabled: false
21
-
22
- # Offense count: 2
23
- Lint/Eval:
24
- Enabled: false
25
-
26
- # Offense count: 1
27
- Lint/HandleExceptions:
28
- Enabled: false
29
-
30
- # Offense count: 1
31
- Lint/LiteralInCondition:
32
- Enabled: false
33
-
34
- # Offense count: 2
35
- Lint/NestedMethodDefinition:
36
- Enabled: false
37
-
38
- # Offense count: 1
39
- Lint/ShadowingOuterLocalVariable:
40
- Enabled: false
41
-
42
- # Offense count: 5
43
- # Cop supports --auto-correct.
44
- Lint/UnusedBlockArgument:
45
- Enabled: false
46
-
47
- # Offense count: 3
48
- # Cop supports --auto-correct.
49
- Lint/UnusedMethodArgument:
50
- Enabled: false
51
-
52
- # Offense count: 10
19
+ # Offense count: 6
53
20
  Lint/UselessAssignment:
54
- Enabled: false
55
-
56
- # Offense count: 11
57
- Metrics/AbcSize:
58
- Max: 43
59
-
60
- # Offense count: 2
61
- # Configuration parameters: CountComments.
62
- Metrics/ClassLength:
63
- Max: 143
64
-
65
- # Offense count: 1
66
- Metrics/CyclomaticComplexity:
67
- Max: 7
68
-
69
- # Offense count: 65
70
- # Configuration parameters: AllowURI, URISchemes.
21
+ Exclude:
22
+ - 'Rakefile'
23
+ - 'spec/compact_index_spec.rb'
24
+ - 'spec/support/versions.rb'
25
+ - 'spec/versions_file_spec.rb'
26
+
27
+ # Offense count: 36
28
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
29
+ # URISchemes: http, https
71
30
  Metrics/LineLength:
72
31
  Max: 122
73
32
 
74
- # Offense count: 21
75
- # Configuration parameters: CountComments.
76
- Metrics/MethodLength:
77
- Max: 34
78
-
79
- # Offense count: 2
80
- # Cop supports --auto-correct.
81
- # Configuration parameters: EnforcedStyle, SupportedStyles.
82
- Style/AccessModifierIndentation:
83
- Enabled: false
84
-
85
- # Offense count: 3
86
- Style/AccessorMethodName:
87
- Enabled: false
88
-
89
- # Offense count: 5
90
- # Cop supports --auto-correct.
91
- Style/AlignArray:
92
- Enabled: false
93
-
94
- # Offense count: 3
95
- # Cop supports --auto-correct.
96
- # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
97
- Style/AlignHash:
98
- Enabled: false
99
-
100
- # Offense count: 3
101
- # Cop supports --auto-correct.
102
- # Configuration parameters: EnforcedStyle, SupportedStyles.
103
- Style/AlignParameters:
104
- Enabled: false
105
-
106
33
  # Offense count: 1
107
34
  # Cop supports --auto-correct.
108
- # Configuration parameters: EnforcedStyle, SupportedStyles.
109
- Style/AndOr:
110
- Enabled: false
111
-
112
- # Offense count: 9
113
- # Cop supports --auto-correct.
114
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
115
- Style/BlockDelimiters:
116
- Enabled: false
117
-
118
- # Offense count: 2
119
- # Cop supports --auto-correct.
120
- Style/BlockEndNewline:
121
- Enabled: false
35
+ Performance/RedundantMatch:
36
+ Exclude:
37
+ - 'lib/compact_index/versions_file.rb'
122
38
 
123
39
  # Offense count: 3
124
- # Cop supports --auto-correct.
125
- # Configuration parameters: EnforcedStyle, SupportedStyles.
126
- Style/BracesAroundHashParameters:
127
- Enabled: false
128
-
129
- # Offense count: 12
130
- # Configuration parameters: EnforcedStyle, SupportedStyles.
131
- Style/ClassAndModuleChildren:
132
- Enabled: false
133
-
134
- # Offense count: 9
135
- Style/ClassVars:
136
- Enabled: false
137
-
138
- # Offense count: 31
139
40
  Style/Documentation:
140
- Enabled: false
141
-
142
- # Offense count: 9
143
- # Cop supports --auto-correct.
144
- # Configuration parameters: EnforcedStyle, SupportedStyles.
145
- Style/DotPosition:
146
- Enabled: false
147
-
148
- # Offense count: 2
149
- # Cop supports --auto-correct.
150
- # Configuration parameters: AllowAdjacentOneLineDefs.
151
- Style/EmptyLineBetweenDefs:
152
- Enabled: false
153
-
154
- # Offense count: 1
155
- # Cop supports --auto-correct.
156
- Style/EmptyLines:
157
- Enabled: false
158
-
159
- # Offense count: 6
160
- # Cop supports --auto-correct.
161
- Style/EmptyLinesAroundAccessModifier:
162
- Enabled: false
163
-
164
- # Offense count: 1
165
- # Cop supports --auto-correct.
166
- # Configuration parameters: EnforcedStyle, SupportedStyles.
167
- Style/EmptyLinesAroundBlockBody:
168
- Enabled: false
169
-
170
- # Offense count: 2
171
- # Cop supports --auto-correct.
172
- # Configuration parameters: EnforcedStyle, SupportedStyles.
173
- Style/EmptyLinesAroundClassBody:
174
- Enabled: false
175
-
176
- # Offense count: 12
177
- # Configuration parameters: AllowedVariables.
178
- Style/GlobalVars:
179
- Enabled: false
180
-
181
- # Offense count: 2
182
- # Configuration parameters: MinBodyLength.
183
- Style/GuardClause:
184
- Enabled: false
185
-
186
- # Offense count: 85
187
- # Cop supports --auto-correct.
188
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
189
- Style/HashSyntax:
190
- Enabled: false
191
-
192
- # Offense count: 1
193
- # Cop supports --auto-correct.
194
- # Configuration parameters: MaxLineLength.
195
- Style/IfUnlessModifier:
196
- Enabled: false
197
-
198
- # Offense count: 1
199
- # Cop supports --auto-correct.
200
- Style/IndentArray:
201
- Enabled: false
202
-
203
- # Offense count: 1
204
- # Cop supports --auto-correct.
205
- # Configuration parameters: Width.
206
- Style/IndentationWidth:
207
- Enabled: false
208
-
209
- # Offense count: 1
210
- # Cop supports --auto-correct.
211
- Style/InfiniteLoop:
212
- Enabled: false
213
-
214
- # Offense count: 1
215
- # Cop supports --auto-correct.
216
- Style/Lambda:
217
- Enabled: false
218
-
219
- # Offense count: 1
220
- # Cop supports --auto-correct.
221
- Style/LeadingCommentSpace:
222
- Enabled: false
223
-
224
- # Offense count: 1
225
- # Cop supports --auto-correct.
226
- Style/LineEndConcatenation:
227
- Enabled: false
228
-
229
- # Offense count: 3
230
- # Cop supports --auto-correct.
231
- Style/MethodCallParentheses:
232
- Enabled: false
233
-
234
- # Offense count: 1
235
- Style/MultilineBlockChain:
236
- Enabled: false
237
-
238
- # Offense count: 2
239
- # Cop supports --auto-correct.
240
- Style/MultilineBlockLayout:
241
- Enabled: false
242
-
243
- # Offense count: 1
244
- # Cop supports --auto-correct.
245
- # Configuration parameters: EnforcedStyle, SupportedStyles.
246
- Style/MultilineOperationIndentation:
247
- Enabled: false
248
-
249
- # Offense count: 1
250
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
251
- Style/Next:
252
- Enabled: false
253
-
254
- # Offense count: 1
255
- # Cop supports --auto-correct.
256
- Style/NumericLiterals:
257
- MinDigits: 9
258
-
259
- # Offense count: 4
260
- # Cop supports --auto-correct.
261
- # Configuration parameters: PreferredDelimiters.
262
- Style/PercentLiteralDelimiters:
263
- Enabled: false
264
-
265
- # Offense count: 1
266
- # Cop supports --auto-correct.
267
- # Configuration parameters: AllowAsExpressionSeparator.
268
- Style/Semicolon:
269
- Enabled: false
270
-
271
- # Offense count: 4
272
- # Cop supports --auto-correct.
273
- # Configuration parameters: EnforcedStyle, SupportedStyles.
274
- Style/SignalException:
275
- Enabled: false
276
-
277
- # Offense count: 1
278
- # Configuration parameters: Methods.
279
- Style/SingleLineBlockParams:
280
- Enabled: false
281
-
282
- # Offense count: 2
283
- # Cop supports --auto-correct.
284
- # Configuration parameters: AllowIfMethodIsEmpty.
285
- Style/SingleLineMethods:
286
- Enabled: false
287
-
288
- # Offense count: 1
289
- # Cop supports --auto-correct.
290
- Style/SingleSpaceBeforeFirstArg:
291
- Enabled: false
292
-
293
- # Offense count: 1
294
- # Cop supports --auto-correct.
295
- Style/SpaceAfterComma:
296
- Enabled: false
297
-
298
- # Offense count: 61
299
- # Cop supports --auto-correct.
300
- # Configuration parameters: MultiSpaceAllowedForOperators.
301
- Style/SpaceAroundOperators:
302
- Enabled: false
303
-
304
- # Offense count: 2
305
- # Cop supports --auto-correct.
306
- # Configuration parameters: EnforcedStyle, SupportedStyles.
307
- Style/SpaceBeforeBlockBraces:
308
- Enabled: false
309
-
310
- # Offense count: 7
311
- # Cop supports --auto-correct.
312
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
313
- Style/SpaceInsideBlockBraces:
314
- Enabled: false
315
-
316
- # Offense count: 5
317
- # Cop supports --auto-correct.
318
- Style/SpaceInsideBrackets:
319
- Enabled: false
320
-
321
- # Offense count: 11
322
- # Cop supports --auto-correct.
323
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
324
- Style/SpaceInsideHashLiteralBraces:
325
- Enabled: false
326
-
327
- # Offense count: 40
328
- # Cop supports --auto-correct.
329
- Style/SpaceInsideParens:
330
- Enabled: false
331
-
332
- # Offense count: 13
333
- # Cop supports --auto-correct.
334
- Style/SpaceInsideStringInterpolation:
335
- Enabled: false
336
-
337
- # Offense count: 1
338
- # Cop supports --auto-correct.
339
- Style/SpecialGlobalVars:
340
- Enabled: false
341
-
342
- # Offense count: 308
343
- # Cop supports --auto-correct.
344
- # Configuration parameters: EnforcedStyle, SupportedStyles.
345
- Style/StringLiterals:
346
- Enabled: false
347
-
348
- # Offense count: 1
349
- # Cop supports --auto-correct.
350
- # Configuration parameters: EnforcedStyle, SupportedStyles.
351
- Style/StringLiteralsInInterpolation:
352
- Enabled: false
353
-
354
- # Offense count: 1
355
- Style/StructInheritance:
356
- Enabled: false
357
-
358
- # Offense count: 1
359
- # Cop supports --auto-correct.
360
- # Configuration parameters: IgnoredMethods.
361
- Style/SymbolProc:
362
- Enabled: false
363
-
364
- # Offense count: 2
365
- # Cop supports --auto-correct.
366
- # Configuration parameters: EnforcedStyle, SupportedStyles.
367
- Style/TrailingBlankLines:
368
- Enabled: false
369
-
370
- # Offense count: 2
371
- # Cop supports --auto-correct.
372
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
373
- Style/TrailingComma:
374
- Enabled: false
375
-
376
- # Offense count: 3
377
- # Cop supports --auto-correct.
378
- Style/TrailingUnderscoreVariable:
379
- Enabled: false
380
-
381
- # Offense count: 8
382
- # Cop supports --auto-correct.
383
- Style/TrailingWhitespace:
384
- Enabled: false
385
-
386
- # Offense count: 1
387
- # Cop supports --auto-correct.
388
- Style/UnneededCapitalW:
389
- Enabled: false
41
+ Exclude:
42
+ - 'spec/**/*'
43
+ - 'test/**/*'
44
+ - 'lib/compact_index.rb'
45
+ - 'lib/compact_index/ext/date.rb'
46
+ - 'lib/compact_index/versions_file.rb'