home_run 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +4 -0
  2. data/ext/date_ext/datetime.c +3 -1
  3. metadata +4 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.9.3 (2010-09-20)
2
+
3
+ * Don't attempt to undefine already undefined method if you require date_ext twice with two different paths (jeremyevans)
4
+
1
5
  === 0.9.2 (2010-09-13)
2
6
 
3
7
  * Make DateTime#sec_fraction on ruby 1.9 to be compatible with 1.9 stdlib (jeremyevans)
@@ -2744,7 +2744,9 @@ void Init_datetime(void) {
2744
2744
 
2745
2745
  /* Define methods for all ruby versions*/
2746
2746
 
2747
- rb_undef(rhrdt_s_class, rb_intern("today"));
2747
+ if(rb_respond_to(rhrdt_class, rb_intern("today"))) {
2748
+ rb_undef(rhrdt_s_class, rb_intern("today"));
2749
+ }
2748
2750
  rb_define_method(rhrdt_s_class, "_load", rhrdt_s__load, 1);
2749
2751
  rb_define_method(rhrdt_s_class, "_strptime", rhrdt_s__strptime, -1);
2750
2752
  rb_define_method(rhrdt_s_class, "civil", rhrdt_s_civil, -1);
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: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
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-12 00:00:00 -07:00
18
+ date: 2010-09-20 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21