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 +1 -1
- data/lib/range_dsl/exact_exp.rb +1 -1
- data/lib/range_dsl/open_range_exp.rb +1 -1
- data/range_dsl.gemspec +2 -2
- data/spec/range_dsl_spec.rb +6 -0
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.4
|
data/lib/range_dsl/exact_exp.rb
CHANGED
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.
|
|
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-
|
|
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 = [
|
data/spec/range_dsl_spec.rb
CHANGED
|
@@ -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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
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-
|
|
18
|
+
date: 2010-09-23 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|