home_run 0.9.3-x86-mingw32 → 0.9.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +0 -1
- data/ext/date_ext/date_ext.c +192 -191
- data/ext/date_ext/datetime.c +12 -11
- data/lib/1.8/date_ext.so +0 -0
- data/lib/1.9/date_ext.so +0 -0
- data/spec/date/add_month_spec.rb +5 -0
- data/spec/date/add_spec.rb +5 -0
- data/spec/date/civil_spec.rb +5 -1
- data/spec/date/commercial_spec.rb +5 -0
- data/spec/date/conversions_spec.rb +10 -0
- data/spec/date/downto_spec.rb +6 -0
- data/spec/date/julian_spec.rb +10 -0
- data/spec/date/minus_month_spec.rb +5 -0
- data/spec/date/minus_spec.rb +5 -0
- data/spec/date/next_prev_spec.rb +30 -1
- data/spec/date/ordinal_spec.rb +5 -0
- data/spec/date/parse_spec.rb +6 -0
- data/spec/date/parsing_spec.rb +11 -0
- data/spec/date/step_spec.rb +6 -0
- data/spec/date/strptime_spec.rb +6 -0
- data/spec/date/succ_spec.rb +5 -0
- data/spec/date/today_spec.rb +5 -0
- data/spec/date/upto_spec.rb +7 -0
- data/spec/datetime/add_month_spec.rb +5 -0
- data/spec/datetime/add_spec.rb +5 -0
- data/spec/datetime/constructor_spec.rb +10 -0
- data/spec/datetime/conversions_spec.rb +5 -0
- data/spec/datetime/downto_spec.rb +6 -0
- data/spec/datetime/minus_month_spec.rb +5 -2
- data/spec/datetime/minus_spec.rb +5 -0
- data/spec/datetime/next_prev_spec.rb +30 -0
- data/spec/datetime/now_spec.rb +5 -0
- data/spec/datetime/parse_spec.rb +6 -0
- data/spec/datetime/parsing_spec.rb +11 -0
- data/spec/datetime/step_spec.rb +6 -0
- data/spec/datetime/strptime_spec.rb +6 -0
- data/spec/datetime/succ_spec.rb +5 -0
- data/spec/datetime/upto_spec.rb +6 -0
- metadata +4 -4
data/spec/datetime/succ_spec.rb
CHANGED
@@ -14,6 +14,11 @@ describe "DateTime#succ" do
|
|
14
14
|
ds.succ.should == DateTime.ordinal(2009, 1)
|
15
15
|
end
|
16
16
|
|
17
|
+
it "should keep the same class as the receiver" do
|
18
|
+
c = Class.new(DateTime)
|
19
|
+
c.jd.succ.should be_kind_of(c)
|
20
|
+
end
|
21
|
+
|
17
22
|
it "should be aliased as next" do
|
18
23
|
DateTime.civil(2008, 10, 11).next.should == DateTime.civil(2008, 10, 12)
|
19
24
|
end
|
data/spec/datetime/upto_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: home_run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 4
|
10
|
+
version: 0.9.4
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Jeremy Evans
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-18 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|