home_run 1.0.2-x86-mswin32-60 → 1.0.3-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.3 (2011-07-05)
2
+
3
+ * Work around segfault in rb_ary_push during extension initialization (jeremyevans)
4
+
1
5
  === 1.0.2 (2011-03-18)
2
6
 
3
7
  * Support fractional timestamps in the ISO date parser (funny-falcon)
@@ -12,7 +16,7 @@
12
16
 
13
17
  === 1.0.0 (2011-02-01)
14
18
 
15
- * Define the ZONES hash in ruby to work around probably interpreter bug (jeremyevans)
19
+ * Define the ZONES hash in ruby to work around probable interpreter bug (jeremyevans)
16
20
 
17
21
  === 0.9.4 (2010-10-18)
18
22
 
@@ -116,6 +116,15 @@ easily use this library. If you need to do this and you are using
116
116
  Rails 3, make sure you require home_run before rails/all in
117
117
  config/application.rb.
118
118
 
119
+ == Usage with bundler
120
+
121
+ Use the following in your Gemfile:
122
+
123
+ gem 'home_run', :require=>'date'
124
+
125
+ You need the :require option because otherwise it will require
126
+ 'home_run', which can lead to problems.
127
+
119
128
  == Running the specs
120
129
 
121
130
  You can run the rubyspec based specs after installing the gem, if
