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.
Files changed (40) hide show
  1. data/CHANGELOG +4 -0
  2. data/README.rdoc +0 -1
  3. data/ext/date_ext/date_ext.c +192 -191
  4. data/ext/date_ext/datetime.c +12 -11
  5. data/lib/1.8/date_ext.so +0 -0
  6. data/lib/1.9/date_ext.so +0 -0
  7. data/spec/date/add_month_spec.rb +5 -0
  8. data/spec/date/add_spec.rb +5 -0
  9. data/spec/date/civil_spec.rb +5 -1
  10. data/spec/date/commercial_spec.rb +5 -0
  11. data/spec/date/conversions_spec.rb +10 -0
  12. data/spec/date/downto_spec.rb +6 -0
  13. data/spec/date/julian_spec.rb +10 -0
  14. data/spec/date/minus_month_spec.rb +5 -0
  15. data/spec/date/minus_spec.rb +5 -0
  16. data/spec/date/next_prev_spec.rb +30 -1
  17. data/spec/date/ordinal_spec.rb +5 -0
  18. data/spec/date/parse_spec.rb +6 -0
  19. data/spec/date/parsing_spec.rb +11 -0
  20. data/spec/date/step_spec.rb +6 -0
  21. data/spec/date/strptime_spec.rb +6 -0
  22. data/spec/date/succ_spec.rb +5 -0
  23. data/spec/date/today_spec.rb +5 -0
  24. data/spec/date/upto_spec.rb +7 -0
  25. data/spec/datetime/add_month_spec.rb +5 -0
  26. data/spec/datetime/add_spec.rb +5 -0
  27. data/spec/datetime/constructor_spec.rb +10 -0
  28. data/spec/datetime/conversions_spec.rb +5 -0
  29. data/spec/datetime/downto_spec.rb +6 -0
  30. data/spec/datetime/minus_month_spec.rb +5 -2
  31. data/spec/datetime/minus_spec.rb +5 -0
  32. data/spec/datetime/next_prev_spec.rb +30 -0
  33. data/spec/datetime/now_spec.rb +5 -0
  34. data/spec/datetime/parse_spec.rb +6 -0
  35. data/spec/datetime/parsing_spec.rb +11 -0
  36. data/spec/datetime/step_spec.rb +6 -0
  37. data/spec/datetime/strptime_spec.rb +6 -0
  38. data/spec/datetime/succ_spec.rb +5 -0
  39. data/spec/datetime/upto_spec.rb +6 -0
  40. metadata +4 -4
@@ -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
@@ -36,4 +36,10 @@ describe "DateTime#upto" do
36
36
  count.should == 13
37
37
  end
38
38
 
39
+ it "should keep the same class as the receiver" do
40
+ c = Class.new(DateTime)
41
+ c.jd.upto(c.jd + 2) do |d|
42
+ d.should be_kind_of(c)
43
+ end.should be_kind_of(c)
44
+ end
39
45
  end
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: 61
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 3
10
- version: 0.9.3
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-09-20 00:00:00 -07:00
18
+ date: 2010-10-18 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21