dry-equalizer 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331c7852ce35d03c2bf636b387de9f0dfda2ff0f
4
- data.tar.gz: 34c7ecb5014f00f1134b8217b70931f38787d384
3
+ metadata.gz: ed9655642575de33e5542c8ec0e55db1f9661abb
4
+ data.tar.gz: 49ffcb60c96b9f1b3c1358abbab12b9d928d5942
5
5
  SHA512:
6
- metadata.gz: bf4777f0013c80f11093c59b9efe78b1b3b7a877f0bf4c0dc7fe2542b435a6756712ece41ea76a3d677ab1c6e97741c10e3680b85ebc1b445a055b704097d8f6
7
- data.tar.gz: de3f710c92e3c9a849ec37f4c7ef32d015d1634a0794140894647b74068a11dca02de706a2c07dab615902f3f8230bdfa305d70716635e48f7b52bcf9b276d4f
6
+ metadata.gz: 93ccbe867a11eabdebad47e424346630641442ee76728791016769fc7dab30e3d52f1f39d371063cd1a22d27fa74c4c985b1c063786a4284a8b0c2c2f0db94d9
7
+ data.tar.gz: 649d90a675c0298d17f2d8092a9c76faff6c6ef3980fe80be8b7d504f409545b4c4f3abf4d9874ed85a2139e7299f6ac6ec56261b168a50be429c28815f987a3
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  bundler_args: --without yard guard benchmarks
3
- script: "bundle exec rake ci"
3
+ script: "bundle exec rake spec"
4
4
  cache: bundler
5
5
  sudo: false
6
6
  rvm:
7
+ - 2.0
7
8
  - 2.1
8
9
  - 2.2
9
10
  - ruby-head
@@ -1,3 +1,7 @@
1
+ # v0.1.1 2015-11-13
2
+
3
+ Make it work with MRI 2.0 again
4
+
1
5
  # v0.1.0 2015-11-11
2
6
 
3
7
  ## Added
data/Gemfile CHANGED
@@ -3,7 +3,9 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  group :development, :test do
6
- gem 'devtools', git: 'https://github.com/mbj/devtools.git'
6
+ gem 'rake'
7
+ gem 'anima', '~> 0.2.0' # for MRI >= 2.0
8
+ gem 'rspec', '~> 3.4'
7
9
  end
8
10
 
9
11
  gemspec
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
1
  require 'bundler'
2
- require 'devtools'
3
2
 
4
3
  Bundler::GemHelper.install_tasks
5
- Devtools.init_rake_tasks
4
+
5
+ require "rspec/core/rake_task"
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ task default: [:spec]
@@ -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.1.0'
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
@@ -3,6 +3,6 @@
3
3
  module Dry
4
4
  class Equalizer < Module
5
5
  # Gem version
6
- VERSION = '0.1.0'.freeze
6
+ VERSION = '0.1.1'.freeze
7
7
  end # class Equalizer
8
8
  end
@@ -14,9 +14,12 @@ if ENV['COVERAGE'] == 'true'
14
14
  end
15
15
  end
16
16
 
17
- require 'devtools/spec_helper'
18
17
  require 'dry-equalizer'
19
18
 
19
+ class Class
20
+ public :include
21
+ end
22
+
20
23
  RSpec.configure do |config|
21
24
  config.raise_errors_for_deprecations!
22
25
 
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.0
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 00:00:00.000000000 Z
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.1.0
78
+ version: 2.0.0
86
79
  required_rubygems_version: !ruby/object:Gem::Requirement
87
80
  requirements:
88
81
  - - ">="
@@ -1,2 +0,0 @@
1
- ---
2
- unit_test_timeout: 1.0
@@ -1,4 +0,0 @@
1
- ---
2
- threshold: 0
3
- total_score: 0
4
- lib_dirs: []
@@ -1,3 +0,0 @@
1
- ---
2
- threshold: 15.6
3
- lib_dirs: ['lib']
@@ -1,2 +0,0 @@
1
- name: equalizer
2
- namespace: Equalizer
@@ -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
@@ -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
@@ -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: []