equalizer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  group :yard do
8
- gem 'yard', '~> 0.8.3'
9
8
  gem 'redcarpet', '~> 2.2.2', :platforms => [ :mri, :rbx ]
10
9
  end
11
10
 
@@ -15,19 +14,21 @@ group :guard do
15
14
  gem 'guard-rspec', '~> 1.2.1'
16
15
  end
17
16
 
17
+ group :benchmarks do
18
+ gem 'rbench', '~> 0.2.3'
19
+ end
20
+
18
21
  platform :jruby do
19
22
  group :jruby do
20
- gem 'jruby-openssl', '~> 0.7.4'
23
+ gem 'jruby-openssl', '~> 0.8.2'
21
24
  end
22
25
  end
23
26
 
24
27
  group :metrics do
25
28
  gem 'flay', '~> 1.4.3'
26
29
  gem 'flog', '~> 2.5.3'
27
- gem 'reek', '~> 1.2.8', :github => 'dkubb/reek'
28
30
  gem 'roodi', '~> 2.1.0'
29
- gem 'yardstick', '~> 0.8.0'
30
- gem 'simplecov'
31
+ gem 'yardstick', '~> 0.9.0'
31
32
 
32
33
  platforms :ruby_18, :ruby_19 do
33
34
  # this indirectly depends on ffi which does not build on ruby-head
@@ -46,7 +47,11 @@ group :metrics do
46
47
  gem 'ruby2ruby', '= 1.2.2' # for heckle
47
48
  end
48
49
 
50
+ platforms :ruby_19 do
51
+ gem 'simplecov', '~> 0.7.1'
52
+ end
53
+
49
54
  platforms :rbx do
50
- gem 'pelusa', '~> 0.2.1'
55
+ gem 'pelusa', '~> 0.2.2'
51
56
  end
52
57
  end
@@ -16,9 +16,10 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = `git ls-files -- {spec}/*`.split($/)
17
17
  gem.extra_rdoc_files = %w[LICENSE README.md TODO]
18
18
 
19
- gem.add_runtime_dependency('backports', '~> 2.6.4')
20
- gem.add_runtime_dependency('adamantium', '~> 0.0.3')
19
+ gem.add_runtime_dependency('backports', '~> 2.7.0')
20
+ gem.add_runtime_dependency('adamantium', '~> 0.0.5')
21
21
 
22
- gem.add_development_dependency('rake', '~> 10.0.2')
22
+ gem.add_development_dependency('rake', '~> 10.0.3')
23
23
  gem.add_development_dependency('rspec', '~> 1.3.2')
24
+ gem.add_development_dependency('yard', '~> 0.8.3')
24
25
  end
@@ -55,7 +55,7 @@ private
55
55
  # @api private
56
56
  def define_hash_method
57
57
  keys = @keys
58
- define_method(:hash) do
58
+ define_method(:hash) do ||
59
59
  keys.map { |key| send(key).hash }.reduce(self.class.hash, :^)
60
60
  end
61
61
  end
@@ -67,7 +67,7 @@ private
67
67
  # @api private
68
68
  def define_inspect_method
69
69
  keys = @keys
70
- define_method(:inspect) do
70
+ define_method(:inspect) do ||
71
71
  klass = self.class
72
72
  name = klass.name || klass.inspect
73
73
  "#<#{name}#{keys.map { |key| " #{key}=#{send(key).inspect}" }.join}>"
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class Equalizer < Module
4
- VERSION = '0.0.2'.freeze
5
- end
4
+ VERSION = '0.0.3'.freeze
5
+ end # class Equalizer
@@ -55,10 +55,18 @@ describe Equalizer, '.new' do
55
55
  end
56
56
 
57
57
  describe '#hash' do
58
+ it 'has the expected arity' do
59
+ klass.instance_method(:hash).arity.should be(0)
60
+ end
61
+
58
62
  it { instance.hash.should eql(klass.hash) }
59
63
  end
60
64
 
61
65
  describe '#inspect' do
66
+ it 'has the expected arity' do
67
+ klass.instance_method(:inspect).arity.should be(0)
68
+ end
69
+
62
70
  it { instance.inspect.should eql('#<User>') }
63
71
  end
64
72
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: equalizer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Kubb
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-12-25 00:00:00 Z
19
+ date: 2013-01-20 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: backports
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 31
29
+ hash: 19
30
30
  segments:
31
31
  - 2
32
- - 6
33
- - 4
34
- version: 2.6.4
32
+ - 7
33
+ - 0
34
+ version: 2.7.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 25
45
+ hash: 21
46
46
  segments:
47
47
  - 0
48
48
  - 0
49
- - 3
50
- version: 0.0.3
49
+ - 5
50
+ version: 0.0.5
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,12 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- hash: 75
61
+ hash: 73
62
62
  segments:
63
63
  - 10
64
64
  - 0
65
- - 2
66
- version: 10.0.2
65
+ - 3
66
+ version: 10.0.3
67
67
  type: :development
68
68
  version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
@@ -82,6 +82,22 @@ dependencies:
82
82
  version: 1.3.2
83
83
  type: :development
84
84
  version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: yard
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ hash: 57
94
+ segments:
95
+ - 0
96
+ - 8
97
+ - 3
98
+ version: 0.8.3
99
+ type: :development
100
+ version_requirements: *id005
85
101
  description: Module to define equality, equivalence and inspection methods
86
102
  email:
87
103
  - dan.kubb@gmail.com