range_dsl 0.1.3 → 0.1.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -19,7 +19,7 @@ module RangeDsl
19
19
  end
20
20
 
21
21
  def eql?(other)
22
- (other.value == self.value) && (other.class == self.class)
22
+ (other.class == self.class) && (other.value == self.value)
23
23
  end
24
24
  alias_method :==, :eql?
25
25
 
@@ -22,7 +22,7 @@ module RangeDsl
22
22
  end
23
23
 
24
24
  def eql?(other)
25
- (other.value == self.value) && (other.class == self.class)
25
+ (other.class == self.class) && (other.value == self.value)
26
26
  end
27
27
  alias_method :==, :eql?
28
28
 
data/range_dsl.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{range_dsl}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["akimatter"]
12
- s.date = %q{2010-09-20}
12
+ s.date = %q{2010-09-23}
13
13
  s.description = %q{range_dsl provides easy open range and ranges with complex conditions}
14
14
  s.email = %q{akm2000@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -29,6 +29,8 @@ describe "RangeDsl" do
29
29
  @r1.include?(1234567890).should == true
30
30
  @r1.inspect.should == "gte(100)"
31
31
  @r1.should == RangeDsl.gte(100)
32
+ @r1.should_not == 100 # 数値とは一致しない
33
+ @r1.should_not == (1..100) # Rangeとも一致しない
32
34
  end
33
35
  end
34
36
  end
@@ -92,6 +94,8 @@ describe "RangeDsl" do
92
94
  @r1.include?(101).should == false
93
95
  @r1.inspect.should == "eq(100)"
94
96
  @r1.should == RangeDsl.eq(100)
97
+ @r1.should_not == 100 # 数値とは一致しない
98
+ @r1.should_not == (1..100) # Rangeとも一致しない
95
99
  end
96
100
  end
97
101
  end
@@ -201,6 +205,8 @@ describe "RangeDsl" do
201
205
  @r2.include?(6.1).should == false
202
206
  @r2.include?(7).should == false
203
207
  @r2.inspect.should == inspection
208
+ @r2.should_not == 3 # 数値とは一致しない
209
+ @r2.should_not == (3...6) # Rangeとも一致しない
204
210
  end
205
211
  end
206
212
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: range_dsl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - akimatter
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-20 00:00:00 +09:00
18
+ date: 2010-09-23 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency