dry-equalizer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -1
- data/Rakefile +5 -2
- data/dry-equalizer.gemspec +1 -1
- data/lib/dry/equalizer/version.rb +1 -1
- data/spec/spec_helper.rb +4 -1
- metadata +3 -10
- data/config/devtools.yml +0 -2
- data/config/flay.yml +0 -4
- data/config/flog.yml +0 -3
- data/config/mutant.yml +0 -2
- data/config/reek.yml +0 -105
- data/config/rubocop.yml +0 -115
- data/config/yardstick.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed9655642575de33e5542c8ec0e55db1f9661abb
|
4
|
+
data.tar.gz: 49ffcb60c96b9f1b3c1358abbab12b9d928d5942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93ccbe867a11eabdebad47e424346630641442ee76728791016769fc7dab30e3d52f1f39d371063cd1a22d27fa74c4c985b1c063786a4284a8b0c2c2f0db94d9
|
7
|
+
data.tar.gz: 649d90a675c0298d17f2d8092a9c76faff6c6ef3980fe80be8b7d504f409545b4c4f3abf4d9874ed85a2139e7299f6ac6ec56261b168a50be429c28815f987a3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/dry-equalizer.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = `git ls-files -- spec/{unit,integration}`.split("\n")
|
18
18
|
gem.extra_rdoc_files = %w[LICENSE README.md CONTRIBUTING.md]
|
19
19
|
|
20
|
-
gem.required_ruby_version = '>= 2.
|
20
|
+
gem.required_ruby_version = '>= 2.0.0'
|
21
21
|
|
22
22
|
gem.add_development_dependency('bundler', '~> 1.3', '>= 1.3.5')
|
23
23
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-equalizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Kubb
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -53,13 +53,6 @@ files:
|
|
53
53
|
- LICENSE
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
-
- config/devtools.yml
|
57
|
-
- config/flay.yml
|
58
|
-
- config/flog.yml
|
59
|
-
- config/mutant.yml
|
60
|
-
- config/reek.yml
|
61
|
-
- config/rubocop.yml
|
62
|
-
- config/yardstick.yml
|
63
56
|
- dry-equalizer.gemspec
|
64
57
|
- lib/dry-equalizer.rb
|
65
58
|
- lib/dry/equalizer.rb
|
@@ -82,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
75
|
requirements:
|
83
76
|
- - ">="
|
84
77
|
- !ruby/object:Gem::Version
|
85
|
-
version: 2.
|
78
|
+
version: 2.0.0
|
86
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
80
|
requirements:
|
88
81
|
- - ">="
|
data/config/devtools.yml
DELETED
data/config/flay.yml
DELETED
data/config/flog.yml
DELETED
data/config/mutant.yml
DELETED
data/config/reek.yml
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Attribute:
|
3
|
-
enabled: false
|
4
|
-
exclude: []
|
5
|
-
BooleanParameter:
|
6
|
-
enabled: true
|
7
|
-
exclude: []
|
8
|
-
ClassVariable:
|
9
|
-
enabled: true
|
10
|
-
exclude: []
|
11
|
-
ControlParameter:
|
12
|
-
enabled: true
|
13
|
-
exclude: []
|
14
|
-
DataClump:
|
15
|
-
enabled: true
|
16
|
-
exclude: []
|
17
|
-
max_copies: 2
|
18
|
-
min_clump_size: 2
|
19
|
-
DuplicateMethodCall:
|
20
|
-
enabled: true
|
21
|
-
exclude: []
|
22
|
-
max_calls: 1
|
23
|
-
allow_calls: []
|
24
|
-
FeatureEnvy:
|
25
|
-
enabled: true
|
26
|
-
exclude: []
|
27
|
-
IrresponsibleModule:
|
28
|
-
enabled: true
|
29
|
-
exclude: []
|
30
|
-
LongParameterList:
|
31
|
-
enabled: true
|
32
|
-
exclude: []
|
33
|
-
max_params: 2
|
34
|
-
overrides:
|
35
|
-
initialize:
|
36
|
-
max_params: 3
|
37
|
-
LongYieldList:
|
38
|
-
enabled: true
|
39
|
-
exclude: []
|
40
|
-
max_params: 2
|
41
|
-
NestedIterators:
|
42
|
-
enabled: true
|
43
|
-
exclude:
|
44
|
-
- Equalizer#define_cmp_method
|
45
|
-
- Equalizer#define_inspect_method
|
46
|
-
max_allowed_nesting: 1
|
47
|
-
ignore_iterators: []
|
48
|
-
NilCheck:
|
49
|
-
enabled: true
|
50
|
-
exclude: []
|
51
|
-
RepeatedConditional:
|
52
|
-
enabled: true
|
53
|
-
exclude: []
|
54
|
-
max_ifs: 1
|
55
|
-
TooManyInstanceVariables:
|
56
|
-
enabled: true
|
57
|
-
exclude: []
|
58
|
-
max_instance_variables: 3
|
59
|
-
TooManyMethods:
|
60
|
-
enabled: true
|
61
|
-
exclude: []
|
62
|
-
max_methods: 6
|
63
|
-
TooManyStatements:
|
64
|
-
enabled: true
|
65
|
-
exclude:
|
66
|
-
- Equalizer#define_inspect_method
|
67
|
-
max_statements: 5
|
68
|
-
UncommunicativeMethodName:
|
69
|
-
enabled: true
|
70
|
-
exclude: []
|
71
|
-
reject:
|
72
|
-
- !ruby/regexp /^[a-z]$/
|
73
|
-
- !ruby/regexp /[0-9]$/
|
74
|
-
- !ruby/regexp /[A-Z]/
|
75
|
-
accept: []
|
76
|
-
UncommunicativeModuleName:
|
77
|
-
enabled: true
|
78
|
-
exclude: []
|
79
|
-
reject:
|
80
|
-
- !ruby/regexp /^.$/
|
81
|
-
- !ruby/regexp /[0-9]$/
|
82
|
-
accept: []
|
83
|
-
UncommunicativeParameterName:
|
84
|
-
enabled: true
|
85
|
-
exclude: []
|
86
|
-
reject:
|
87
|
-
- !ruby/regexp /^.$/
|
88
|
-
- !ruby/regexp /[0-9]$/
|
89
|
-
- !ruby/regexp /[A-Z]/
|
90
|
-
accept: []
|
91
|
-
UncommunicativeVariableName:
|
92
|
-
enabled: true
|
93
|
-
exclude: []
|
94
|
-
reject:
|
95
|
-
- !ruby/regexp /^.$/
|
96
|
-
- !ruby/regexp /[0-9]$/
|
97
|
-
- !ruby/regexp /[A-Z]/
|
98
|
-
accept: []
|
99
|
-
UnusedParameters:
|
100
|
-
enabled: true
|
101
|
-
exclude: []
|
102
|
-
UtilityFunction:
|
103
|
-
enabled: true
|
104
|
-
exclude: []
|
105
|
-
max_helper_calls: 0
|
data/config/rubocop.yml
DELETED
@@ -1,115 +0,0 @@
|
|
1
|
-
# Avoid parameter lists longer than five parameters.
|
2
|
-
ParameterLists:
|
3
|
-
Max: 3
|
4
|
-
CountKeywordArgs: true
|
5
|
-
|
6
|
-
# Avoid more than `Max` levels of nesting.
|
7
|
-
BlockNesting:
|
8
|
-
Max: 3
|
9
|
-
|
10
|
-
# Align with the style guide.
|
11
|
-
CollectionMethods:
|
12
|
-
PreferredMethods:
|
13
|
-
collect: 'map'
|
14
|
-
inject: 'reduce'
|
15
|
-
find: 'detect'
|
16
|
-
find_all: 'select'
|
17
|
-
|
18
|
-
# Do not force public/protected/private keyword to be indented at the same
|
19
|
-
# level as the def keyword. My personal preference is to outdent these keywords
|
20
|
-
# because I think when scanning code it makes it easier to identify the
|
21
|
-
# sections of code and visually separate them. When the keyword is at the same
|
22
|
-
# level I think it sort of blends in with the def keywords and makes it harder
|
23
|
-
# to scan the code and see where the sections are.
|
24
|
-
AccessModifierIndentation:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
# Limit line length
|
28
|
-
LineLength:
|
29
|
-
Max: 106
|
30
|
-
|
31
|
-
# Disable documentation checking until a class needs to be documented once
|
32
|
-
Documentation:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
# Do not always use &&/|| instead of and/or.
|
36
|
-
AndOr:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
# Do not favor modifier if/unless usage when you have a single-line body
|
40
|
-
IfUnlessModifier:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
# Allow case equality operator (in limited use within the specs)
|
44
|
-
CaseEquality:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
# Constants do not always have to use SCREAMING_SNAKE_CASE
|
48
|
-
ConstantName:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
# Not all trivial readers/writers can be defined with attr_* methods
|
52
|
-
TrivialAccessors:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
# Allow empty lines around class body
|
56
|
-
EmptyLinesAroundClassBody:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
# Allow empty lines around module body
|
60
|
-
EmptyLinesAroundModuleBody:
|
61
|
-
Enabled: false
|
62
|
-
|
63
|
-
# Allow empty lines around block body
|
64
|
-
EmptyLinesAroundBlockBody:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
# Allow multiple line operations to not require indentation
|
68
|
-
MultilineOperationIndentation:
|
69
|
-
Enabled: false
|
70
|
-
|
71
|
-
# Prefer String#% over Kernel#sprintf
|
72
|
-
FormatString:
|
73
|
-
Enabled: false
|
74
|
-
|
75
|
-
# Use square brackets for literal Array objects
|
76
|
-
PercentLiteralDelimiters:
|
77
|
-
PreferredDelimiters:
|
78
|
-
'%': '{}'
|
79
|
-
'%i': '[]'
|
80
|
-
'%q': ()
|
81
|
-
'%Q': ()
|
82
|
-
'%r': '{}'
|
83
|
-
'%s': ()
|
84
|
-
'%w': '[]'
|
85
|
-
'%W': '[]'
|
86
|
-
'%x': ()
|
87
|
-
|
88
|
-
# Use %i[...] for arrays of symbols
|
89
|
-
SymbolArray:
|
90
|
-
Enabled: true
|
91
|
-
|
92
|
-
# Align if/else blocks with the variable assignment
|
93
|
-
EndAlignment:
|
94
|
-
AlignWith: variable
|
95
|
-
|
96
|
-
# Do not always align parameters when it is easier to read
|
97
|
-
AlignParameters:
|
98
|
-
Exclude:
|
99
|
-
- spec/**/*_spec.rb
|
100
|
-
|
101
|
-
# Prefer #kind_of? over #is_a?
|
102
|
-
ClassCheck:
|
103
|
-
EnforcedStyle: kind_of?
|
104
|
-
|
105
|
-
# Do not prefer double quotes to be used when %q or %Q is more appropriate
|
106
|
-
UnneededPercentQ:
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
# Allow a maximum ABC score
|
110
|
-
Metrics/AbcSize:
|
111
|
-
Max: 8.6
|
112
|
-
|
113
|
-
# Do not prefer lambda.call(...) over lambda.(...)
|
114
|
-
LambdaCall:
|
115
|
-
Enabled: false
|
data/config/yardstick.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
---
|
2
|
-
path: 'lib/**/*.rb'
|
3
|
-
threshold: 100
|
4
|
-
rules:
|
5
|
-
ApiTag::Presence:
|
6
|
-
enabled: true
|
7
|
-
exclude: []
|
8
|
-
ApiTag::Inclusion:
|
9
|
-
enabled: true
|
10
|
-
exclude: []
|
11
|
-
ApiTag::ProtectedMethod:
|
12
|
-
enabled: true
|
13
|
-
exclude: []
|
14
|
-
ApiTag::PrivateMethod:
|
15
|
-
enabled: true
|
16
|
-
exclude: []
|
17
|
-
ExampleTag:
|
18
|
-
enabled: true
|
19
|
-
exclude: []
|
20
|
-
ReturnTag:
|
21
|
-
enabled: true
|
22
|
-
exclude: []
|
23
|
-
Summary::Presence:
|
24
|
-
enabled: true
|
25
|
-
exclude: []
|
26
|
-
Summary::Length:
|
27
|
-
enabled: true
|
28
|
-
exclude: []
|
29
|
-
Summary::Delimiter:
|
30
|
-
enabled: true
|
31
|
-
exclude: []
|
32
|
-
Summary::SingleLine:
|
33
|
-
enabled: true
|
34
|
-
exclude: []
|