@@ -4011,6 +4011,10 @@ static VALUE rhrd_s_valid_time_q(VALUE klass, VALUE rh, VALUE rm, VALUE rs) {
4011
4011
  * */
4012
4012
  void Init_date_ext(void) {
4013
4013
  int i;
4014
+ VALUE monthnames[13];
4015
+ VALUE abbr_monthnames[13];
4016
+ VALUE daynames[7];
4017
+ VALUE abbr_daynames[7];
4014
4018
 
4015
4019
  /* Setup static IDs and symbols */
4016
4020
 
@@ -4165,21 +4169,21 @@ void Init_date_ext(void) {
4165
4169
 
4166
4170
  /* Setup static constants */
4167
4171
 
4168
- rhrd_monthnames = rb_ary_new2(13);
4169
- rhrd_abbr_monthnames = rb_ary_new2(13);
4170
- rb_ary_push(rhrd_monthnames, Qnil);
4171
- rb_ary_push(rhrd_abbr_monthnames, Qnil);
4172
+ monthnames[0] = Qnil;
4173
+ abbr_monthnames[0] = Qnil;
4172
4174
  for(i = 1; i < 13; i++) {
4173
- rb_ary_push(rhrd_monthnames, rb_str_new2((const char *)rhrd__month_names[i]));
4174
- rb_ary_push(rhrd_abbr_monthnames, rb_str_new2(rhrd__abbr_month_names[i]));
4175
+ monthnames[i] = rb_str_new2((const char *)rhrd__month_names[i]);
4176
+ abbr_monthnames[i] = rb_str_new2(rhrd__abbr_month_names[i]);
4175
4177
  }
4178
+ rhrd_monthnames = rb_ary_new4(13, monthnames);
4179
+ rhrd_abbr_monthnames = rb_ary_new4(13, abbr_monthnames);
4176
4180
 
4177
- rhrd_daynames = rb_ary_new2(7);
4178
- rhrd_abbr_daynames = rb_ary_new2(7);
4179
4181
  for(i = 0; i < 7; i++) {
4180
- rb_ary_push(rhrd_daynames, rb_str_new2(rhrd__day_names[i]));
4181
- rb_ary_push(rhrd_abbr_daynames, rb_str_new2(rhrd__abbr_day_names[i]));
4182
+ daynames[i] = rb_str_new2(rhrd__day_names[i]);
4183
+ abbr_daynames[i] = rb_str_new2(rhrd__abbr_day_names[i]);
4182
4184
  }
4185
+ rhrd_daynames = rb_ary_new4(7, daynames);
4186
+ rhrd_abbr_daynames = rb_ary_new4(7, abbr_daynames);
4183
4187
 
4184
4188
  rhrd_start_num = LONG2NUM(RHR_JD_MIN - 1);
4185
4189
  rhrd_empty_string = rb_str_new("", 0);
Binary file
Binary file
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: x86-mswin32-60
12
12
  authors:
13
13
  - Jeremy Evans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-18 00:00:00 -07:00
18
+ date: 2011-07-05 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -40,86 +40,86 @@ files:
40
40
  - Rakefile
41
41
  - default.mspec
42
42
  - bin/home_run
43
+ - lib/date.rb
43
44
  - lib/date/format.rb
44
45
  - lib/home_run.rb
45
- - lib/date.rb
46
46
  - ext/date_ext/date_ext.c
47
47
  - ext/date_ext/date_parser.c
48
48
  - ext/date_ext/datetime.c
49
49
  - ext/date_ext/date_ext.h
50
50
  - ext/date_ext/extconf.rb
51
51
  - ext/date_ext/date_parser.rl
52
- - spec/date/limits_spec.rb
53
- - spec/date/strptime_spec.rb
54
- - spec/date/next_prev_spec.rb
55
- - spec/date/downto_spec.rb
56
- - spec/date/dup_spec.rb
57
- - spec/date/leap_spec.rb
58
- - spec/date/minus_spec.rb
59
- - spec/date/minus_month_spec.rb
60
- - spec/date/encoding_spec.rb
61
- - spec/date/format_spec.rb
52
+ - spec/datetime/add_month_spec.rb
53
+ - spec/datetime/relationship_spec.rb
54
+ - spec/datetime/minus_spec.rb
55
+ - spec/datetime/downto_spec.rb
56
+ - spec/datetime/upto_spec.rb
57
+ - spec/datetime/day_spec.rb
58
+ - spec/datetime/step_spec.rb
59
+ - spec/datetime/accessor_spec.rb
60
+ - spec/datetime/next_prev_spec.rb
61
+ - spec/datetime/minus_month_spec.rb
62
+ - spec/datetime/hash_spec.rb
63
+ - spec/datetime/clone_spec.rb
64
+ - spec/datetime/now_spec.rb
65
+ - spec/datetime/eql_spec.rb
66
+ - spec/datetime/limits_spec.rb
67
+ - spec/datetime/conversions_spec.rb
68
+ - spec/datetime/parse_spec.rb
69
+ - spec/datetime/leap_spec.rb
70
+ - spec/datetime/allocate_spec.rb
71
+ - spec/datetime/constructor_spec.rb
72
+ - spec/datetime/strftime_spec.rb
73
+ - spec/datetime/add_spec.rb
74
+ - spec/datetime/boat_spec.rb
75
+ - spec/datetime/format_spec.rb
76
+ - spec/datetime/parsing_spec.rb
77
+ - spec/datetime/dup_spec.rb
78
+ - spec/datetime/strptime_spec.rb
79
+ - spec/datetime/succ_spec.rb
80
+ - spec/datetime/encoding_spec.rb
81
+ - spec/date/ordinal_spec.rb
62
82
  - spec/date/add_month_spec.rb
63
- - spec/date/add_spec.rb
64
- - spec/date/eql_spec.rb
65
83
  - spec/date/relationship_spec.rb
66
- - spec/date/clone_spec.rb
67
- - spec/date/gregorian_spec.rb
68
- - spec/date/parse_spec.rb
69
- - spec/date/day_spec.rb
70
- - spec/date/julian_spec.rb
71
- - spec/date/parsing_spec.rb
72
- - spec/date/accessor_spec.rb
84
+ - spec/date/today_spec.rb
85
+ - spec/date/minus_spec.rb
86
+ - spec/date/downto_spec.rb
73
87
  - spec/date/upto_spec.rb
88
+ - spec/date/day_spec.rb
74
89
  - spec/date/step_spec.rb
90
+ - spec/date/accessor_spec.rb
91
+ - spec/date/next_prev_spec.rb
92
+ - spec/date/minus_month_spec.rb
93
+ - spec/date/hash_spec.rb
94
+ - spec/date/julian_spec.rb
95
+ - spec/date/clone_spec.rb
96
+ - spec/date/eql_spec.rb
75
97
  - spec/date/commercial_spec.rb
76
- - spec/date/boat_spec.rb
77
- - spec/date/succ_spec.rb
98
+ - spec/date/limits_spec.rb
78
99
  - spec/date/conversions_spec.rb
79
- - spec/date/civil_spec.rb
80
- - spec/date/hash_spec.rb
100
+ - spec/date/parse_spec.rb
101
+ - spec/date/leap_spec.rb
81
102
  - spec/date/allocate_spec.rb
82
- - spec/date/constants_spec.rb
83
- - spec/date/today_spec.rb
84
- - spec/date/ordinal_spec.rb
85
103
  - spec/date/strftime_spec.rb
86
- - spec/datetime/limits_spec.rb
87
- - spec/datetime/strptime_spec.rb
88
- - spec/datetime/next_prev_spec.rb
89
- - spec/datetime/downto_spec.rb
90
- - spec/datetime/dup_spec.rb
91
- - spec/datetime/leap_spec.rb
92
- - spec/datetime/minus_spec.rb
93
- - spec/datetime/minus_month_spec.rb
94
- - spec/datetime/encoding_spec.rb
95
- - spec/datetime/format_spec.rb
96
- - spec/datetime/add_month_spec.rb
97
- - spec/datetime/add_spec.rb
98
- - spec/datetime/eql_spec.rb
99
- - spec/datetime/relationship_spec.rb
100
- - spec/datetime/constructor_spec.rb
101
- - spec/datetime/clone_spec.rb
102
- - spec/datetime/now_spec.rb
103
- - spec/datetime/parse_spec.rb
104
- - spec/datetime/day_spec.rb
105
- - spec/datetime/parsing_spec.rb
106
- - spec/datetime/accessor_spec.rb
107
- - spec/datetime/upto_spec.rb
108
- - spec/datetime/step_spec.rb
109
- - spec/datetime/boat_spec.rb
110
- - spec/datetime/succ_spec.rb
111
- - spec/datetime/conversions_spec.rb
112
- - spec/datetime/hash_spec.rb
113
- - spec/datetime/allocate_spec.rb
114
- - spec/datetime/strftime_spec.rb
104
+ - spec/date/add_spec.rb
105
+ - spec/date/constants_spec.rb
106
+ - spec/date/boat_spec.rb
107
+ - spec/date/format_spec.rb
108
+ - spec/date/parsing_spec.rb
109
+ - spec/date/gregorian_spec.rb
110
+ - spec/date/civil_spec.rb
111
+ - spec/date/dup_spec.rb
112
+ - spec/date/strptime_spec.rb
113
+ - spec/date/succ_spec.rb
114
+ - spec/date/encoding_spec.rb
115
115
  - spec/spec_helper.rb
116
- - bench/dt_mem_bench.rb
117
- - bench/garbage_bench.rb
118
- - bench/cpu_bench.rb
119
- - bench/dt_garbage_bench.rb
116
+ - bench/cpu_bench_util.rb
120
117
  - bench/mem_bench.rb
118
+ - bench/cpu_bench.rb
119
+ - bench/dt_mem_bench.rb
121
120
  - bench/parser_bench.rb
122
- - bench/cpu_bench_util.rb
121
+ - bench/dt_garbage_bench.rb
122
+ - bench/garbage_bench.rb
123
123
  - lib/1.8/date_ext.so
124
124
  - lib/1.9/date_ext.so
125
125
  has_rdoc: true