gems-cli 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +481 -0
- data/.travis.yml +1 -0
- data/CONTRIBUTING.md +1 -0
- data/Rakefile +0 -5
- data/gems-cli.gemspec +10 -3
- data/lib/gems-cli/paginator.rb +2 -2
- data/lib/gems-cli/version.rb +1 -1
- data/spec/spec_helper.rb +6 -7
- metadata +20 -5
- data/Gemfile.lock +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3116e9b265fd3c8fa8c24823789cd119aeee6bfa
|
4
|
+
data.tar.gz: 1ae99d2c29f8bf3da3e5b95831c8466fb3f7d7d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27da575cf429d42afd32e6aeaedecf5d3af2501b135fbfe8850979f7a66ead2ffe5f43eebbf802457bd831cbcc5e8bd912b2675b058ccc28367eb17db49806db
|
7
|
+
data.tar.gz: feed18673e310bb31b91afb0576d151c4345da24567b3b4bcbb8a737ad32b4e10dd83f8f21efa2f9f369a2807fac50ceba37d88d517c796e64dbed635beb5199
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,481 @@
|
|
1
|
+
# Cops (the rules) are based off of the Ruby community style-guide
|
2
|
+
# https://github.com/bbatsov/ruby-style-guide
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
RunRailsCops: true
|
6
|
+
Exclude:
|
7
|
+
- vendor/**/*
|
8
|
+
- bin/**/*
|
9
|
+
- Gemfile
|
10
|
+
|
11
|
+
# Configuration parameters: AllowSafeAssignment.
|
12
|
+
Lint/AssignmentInCondition:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
# Cop supports --auto-correct.
|
16
|
+
Lint/BlockAlignment:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Lint/ConditionPosition:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
# Configuration parameters: AlignWith, SupportedStyles.
|
23
|
+
Lint/DefEndAlignment:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
# Cop supports --auto-correct.
|
27
|
+
Lint/DeprecatedClassMethods:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Lint/ElseLayout:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
# Configuration parameters: AlignWith, SupportedStyles.
|
34
|
+
Lint/EndAlignment:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Lint/HandleExceptions:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Lint/ParenthesesAsGroupedExpression:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Lint/ShadowingOuterLocalVariable:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
# Cop supports --auto-correct.
|
47
|
+
Lint/SpaceBeforeFirstArg:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
# Cop supports --auto-correct.
|
51
|
+
Lint/StringConversionInInterpolation:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
# Cop supports --auto-correct.
|
55
|
+
Lint/UnusedBlockArgument:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
# Cop supports --auto-correct.
|
59
|
+
Lint/UnusedMethodArgument:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Lint/UselessAccessModifier:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Lint/UselessAssignment:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Lint/Void:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Metrics/AbcSize:
|
72
|
+
Max: 140
|
73
|
+
|
74
|
+
# Configuration parameters: CountComments.
|
75
|
+
Metrics/ClassLength:
|
76
|
+
Max: 800
|
77
|
+
|
78
|
+
Metrics/CyclomaticComplexity:
|
79
|
+
Max: 26
|
80
|
+
|
81
|
+
# Configuration parameters: AllowURI, URISchemes.
|
82
|
+
Metrics/LineLength:
|
83
|
+
AllowURI: true
|
84
|
+
Max: 90
|
85
|
+
|
86
|
+
# Configuration parameters: CountComments.
|
87
|
+
Metrics/MethodLength:
|
88
|
+
Max: 90
|
89
|
+
|
90
|
+
# Configuration parameters: CountKeywordArgs.
|
91
|
+
Metrics/ParameterLists:
|
92
|
+
Max: 7
|
93
|
+
|
94
|
+
Metrics/PerceivedComplexity:
|
95
|
+
Max: 22
|
96
|
+
|
97
|
+
# Cop supports --auto-correct.
|
98
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
|
99
|
+
Rails/ActionFilter:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
# Configuration parameters: Include.
|
103
|
+
Rails/HasAndBelongsToMany:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
# Configuration parameters: Include.
|
107
|
+
Rails/Output:
|
108
|
+
Enabled: false
|
109
|
+
|
110
|
+
# Configuration parameters: Include.
|
111
|
+
Rails/ScopeArgs:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
# Configuration parameters: Include.
|
115
|
+
Rails/Validation:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
120
|
+
Style/AccessModifierIndentation:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
Style/AccessorMethodName:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
# Cop supports --auto-correct.
|
127
|
+
Style/AlignArray:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
# Cop supports --auto-correct.
|
131
|
+
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
132
|
+
Style/AlignHash:
|
133
|
+
Enabled: true
|
134
|
+
|
135
|
+
# Cop supports --auto-correct.
|
136
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
137
|
+
Style/AlignParameters:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
# Cop supports --auto-correct.
|
141
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
142
|
+
Style/AndOr:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
Style/AsciiComments:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
# Cop supports --auto-correct.
|
149
|
+
Style/BlockComments:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
# Cop supports --auto-correct.
|
153
|
+
Style/BlockEndNewline:
|
154
|
+
Enabled: false
|
155
|
+
|
156
|
+
# Cop supports --auto-correct.
|
157
|
+
Style/Blocks:
|
158
|
+
Enabled: false
|
159
|
+
|
160
|
+
# Cop supports --auto-correct.
|
161
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
162
|
+
Style/BracesAroundHashParameters:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
166
|
+
Style/CaseIndentation:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
170
|
+
Style/ClassAndModuleChildren:
|
171
|
+
Enabled: false
|
172
|
+
|
173
|
+
# Cop supports --auto-correct.
|
174
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
175
|
+
Style/ClassCheck:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Style/ClassVars:
|
179
|
+
Enabled: false
|
180
|
+
|
181
|
+
# Cop supports --auto-correct.
|
182
|
+
Style/ColonMethodCall:
|
183
|
+
Enabled: true
|
184
|
+
|
185
|
+
# Configuration parameters: Keywords.
|
186
|
+
Style/CommentAnnotation:
|
187
|
+
Enabled: false
|
188
|
+
|
189
|
+
# Cop supports --auto-correct.
|
190
|
+
Style/CommentIndentation:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
# Cop supports --auto-correct.
|
194
|
+
Style/DefWithParentheses:
|
195
|
+
Enabled: true
|
196
|
+
|
197
|
+
# Cop supports --auto-correct.
|
198
|
+
Style/DeprecatedHashMethods:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Style/Documentation:
|
202
|
+
Enabled: false
|
203
|
+
|
204
|
+
# Cop supports --auto-correct.
|
205
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
206
|
+
Style/DotPosition:
|
207
|
+
EnforcedStyle: trailing
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Style/DoubleNegation:
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
# Cop supports --auto-correct.
|
214
|
+
Style/ElseAlignment:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
# Cop supports --auto-correct.
|
218
|
+
Style/EmptyLines:
|
219
|
+
Enabled: true
|
220
|
+
|
221
|
+
# Cop supports --auto-correct.
|
222
|
+
Style/EmptyLinesAroundAccessModifier:
|
223
|
+
Enabled: true
|
224
|
+
|
225
|
+
# Cop supports --auto-correct.
|
226
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
227
|
+
Style/EmptyLinesAroundClassBody:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
# Cop supports --auto-correct.
|
231
|
+
Style/EmptyLinesAroundMethodBody:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
# Cop supports --auto-correct.
|
235
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
236
|
+
Style/EmptyLinesAroundModuleBody:
|
237
|
+
Enabled: true
|
238
|
+
|
239
|
+
# Cop supports --auto-correct.
|
240
|
+
Style/EmptyLiteral:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Style/EndOfLine:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Style/FileName:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
250
|
+
Style/FormatString:
|
251
|
+
Enabled: false
|
252
|
+
|
253
|
+
# Configuration parameters: MinBodyLength.
|
254
|
+
Style/GuardClause:
|
255
|
+
Enabled: false
|
256
|
+
|
257
|
+
# Cop supports --auto-correct.
|
258
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
259
|
+
Style/HashSyntax:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
# Configuration parameters: MaxLineLength.
|
263
|
+
Style/IfUnlessModifier:
|
264
|
+
Enabled: false
|
265
|
+
|
266
|
+
# Cop supports --auto-correct.
|
267
|
+
Style/IndentArray:
|
268
|
+
Enabled: true
|
269
|
+
|
270
|
+
# Cop supports --auto-correct.
|
271
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
272
|
+
Style/IndentHash:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
# Cop supports --auto-correct.
|
276
|
+
Style/IndentationConsistency:
|
277
|
+
Enabled: true
|
278
|
+
|
279
|
+
# Cop supports --auto-correct.
|
280
|
+
# Configuration parameters: Width.
|
281
|
+
Style/IndentationWidth:
|
282
|
+
Enabled: true
|
283
|
+
|
284
|
+
Style/Lambda:
|
285
|
+
Enabled: false
|
286
|
+
|
287
|
+
# Cop supports --auto-correct.
|
288
|
+
# Configuration parameters: SupportedStyles.
|
289
|
+
Style/LambdaCall:
|
290
|
+
Enabled: false
|
291
|
+
EnforcedStyle: braces
|
292
|
+
|
293
|
+
# Cop supports --auto-correct.
|
294
|
+
Style/LeadingCommentSpace:
|
295
|
+
Enabled: true
|
296
|
+
|
297
|
+
# Cop supports --auto-correct.
|
298
|
+
Style/LineEndConcatenation:
|
299
|
+
Enabled: false
|
300
|
+
|
301
|
+
# Cop supports --auto-correct.
|
302
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
303
|
+
Style/MethodDefParentheses:
|
304
|
+
Enabled: true
|
305
|
+
# Valid values are: require_parentheses, require_no_parentheses
|
306
|
+
EnforcedStyle: require_no_parentheses
|
307
|
+
|
308
|
+
# Cop supports --auto-correct.
|
309
|
+
Style/MultilineBlockLayout:
|
310
|
+
Enabled: false
|
311
|
+
|
312
|
+
# Cop supports --auto-correct.
|
313
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
314
|
+
Style/MultilineOperationIndentation:
|
315
|
+
Enabled: false
|
316
|
+
|
317
|
+
Style/MultilineTernaryOperator:
|
318
|
+
Enabled: false
|
319
|
+
|
320
|
+
# Cop supports --auto-correct.
|
321
|
+
Style/NegatedIf:
|
322
|
+
Enabled: true
|
323
|
+
|
324
|
+
# Cop supports --auto-correct.
|
325
|
+
Style/NumericLiterals:
|
326
|
+
MinDigits: 10
|
327
|
+
|
328
|
+
# Cop supports --auto-correct.
|
329
|
+
# Configuration parameters: AllowSafeAssignment.
|
330
|
+
Style/ParenthesesAroundCondition:
|
331
|
+
Enabled: true
|
332
|
+
|
333
|
+
# Cop supports --auto-correct.
|
334
|
+
# Configuration parameters: PreferredDelimiters.
|
335
|
+
Style/PercentLiteralDelimiters:
|
336
|
+
Enabled: false
|
337
|
+
|
338
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
|
339
|
+
Style/PredicateName:
|
340
|
+
Enabled: false
|
341
|
+
|
342
|
+
# Cop supports --auto-correct.
|
343
|
+
Style/RedundantBegin:
|
344
|
+
Enabled: false
|
345
|
+
|
346
|
+
# Cop supports --auto-correct.
|
347
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
348
|
+
Style/RedundantReturn:
|
349
|
+
Enabled: true
|
350
|
+
|
351
|
+
# Cop supports --auto-correct.
|
352
|
+
Style/RedundantSelf:
|
353
|
+
Enabled: false
|
354
|
+
|
355
|
+
Style/RescueModifier:
|
356
|
+
Enabled: false
|
357
|
+
|
358
|
+
Style/SelfAssignment:
|
359
|
+
Enabled: false
|
360
|
+
|
361
|
+
# Cop supports --auto-correct.
|
362
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
363
|
+
Style/Semicolon:
|
364
|
+
Enabled: false
|
365
|
+
|
366
|
+
# Cop supports --auto-correct.
|
367
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
368
|
+
Style/SignalException:
|
369
|
+
Enabled: false
|
370
|
+
|
371
|
+
# Configuration parameters: Methods.
|
372
|
+
Style/SingleLineBlockParams:
|
373
|
+
Enabled: false
|
374
|
+
|
375
|
+
Style/SingleLineMethods:
|
376
|
+
Enabled: false
|
377
|
+
|
378
|
+
# Cop supports --auto-correct.
|
379
|
+
Style/SingleSpaceBeforeFirstArg:
|
380
|
+
Enabled: false
|
381
|
+
|
382
|
+
# Cop supports --auto-correct.
|
383
|
+
Style/SpaceAfterColon:
|
384
|
+
Enabled: false
|
385
|
+
|
386
|
+
# Cop supports --auto-correct.
|
387
|
+
Style/SpaceAfterComma:
|
388
|
+
Enabled: false
|
389
|
+
|
390
|
+
# Cop supports --auto-correct.
|
391
|
+
Style/SpaceAfterControlKeyword:
|
392
|
+
Enabled: false
|
393
|
+
|
394
|
+
# Cop supports --auto-correct.
|
395
|
+
Style/SpaceAfterMethodName:
|
396
|
+
Enabled: false
|
397
|
+
|
398
|
+
# Cop supports --auto-correct.
|
399
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
400
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
401
|
+
Enabled: false
|
402
|
+
|
403
|
+
# Cop supports --auto-correct.
|
404
|
+
Style/SpaceAroundOperators:
|
405
|
+
Enabled: false
|
406
|
+
|
407
|
+
# Cop supports --auto-correct.
|
408
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
409
|
+
Style/SpaceBeforeBlockBraces:
|
410
|
+
Enabled: false
|
411
|
+
|
412
|
+
# Cop supports --auto-correct.
|
413
|
+
Style/SpaceBeforeComma:
|
414
|
+
Enabled: false
|
415
|
+
|
416
|
+
# Cop supports --auto-correct.
|
417
|
+
Style/SpaceBeforeModifierKeyword:
|
418
|
+
Enabled: false
|
419
|
+
|
420
|
+
# Cop supports --auto-correct.
|
421
|
+
Style/SpaceBeforeSemicolon:
|
422
|
+
Enabled: false
|
423
|
+
|
424
|
+
# Cop supports --auto-correct.
|
425
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
426
|
+
Style/SpaceInsideBlockBraces:
|
427
|
+
Enabled: false
|
428
|
+
|
429
|
+
# Cop supports --auto-correct.
|
430
|
+
Style/SpaceInsideBrackets:
|
431
|
+
Enabled: false
|
432
|
+
|
433
|
+
# Cop supports --auto-correct.
|
434
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
435
|
+
Style/SpaceInsideHashLiteralBraces:
|
436
|
+
Enabled: false
|
437
|
+
|
438
|
+
# Cop supports --auto-correct.
|
439
|
+
Style/SpaceInsideParens:
|
440
|
+
Enabled: false
|
441
|
+
|
442
|
+
# Cop supports --auto-correct.
|
443
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
444
|
+
Style/StringLiterals:
|
445
|
+
EnforcedStyle: single_quotes
|
446
|
+
Enabled: true
|
447
|
+
|
448
|
+
# Cop supports --auto-correct.
|
449
|
+
# Configuration parameters: IgnoredMethods.
|
450
|
+
Style/SymbolProc:
|
451
|
+
Enabled: false
|
452
|
+
|
453
|
+
# Cop supports --auto-correct.
|
454
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
455
|
+
Style/TrailingBlankLines:
|
456
|
+
Enabled: true
|
457
|
+
|
458
|
+
# Cop supports --auto-correct.
|
459
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
460
|
+
Style/TrailingComma:
|
461
|
+
Enabled: false
|
462
|
+
|
463
|
+
# Cop supports --auto-correct.
|
464
|
+
Style/TrailingWhitespace:
|
465
|
+
Enabled: true
|
466
|
+
|
467
|
+
Style/UnlessElse:
|
468
|
+
Enabled: false
|
469
|
+
|
470
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
471
|
+
Style/VariableName:
|
472
|
+
Enabled: false
|
473
|
+
|
474
|
+
# Cop supports --auto-correct.
|
475
|
+
Style/WhenThen:
|
476
|
+
Enabled: false
|
477
|
+
|
478
|
+
# Cop supports --auto-correct.
|
479
|
+
# Configuration parameters: WordRegex.
|
480
|
+
Style/WordArray:
|
481
|
+
MinSize: 25
|
data/.travis.yml
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
1. `git clone git@github.com:chaserx/gems-cli.git`
|
4
4
|
1. Create a branch to add your feature/fix a bug: `git checkout -b my-new-feature`.
|
5
5
|
1. Add your feature/fix while following the [style guide](http://learning-things.cirrusmio.com/style-guides/ruby.html).
|
6
|
+
1. Check your style with Rubocop. `bundle exec rubocop`
|
6
7
|
1. Commit and push your changes to the branch to Github.
|
7
8
|
1. [Create a new Pull Request](https://github.com/chaserx/gems-cli/compare).
|
8
9
|
|
data/Rakefile
CHANGED
data/gems-cli.gemspec
CHANGED
@@ -7,10 +7,16 @@ spec = Gem::Specification.new do |s|
|
|
7
7
|
s.email = 'chase.southard@gmail.com'
|
8
8
|
s.homepage = 'https://github.com/chaserx/gems-cli'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
|
-
s.summary =
|
11
|
-
|
10
|
+
s.summary = <<-END.gsub(/^ {14}/, '')
|
11
|
+
Search rubygems.org from the command line.
|
12
|
+
Copy formatted gem details for your Gemfile.
|
13
|
+
END
|
14
|
+
s.description = <<-END.gsub(/^ {18}/, '')
|
15
|
+
Search rubygems.org from the command line.
|
16
|
+
Then you can copy formatted gem details for your Gemfile.
|
17
|
+
END
|
12
18
|
s.license = 'MIT'
|
13
|
-
s.files = `git ls-files`.split(
|
19
|
+
s.files = `git ls-files`.split(' ')
|
14
20
|
s.require_paths << 'lib'
|
15
21
|
s.bindir = 'bin'
|
16
22
|
s.executables << 'gems'
|
@@ -21,6 +27,7 @@ spec = Gem::Specification.new do |s|
|
|
21
27
|
s.add_development_dependency 'rspec', '~> 3.1.0'
|
22
28
|
s.add_development_dependency 'yard', '~> 0.8.7.6'
|
23
29
|
s.add_development_dependency 'simplecov', '~> 0.9.1'
|
30
|
+
s.add_development_dependency 'rubocop', '~> 0.28.0'
|
24
31
|
|
25
32
|
s.add_runtime_dependency 'gli','2.12.2'
|
26
33
|
s.add_runtime_dependency 'gems','0.8.3'
|
data/lib/gems-cli/paginator.rb
CHANGED
@@ -4,8 +4,8 @@ class Paginator
|
|
4
4
|
attr_reader :pages, :total_entries
|
5
5
|
attr_accessor :ary, :per_page, :page, :paged_results
|
6
6
|
|
7
|
-
def initialize
|
8
|
-
@ary = args[:ary] ||
|
7
|
+
def initialize args={}
|
8
|
+
@ary = args[:ary] || []
|
9
9
|
@page = 1
|
10
10
|
@per_page = args[:per_page] || 10
|
11
11
|
@paged_results = @ary.paginate(per_page: @per_page)
|
data/lib/gems-cli/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -40,9 +40,9 @@ RSpec.configure do |config|
|
|
40
40
|
mocks.verify_partial_doubles = true
|
41
41
|
end
|
42
42
|
|
43
|
-
# The settings below are suggested to provide a good initial experience
|
44
|
-
# with RSpec, but feel free to customize to your heart's content.
|
45
|
-
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
|
46
46
|
# These two settings work together to allow you to limit a spec run
|
47
47
|
# to individual examples or groups you care about by tagging them with
|
48
48
|
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
@@ -64,12 +64,12 @@ RSpec.configure do |config|
|
|
64
64
|
# Many RSpec users commonly either run the entire suite or an individual
|
65
65
|
# file, and it's useful to allow more verbose output when running an
|
66
66
|
# individual spec file.
|
67
|
-
|
67
|
+
if config.files_to_run.one?
|
68
68
|
# Use the documentation formatter for detailed output,
|
69
69
|
# unless a formatter has already been configured
|
70
70
|
# (e.g. via a command-line flag).
|
71
|
-
|
72
|
-
|
71
|
+
config.default_formatter = 'doc'
|
72
|
+
end
|
73
73
|
|
74
74
|
# Print the 10 slowest examples and example groups at the
|
75
75
|
# end of the spec run, to help surface which specs are running
|
@@ -87,5 +87,4 @@ RSpec.configure do |config|
|
|
87
87
|
# test failures related to randomization by passing the same `--seed` value
|
88
88
|
# as the one that triggered the failure.
|
89
89
|
Kernel.srand config.seed
|
90
|
-
#=end
|
91
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gems-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chase Southard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.9.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.28.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.28.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: gli
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,8 +164,9 @@ dependencies:
|
|
150
164
|
- - '='
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: 3.0.7
|
153
|
-
description:
|
154
|
-
|
167
|
+
description: |
|
168
|
+
Search rubygems.org from the command line.
|
169
|
+
Then you can copy formatted gem details for your Gemfile.
|
155
170
|
email: chase.southard@gmail.com
|
156
171
|
executables:
|
157
172
|
- gems
|
@@ -160,11 +175,11 @@ extra_rdoc_files: []
|
|
160
175
|
files:
|
161
176
|
- ".gitignore"
|
162
177
|
- ".rspec"
|
178
|
+
- ".rubocop.yml"
|
163
179
|
- ".travis.yml"
|
164
180
|
- CHANGELOG
|
165
181
|
- CONTRIBUTING.md
|
166
182
|
- Gemfile
|
167
|
-
- Gemfile.lock
|
168
183
|
- LICENSE
|
169
184
|
- NOTES
|
170
185
|
- README.md
|
data/Gemfile.lock
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
gems-cli (0.1.5)
|
5
|
-
clipboard (= 1.0.5)
|
6
|
-
gems (= 0.8.3)
|
7
|
-
gli (= 2.12.2)
|
8
|
-
highline (= 1.6.21)
|
9
|
-
rainbow (= 2.0.0)
|
10
|
-
will_paginate (= 3.0.7)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
clipboard (1.0.5)
|
16
|
-
diff-lcs (1.2.5)
|
17
|
-
docile (1.1.5)
|
18
|
-
gems (0.8.3)
|
19
|
-
gli (2.12.2)
|
20
|
-
highline (1.6.21)
|
21
|
-
multi_json (1.10.1)
|
22
|
-
rainbow (2.0.0)
|
23
|
-
rake (10.3.2)
|
24
|
-
rspec (3.1.0)
|
25
|
-
rspec-core (~> 3.1.0)
|
26
|
-
rspec-expectations (~> 3.1.0)
|
27
|
-
rspec-mocks (~> 3.1.0)
|
28
|
-
rspec-core (3.1.7)
|
29
|
-
rspec-support (~> 3.1.0)
|
30
|
-
rspec-expectations (3.1.2)
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.1.0)
|
33
|
-
rspec-mocks (3.1.3)
|
34
|
-
rspec-support (~> 3.1.0)
|
35
|
-
rspec-support (3.1.2)
|
36
|
-
simplecov (0.9.1)
|
37
|
-
docile (~> 1.1.0)
|
38
|
-
multi_json (~> 1.0)
|
39
|
-
simplecov-html (~> 0.8.0)
|
40
|
-
simplecov-html (0.8.0)
|
41
|
-
will_paginate (3.0.7)
|
42
|
-
yard (0.8.7.6)
|
43
|
-
|
44
|
-
PLATFORMS
|
45
|
-
ruby
|
46
|
-
|
47
|
-
DEPENDENCIES
|
48
|
-
gems-cli!
|
49
|
-
rake (~> 10.3.2)
|
50
|
-
rspec (~> 3.1.0)
|
51
|
-
simplecov (~> 0.9.1)
|
52
|
-
yard (~> 0.8.7.6)
|