serrano 0.6.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +5 -3
- data/.gitignore +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +2 -1
- data/Rakefile +17 -20
- data/lib/serrano.rb +62 -63
- data/lib/serrano/cn.rb +3 -3
- data/lib/serrano/cnrequest.rb +30 -30
- data/lib/serrano/faraday.rb +11 -11
- data/lib/serrano/filterhandler.rb +20 -20
- data/lib/serrano/filters.rb +67 -67
- data/lib/serrano/request.rb +31 -31
- data/lib/serrano/request_cursor.rb +49 -49
- data/lib/serrano/styles.rb +15 -15
- data/lib/serrano/utils.rb +6 -7
- data/lib/serrano/version.rb +1 -1
- data/serrano.gemspec +34 -34
- metadata +48 -57
- data/.rubocop.yml +0 -50
- data/.rubocop_todo.yml +0 -105
- data/Gemfile.lock +0 -82
data/.rubocop_todo.yml
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2020-02-18 08:24:37 -0800 using RuboCop version 0.80.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
|
-
# Configuration parameters: Include.
|
11
|
-
# Include: **/*.gemspec
|
12
|
-
Gemspec/RequiredRubyVersion:
|
13
|
-
Exclude:
|
14
|
-
- 'serrano.gemspec'
|
15
|
-
|
16
|
-
# Offense count: 32
|
17
|
-
Metrics/AbcSize:
|
18
|
-
Max: 91
|
19
|
-
|
20
|
-
# Offense count: 1
|
21
|
-
# Configuration parameters: CountBlocks.
|
22
|
-
Metrics/BlockNesting:
|
23
|
-
Max: 4
|
24
|
-
|
25
|
-
# Offense count: 2
|
26
|
-
# Configuration parameters: CountComments.
|
27
|
-
Metrics/ClassLength:
|
28
|
-
Max: 367
|
29
|
-
|
30
|
-
# Offense count: 5
|
31
|
-
Metrics/CyclomaticComplexity:
|
32
|
-
Max: 11
|
33
|
-
|
34
|
-
# Offense count: 21
|
35
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
36
|
-
Metrics/MethodLength:
|
37
|
-
Max: 54
|
38
|
-
|
39
|
-
# Offense count: 8
|
40
|
-
Metrics/PerceivedComplexity:
|
41
|
-
Max: 15
|
42
|
-
|
43
|
-
# Offense count: 7
|
44
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
45
|
-
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
|
46
|
-
Naming/MethodParameterName:
|
47
|
-
Exclude:
|
48
|
-
- 'lib/serrano/filterhandler.rb'
|
49
|
-
- 'lib/serrano/request_cursor.rb'
|
50
|
-
- 'lib/serrano/utils.rb'
|
51
|
-
|
52
|
-
# Offense count: 3
|
53
|
-
# Cop supports --auto-correct.
|
54
|
-
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
55
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
56
|
-
Style/ConditionalAssignment:
|
57
|
-
Exclude:
|
58
|
-
- 'bin/serrano'
|
59
|
-
|
60
|
-
# Offense count: 6
|
61
|
-
Style/Documentation:
|
62
|
-
Exclude:
|
63
|
-
- 'spec/**/*'
|
64
|
-
- 'test/**/*'
|
65
|
-
- 'bin/serrano'
|
66
|
-
- 'lib/serrano.rb'
|
67
|
-
- 'lib/serrano/cn.rb'
|
68
|
-
- 'lib/serrano/filters.rb'
|
69
|
-
- 'lib/serrano/utils.rb'
|
70
|
-
|
71
|
-
# Offense count: 1
|
72
|
-
# Cop supports --auto-correct.
|
73
|
-
# Configuration parameters: EnforcedStyle.
|
74
|
-
# SupportedStyles: format, sprintf, percent
|
75
|
-
Style/FormatString:
|
76
|
-
Exclude:
|
77
|
-
- 'lib/serrano/utils.rb'
|
78
|
-
|
79
|
-
# Offense count: 1
|
80
|
-
# Configuration parameters: EnforcedStyle.
|
81
|
-
# SupportedStyles: annotated, template, unannotated
|
82
|
-
Style/FormatStringToken:
|
83
|
-
Exclude:
|
84
|
-
- 'lib/serrano/utils.rb'
|
85
|
-
|
86
|
-
# Offense count: 3
|
87
|
-
# Cop supports --auto-correct.
|
88
|
-
Style/IfUnlessModifier:
|
89
|
-
Exclude:
|
90
|
-
- 'lib/serrano/cnrequest.rb'
|
91
|
-
- 'lib/serrano/utils.rb'
|
92
|
-
|
93
|
-
# Offense count: 1
|
94
|
-
# Cop supports --auto-correct.
|
95
|
-
Style/SelfAssignment:
|
96
|
-
Exclude:
|
97
|
-
- 'lib/serrano/utils.rb'
|
98
|
-
|
99
|
-
# Offense count: 1
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
102
|
-
# SupportedStyles: single_quotes, double_quotes
|
103
|
-
Style/StringLiterals:
|
104
|
-
Exclude:
|
105
|
-
- 'lib/serrano/utils.rb'
|
data/Gemfile.lock
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
serrano (0.6.2)
|
5
|
-
faraday (~> 1.0, >= 1.0.1)
|
6
|
-
faraday_middleware (~> 1.0)
|
7
|
-
multi_json (~> 1.13, >= 1.13.1)
|
8
|
-
thor (>= 0.20, < 1.1)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
addressable (2.7.0)
|
14
|
-
public_suffix (>= 2.0.2, < 5.0)
|
15
|
-
ast (2.4.0)
|
16
|
-
codecov (0.1.16)
|
17
|
-
json
|
18
|
-
simplecov
|
19
|
-
url
|
20
|
-
crack (0.4.3)
|
21
|
-
safe_yaml (~> 1.0.0)
|
22
|
-
docile (1.3.2)
|
23
|
-
faraday (1.0.1)
|
24
|
-
multipart-post (>= 1.2, < 3)
|
25
|
-
faraday_middleware (1.0.0)
|
26
|
-
faraday (~> 1.0)
|
27
|
-
hashdiff (1.0.1)
|
28
|
-
json (2.3.0)
|
29
|
-
multi_json (1.14.1)
|
30
|
-
multipart-post (2.1.1)
|
31
|
-
parallel (1.19.1)
|
32
|
-
parser (2.7.1.2)
|
33
|
-
ast (~> 2.4.0)
|
34
|
-
power_assert (1.1.7)
|
35
|
-
public_suffix (4.0.4)
|
36
|
-
rainbow (3.0.0)
|
37
|
-
rake (13.0.1)
|
38
|
-
rexml (3.2.4)
|
39
|
-
rubocop (0.84.0)
|
40
|
-
parallel (~> 1.10)
|
41
|
-
parser (>= 2.7.0.1)
|
42
|
-
rainbow (>= 2.2.2, < 4.0)
|
43
|
-
rexml
|
44
|
-
rubocop-ast (>= 0.0.3)
|
45
|
-
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
47
|
-
rubocop-ast (0.0.3)
|
48
|
-
parser (>= 2.7.0.1)
|
49
|
-
ruby-progressbar (1.10.1)
|
50
|
-
safe_yaml (1.0.5)
|
51
|
-
simplecov (0.18.5)
|
52
|
-
docile (~> 1.1)
|
53
|
-
simplecov-html (~> 0.11)
|
54
|
-
simplecov-html (0.12.2)
|
55
|
-
test-unit (3.3.5)
|
56
|
-
power_assert
|
57
|
-
thor (1.0.1)
|
58
|
-
unicode-display_width (1.7.0)
|
59
|
-
url (0.3.2)
|
60
|
-
vcr (6.0.0)
|
61
|
-
webmock (3.8.3)
|
62
|
-
addressable (>= 2.3.6)
|
63
|
-
crack (>= 0.3.2)
|
64
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
65
|
-
|
66
|
-
PLATFORMS
|
67
|
-
ruby
|
68
|
-
|
69
|
-
DEPENDENCIES
|
70
|
-
bundler (~> 2.0, >= 2.0.2)
|
71
|
-
codecov (~> 0.1.10)
|
72
|
-
json (~> 2.1)
|
73
|
-
rake (~> 13.0, >= 12.3.1)
|
74
|
-
rubocop (~> 0.84.0)
|
75
|
-
serrano!
|
76
|
-
simplecov (~> 0.18.5)
|
77
|
-
test-unit (~> 3.2, >= 3.2.7)
|
78
|
-
vcr (~> 6.0)
|
79
|
-
webmock (~> 3.4, >= 3.4.1)
|
80
|
-
|
81
|
-
BUNDLED WITH
|
82
|
-
2.1.4
|