home_run 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -1
- data/README.rdoc +9 -0
- data/ext/date_ext/date_ext.c +14 -10
- metadata +4 -4
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
|
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
|
|
data/README.rdoc
CHANGED
@@ -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
|
data/ext/date_ext/date_ext.c
CHANGED
@@ -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
|
-
|
4169
|
-
|
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
|
-
|
4174
|
-
|
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
|
-
|
4181
|
-
|
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);
|
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: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.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: 2011-
|
18
|
+
date: 2011-07-05 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|