equalizer 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -7
- data/.gitignore +2 -0
- data/.rspec +2 -1
- data/.rubocop.yml +0 -69
- data/.travis.yml +15 -13
- data/Gemfile +7 -16
- data/README.md +7 -6
- data/Rakefile +5 -10
- data/config/rubocop.yml +54 -0
- data/equalizer.gemspec +5 -3
- data/lib/equalizer.rb +6 -9
- data/lib/equalizer/version.rb +1 -3
- data/spec/spec_helper.rb +1 -9
- data/spec/unit/equalizer/included_spec.rb +11 -1
- data/spec/unit/equalizer/methods/equality_operator_spec.rb +1 -1
- data/spec/unit/equalizer/universal_spec.rb +4 -5
- metadata +41 -41
- data/.reek.yml +0 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
data.tar.gz: 6ee814edcff8e3dc43cbc0f346fd5476abe9355c
|
4
|
+
metadata.gz: 1e4dcd0c1065c612644e23e6da1fd99b542ebb91
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 856b070b7bb7a3bd5041ac8a032a7bbc2bb0945bd3f276779c839ced2373dbc2bf76902d6d7d3096a9e4580095152d8da4f23643e9fea6ab4bb22dd6b489694a
|
7
|
+
metadata.gz: 418740bf5115aa42467cbaf213d8364b8524b5719a768989283758c8fa4e72dbf1a9a1f2556c28030988f7ea4c0c11981c058af06ac7a853e510794814a69aac
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,69 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
Includes:
|
3
|
-
- '**/*.rake'
|
4
|
-
- 'Gemfile'
|
5
|
-
- 'Rakefile'
|
6
|
-
Excludes:
|
7
|
-
- 'vendor/**'
|
8
|
-
|
9
|
-
# Avoid parameter lists longer than five parameters.
|
10
|
-
ParameterLists:
|
11
|
-
Max: 3
|
12
|
-
CountKeywordArgs: true
|
13
|
-
|
14
|
-
# Avoid more than `Max` levels of nesting.
|
15
|
-
BlockNesting:
|
16
|
-
Max: 3
|
17
|
-
|
18
|
-
# Align with the style guide.
|
19
|
-
CollectionMethods:
|
20
|
-
PreferredMethods:
|
21
|
-
collect: 'map'
|
22
|
-
inject: 'reduce'
|
23
|
-
find: 'detect'
|
24
|
-
find_all: 'select'
|
25
|
-
|
26
|
-
# Do not force public/protected/private keyword to be indented at the same
|
27
|
-
# level as the def keyword. My personal preference is to outdent these keywords
|
28
|
-
# because I think when scanning code it makes it easier to identify the
|
29
|
-
# sections of code and visually separate them. When the keyword is at the same
|
30
|
-
# level I think it sort of blends in with the def keywords and makes it harder
|
31
|
-
# to scan the code and see where the sections are.
|
32
|
-
AccessModifierIndentation:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
# Disable documentation checking until a class needs to be documented once
|
36
|
-
Documentation:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
# Do not always use &&/|| instead of and/or.
|
40
|
-
AndOr:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
# Do not favor modifier if/unless usage when you have a single-line body
|
44
|
-
IfUnlessModifier:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
# Allow case equality operator (in limited use within the specs)
|
48
|
-
CaseEquality:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
# Constants do not always have to use SCREAMING_SNAKE_CASE
|
52
|
-
ConstantName:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
# Not all trivial readers/writers can be defined with attr_* methods
|
56
|
-
TrivialAccessors:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
# Allow empty lines around body
|
60
|
-
EmptyLinesAroundBody:
|
61
|
-
Enabled: false
|
62
|
-
|
63
|
-
# Enforce Ruby 1.8-compatible hash syntax
|
64
|
-
HashSyntax:
|
65
|
-
EnforcedStyle: hash_rockets
|
66
|
-
|
67
|
-
# Allow dots at the end of lines
|
68
|
-
DotPosition:
|
69
|
-
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,25 +1,27 @@
|
|
1
|
-
|
1
|
+
before_install: gem update bundler
|
2
2
|
cache: bundler
|
3
|
-
|
3
|
+
sudo: false
|
4
|
+
env:
|
5
|
+
global:
|
6
|
+
- JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
|
7
|
+
language: ruby
|
4
8
|
script: "bundle exec rake ci"
|
5
9
|
rvm:
|
6
|
-
- ree
|
7
10
|
- 1.8.7
|
8
|
-
- 1.9.2
|
9
11
|
- 1.9.3
|
10
12
|
- 2.0.0
|
13
|
+
- 2.1
|
14
|
+
- 2.2
|
15
|
+
- jruby-18mode
|
16
|
+
- jruby-19mode
|
17
|
+
- jruby-head
|
18
|
+
- rbx-2
|
19
|
+
- ree
|
11
20
|
- ruby-head
|
12
|
-
- rbx
|
13
21
|
matrix:
|
14
|
-
|
15
|
-
- rvm:
|
16
|
-
env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
|
17
|
-
- rvm: jruby-19mode
|
18
|
-
env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
|
19
|
-
- rvm: jruby-20mode
|
20
|
-
env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
|
22
|
+
allow_failures:
|
23
|
+
- rvm: ruby-head
|
21
24
|
- rvm: jruby-head
|
22
|
-
env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
|
23
25
|
fast_finish: true
|
24
26
|
notifications:
|
25
27
|
irc:
|
data/Gemfile
CHANGED
@@ -6,23 +6,14 @@ gem 'rake'
|
|
6
6
|
|
7
7
|
group :test do
|
8
8
|
gem 'backports'
|
9
|
-
gem 'coveralls'
|
10
|
-
gem 'json',
|
11
|
-
gem '
|
12
|
-
gem '
|
13
|
-
gem '
|
14
|
-
gem '
|
9
|
+
gem 'coveralls'
|
10
|
+
gem 'json', :platforms => [:ruby_19]
|
11
|
+
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
|
12
|
+
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
|
13
|
+
gem 'rspec', '~> 3.0'
|
14
|
+
gem 'rubocop', '>= 0.25', :platforms => [:ruby_19, :ruby_20, :ruby_21, :ruby_22]
|
15
|
+
gem 'simplecov', '>= 0.9'
|
15
16
|
gem 'yardstick'
|
16
17
|
end
|
17
18
|
|
18
|
-
platforms :jruby, :ruby_18 do
|
19
|
-
gem 'mime-types', '~> 1.25'
|
20
|
-
end
|
21
|
-
|
22
|
-
platforms :rbx do
|
23
|
-
gem 'racc'
|
24
|
-
gem 'rubinius-coverage', '~> 2.0'
|
25
|
-
gem 'rubysl', '~> 2.0'
|
26
|
-
end
|
27
|
-
|
28
19
|
gemspec
|
data/README.md
CHANGED
@@ -3,11 +3,11 @@ equalizer
|
|
3
3
|
|
4
4
|
Module to define equality, equivalence and inspection methods
|
5
5
|
|
6
|
-
[][gem]
|
7
|
+
[][travis]
|
8
|
+
[][gemnasium]
|
9
|
+
[][codeclimate]
|
10
|
+
[][coveralls]
|
11
11
|
|
12
12
|
[gem]: https://rubygems.org/gems/equalizer
|
13
13
|
[travis]: https://travis-ci.org/dkubb/equalizer
|
@@ -53,9 +53,10 @@ This library aims to support and is [tested against][travis] the following Ruby
|
|
53
53
|
implementations:
|
54
54
|
|
55
55
|
* Ruby 1.8.7
|
56
|
-
* Ruby 1.9.2
|
57
56
|
* Ruby 1.9.3
|
58
57
|
* Ruby 2.0.0
|
58
|
+
* Ruby 2.1
|
59
|
+
* Ruby 2.2
|
59
60
|
* [JRuby][]
|
60
61
|
* [Rubinius][]
|
61
62
|
* [Ruby Enterprise Edition][ree]
|
data/Rakefile
CHANGED
@@ -9,20 +9,15 @@ RSpec::Core::RakeTask.new(:spec)
|
|
9
9
|
task :test => :spec
|
10
10
|
task :default => :spec
|
11
11
|
|
12
|
-
require 'reek/rake/task'
|
13
|
-
Reek::Rake::Task.new do |reek|
|
14
|
-
reek.reek_opts = '--quiet'
|
15
|
-
reek.fail_on_error = true
|
16
|
-
reek.config_files = '.reek.yml'
|
17
|
-
end
|
18
|
-
|
19
12
|
begin
|
20
13
|
require 'rubocop/rake_task'
|
21
|
-
|
14
|
+
RuboCop::RakeTask.new do |task|
|
15
|
+
task.options = %w(--config config/rubocop.yml)
|
16
|
+
end
|
22
17
|
rescue LoadError
|
23
18
|
desc 'Run RuboCop'
|
24
19
|
task :rubocop do
|
25
|
-
$stderr.puts '
|
20
|
+
$stderr.puts 'RuboCop is disabled'
|
26
21
|
end
|
27
22
|
end
|
28
23
|
|
@@ -36,4 +31,4 @@ Yardstick::Rake::Verify.new do |verify|
|
|
36
31
|
verify.threshold = 100
|
37
32
|
end
|
38
33
|
|
39
|
-
task :ci => [:spec, :rubocop, :
|
34
|
+
task :ci => [:spec, :rubocop, :verify_measurements]
|
data/config/rubocop.yml
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
Metrics/BlockNesting:
|
2
|
+
Max: 2
|
3
|
+
|
4
|
+
Metrics/LineLength:
|
5
|
+
AllowURI: true
|
6
|
+
Enabled: false
|
7
|
+
|
8
|
+
Metrics/MethodLength:
|
9
|
+
CountComments: false
|
10
|
+
Max: 15
|
11
|
+
|
12
|
+
Metrics/ParameterLists:
|
13
|
+
Max: 4
|
14
|
+
CountKeywordArgs: true
|
15
|
+
|
16
|
+
Style/AccessModifierIndentation:
|
17
|
+
EnforcedStyle: outdent
|
18
|
+
|
19
|
+
Style/CollectionMethods:
|
20
|
+
PreferredMethods:
|
21
|
+
map: 'collect'
|
22
|
+
reduce: 'inject'
|
23
|
+
find: 'detect'
|
24
|
+
find_all: 'select'
|
25
|
+
|
26
|
+
Style/Documentation:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Style/DotPosition:
|
30
|
+
EnforcedStyle: trailing
|
31
|
+
|
32
|
+
Style/DoubleNegation:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Style/EachWithObject:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/Encoding:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/HashSyntax:
|
42
|
+
EnforcedStyle: hash_rockets
|
43
|
+
|
44
|
+
Style/Lambda:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Style/RaiseArgs:
|
48
|
+
EnforcedStyle: compact
|
49
|
+
|
50
|
+
Style/SpaceInsideHashLiteralBraces:
|
51
|
+
EnforcedStyle: no_space
|
52
|
+
|
53
|
+
Style/TrailingComma:
|
54
|
+
EnforcedStyleForMultiline: 'comma'
|
data/equalizer.gemspec
CHANGED
@@ -6,16 +6,18 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = 'equalizer'
|
7
7
|
gem.version = Equalizer::VERSION.dup
|
8
8
|
gem.authors = ['Dan Kubb', 'Markus Schirp']
|
9
|
-
gem.email = %w
|
9
|
+
gem.email = %w(dan.kubb@gmail.com mbj@schirp-dso.com)
|
10
10
|
gem.description = 'Module to define equality, equivalence and inspection methods'
|
11
11
|
gem.summary = gem.description
|
12
12
|
gem.homepage = 'https://github.com/dkubb/equalizer'
|
13
13
|
gem.licenses = 'MIT'
|
14
14
|
|
15
|
-
gem.require_paths = %w
|
15
|
+
gem.require_paths = %w(lib)
|
16
16
|
gem.files = `git ls-files`.split("\n")
|
17
17
|
gem.test_files = `git ls-files -- spec/{unit,integration}`.split("\n")
|
18
|
-
gem.extra_rdoc_files = %w
|
18
|
+
gem.extra_rdoc_files = %w(LICENSE README.md CONTRIBUTING.md)
|
19
|
+
|
20
|
+
gem.required_ruby_version = '>= 1.8.7'
|
19
21
|
|
20
22
|
gem.add_development_dependency('bundler', '~> 1.3', '>= 1.3.5')
|
21
23
|
end
|
data/lib/equalizer.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
# Define equality, equivalence and inspection methods
|
4
4
|
class Equalizer < Module
|
5
|
-
|
6
5
|
# Initialize an Equalizer with the given keys
|
7
6
|
#
|
8
7
|
# Will use the keys with which it is initialized to define #cmp?,
|
@@ -65,8 +64,8 @@ private
|
|
65
64
|
# @api private
|
66
65
|
def define_hash_method
|
67
66
|
keys = @keys
|
68
|
-
define_method(:hash) do
|
69
|
-
keys.
|
67
|
+
define_method(:hash) do | |
|
68
|
+
keys.collect(&method(:send)).push(self.class).hash
|
70
69
|
end
|
71
70
|
end
|
72
71
|
|
@@ -77,16 +76,15 @@ private
|
|
77
76
|
# @api private
|
78
77
|
def define_inspect_method
|
79
78
|
keys = @keys
|
80
|
-
define_method(:inspect) do
|
79
|
+
define_method(:inspect) do | |
|
81
80
|
klass = self.class
|
82
81
|
name = klass.name || klass.inspect
|
83
|
-
"#<#{name}#{keys.
|
82
|
+
"#<#{name}#{keys.collect { |key| " #{key}=#{send(key).inspect}" }.join}>"
|
84
83
|
end
|
85
84
|
end
|
86
85
|
|
87
86
|
# The comparison methods
|
88
87
|
module Methods
|
89
|
-
|
90
88
|
# Compare the object with other object for equality
|
91
89
|
#
|
92
90
|
# @example
|
@@ -114,9 +112,8 @@ private
|
|
114
112
|
#
|
115
113
|
# @api public
|
116
114
|
def ==(other)
|
117
|
-
other = coerce(other) if respond_to?(:coerce, true)
|
118
|
-
other.
|
115
|
+
other = coerce(other).first if respond_to?(:coerce, true)
|
116
|
+
other.is_a?(self.class) && cmp?(__method__, other)
|
119
117
|
end
|
120
|
-
|
121
118
|
end # module Methods
|
122
119
|
end # class Equalizer
|
data/lib/equalizer/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -4,10 +4,7 @@ if ENV['COVERAGE'] == 'true'
|
|
4
4
|
require 'simplecov'
|
5
5
|
require 'coveralls'
|
6
6
|
|
7
|
-
SimpleCov.
|
8
|
-
SimpleCov::Formatter::HTMLFormatter,
|
9
|
-
Coveralls::SimpleCov::Formatter,
|
10
|
-
]
|
7
|
+
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
|
11
8
|
|
12
9
|
SimpleCov.start do
|
13
10
|
command_name 'spec:unit'
|
@@ -22,11 +19,6 @@ end
|
|
22
19
|
|
23
20
|
require 'equalizer'
|
24
21
|
|
25
|
-
# TODO: FIXME!
|
26
|
-
# Cache correct freezer in ice_nine before
|
27
|
-
# rspec2 infects the world...
|
28
|
-
Equalizer.new
|
29
|
-
|
30
22
|
RSpec.configure do |config|
|
31
23
|
config.expect_with :rspec do |expect_with|
|
32
24
|
expect_with.syntax = :expect
|
@@ -29,7 +29,17 @@ describe Equalizer, '#included' do
|
|
29
29
|
# superclass#included method is called. All of the built-in rspec helpers
|
30
30
|
# did not seem to work for this.
|
31
31
|
included = false
|
32
|
-
|
32
|
+
|
33
|
+
superclass.class_eval do
|
34
|
+
define_method(:included) do |_|
|
35
|
+
# Only set the flag when an Equalizer instance is included.
|
36
|
+
# Otherwise, other module includes (which get triggered internally
|
37
|
+
# in RSpec when `change` is used for the first time, since it uses
|
38
|
+
# autoloading for its matchers) will wrongly set this flag.
|
39
|
+
included = true if self.is_a?(Equalizer)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
33
43
|
expect { subject }.to change { included }.from(false).to(true)
|
34
44
|
end
|
35
45
|
|
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Equalizer, '.new' do
|
6
|
-
|
7
6
|
let(:object) { described_class }
|
8
7
|
let(:name) { 'User' }
|
9
8
|
let(:klass) { ::Class.new }
|
@@ -24,8 +23,8 @@ describe Equalizer, '.new' do
|
|
24
23
|
it { should be_frozen }
|
25
24
|
|
26
25
|
it 'defines #hash and #inspect methods dynamically' do
|
27
|
-
expect(subject.public_instance_methods(false).
|
28
|
-
to eql(%w
|
26
|
+
expect(subject.public_instance_methods(false).collect(&:to_s).sort).
|
27
|
+
to eql(%w(hash inspect))
|
29
28
|
end
|
30
29
|
|
31
30
|
describe '#eql?' do
|
@@ -104,8 +103,8 @@ describe Equalizer, '.new' do
|
|
104
103
|
it { should be_frozen }
|
105
104
|
|
106
105
|
it 'defines #hash and #inspect methods dynamically' do
|
107
|
-
expect(subject.public_instance_methods(false).
|
108
|
-
to eql(%w
|
106
|
+
expect(subject.public_instance_methods(false).collect(&:to_s).sort).
|
107
|
+
to eql(%w(hash inspect))
|
109
108
|
end
|
110
109
|
|
111
110
|
describe '#eql?' do
|
metadata
CHANGED
@@ -1,49 +1,44 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: equalizer
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Dan Kubb
|
8
8
|
- Markus Schirp
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ~>
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '1.3'
|
21
|
-
- - '>='
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.3.5
|
12
|
+
|
13
|
+
date: 2015-03-20 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
24
16
|
type: :development
|
25
|
-
|
26
|
-
|
27
|
-
requirements:
|
17
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
28
19
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: "1.3"
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
33
24
|
version: 1.3.5
|
25
|
+
requirement: *id001
|
26
|
+
prerelease: false
|
27
|
+
name: bundler
|
34
28
|
description: Module to define equality, equivalence and inspection methods
|
35
|
-
email:
|
29
|
+
email:
|
36
30
|
- dan.kubb@gmail.com
|
37
31
|
- mbj@schirp-dso.com
|
38
32
|
executables: []
|
33
|
+
|
39
34
|
extensions: []
|
40
|
-
|
35
|
+
|
36
|
+
extra_rdoc_files:
|
41
37
|
- LICENSE
|
42
38
|
- README.md
|
43
39
|
- CONTRIBUTING.md
|
44
|
-
files:
|
40
|
+
files:
|
45
41
|
- .gitignore
|
46
|
-
- .reek.yml
|
47
42
|
- .rspec
|
48
43
|
- .rubocop.yml
|
49
44
|
- .ruby-gemset
|
@@ -54,6 +49,7 @@ files:
|
|
54
49
|
- LICENSE
|
55
50
|
- README.md
|
56
51
|
- Rakefile
|
52
|
+
- config/rubocop.yml
|
57
53
|
- equalizer.gemspec
|
58
54
|
- lib/equalizer.rb
|
59
55
|
- lib/equalizer/version.rb
|
@@ -64,31 +60,35 @@ files:
|
|
64
60
|
- spec/unit/equalizer/methods/equality_operator_spec.rb
|
65
61
|
- spec/unit/equalizer/universal_spec.rb
|
66
62
|
homepage: https://github.com/dkubb/equalizer
|
67
|
-
licenses:
|
63
|
+
licenses:
|
68
64
|
- MIT
|
69
65
|
metadata: {}
|
66
|
+
|
70
67
|
post_install_message:
|
71
68
|
rdoc_options: []
|
72
|
-
|
69
|
+
|
70
|
+
require_paths:
|
73
71
|
- lib
|
74
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- -
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version:
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.8.7
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: "0"
|
84
82
|
requirements: []
|
83
|
+
|
85
84
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.4.6
|
87
86
|
signing_key:
|
88
87
|
specification_version: 4
|
89
88
|
summary: Module to define equality, equivalence and inspection methods
|
90
|
-
test_files:
|
89
|
+
test_files:
|
91
90
|
- spec/unit/equalizer/included_spec.rb
|
92
91
|
- spec/unit/equalizer/methods/eql_predicate_spec.rb
|
93
92
|
- spec/unit/equalizer/methods/equality_operator_spec.rb
|
94
93
|
- spec/unit/equalizer/universal_spec.rb
|
94
|
+
has_rdoc:
|
data/.reek.yml
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Attribute:
|
3
|
-
enabled: true
|
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_hash_method
|
46
|
-
- Equalizer#define_inspect_method
|
47
|
-
max_allowed_nesting: 1
|
48
|
-
ignore_iterators: []
|
49
|
-
NilCheck:
|
50
|
-
enabled: true
|
51
|
-
exclude: []
|
52
|
-
RepeatedConditional:
|
53
|
-
enabled: true
|
54
|
-
exclude: []
|
55
|
-
max_ifs: 1
|
56
|
-
TooManyInstanceVariables:
|
57
|
-
enabled: true
|
58
|
-
exclude: []
|
59
|
-
max_instance_variables: 3
|
60
|
-
TooManyMethods:
|
61
|
-
enabled: true
|
62
|
-
exclude: []
|
63
|
-
max_methods: 10
|
64
|
-
TooManyStatements:
|
65
|
-
enabled: true
|
66
|
-
exclude:
|
67
|
-
- each
|
68
|
-
max_statements: 5
|
69
|
-
UncommunicativeMethodName:
|
70
|
-
enabled: true
|
71
|
-
exclude: []
|
72
|
-
reject:
|
73
|
-
- !ruby/regexp /^[a-z]$/
|
74
|
-
- !ruby/regexp /[0-9]$/
|
75
|
-
- !ruby/regexp /[A-Z]/
|
76
|
-
accept: []
|
77
|
-
UncommunicativeModuleName:
|
78
|
-
enabled: true
|
79
|
-
exclude: []
|
80
|
-
reject:
|
81
|
-
- !ruby/regexp /^.$/
|
82
|
-
- !ruby/regexp /[0-9]$/
|
83
|
-
accept: []
|
84
|
-
UncommunicativeParameterName:
|
85
|
-
enabled: true
|
86
|
-
exclude: []
|
87
|
-
reject:
|
88
|
-
- !ruby/regexp /^.$/
|
89
|
-
- !ruby/regexp /[0-9]$/
|
90
|
-
- !ruby/regexp /[A-Z]/
|
91
|
-
accept: []
|
92
|
-
UncommunicativeVariableName:
|
93
|
-
enabled: true
|
94
|
-
exclude: []
|
95
|
-
reject:
|
96
|
-
- !ruby/regexp /^.$/
|
97
|
-
- !ruby/regexp /[0-9]$/
|
98
|
-
- !ruby/regexp /[A-Z]/
|
99
|
-
accept: []
|
100
|
-
UnusedParameters:
|
101
|
-
enabled: true
|
102
|
-
exclude: []
|
103
|
-
UtilityFunction:
|
104
|
-
enabled: true
|
105
|
-
exclude: []
|
106
|
-
max_helper_calls: 0
|