strptime 0.2.0.beta1 → 0.2.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/strptime/strftime.c +1 -1
- data/ext/strptime/strptime.h +11 -0
- data/lib/strptime/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc1df53ebcd9f15ddf913c586ce3580cebe192a9
|
4
|
+
data.tar.gz: 1ec52362be465e23ad6226c6048e876075e3564c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75b6df02855bb0488d0a42147210949814c3be497a91532cbe9adbd53560ef2c984afa5d4ffcaf7266b5c90c6fcfebcbc493e428690260f09a3fb9c80f4b5f5e
|
7
|
+
data.tar.gz: 3a03b9299174c34007491cc0ab98a7906e0841ef93b309786b1cc72fd4347a88c8719c704abd6805339c72bc1f3391ce32405d8ffb62905079eacf614a0ebbb9
|
data/ext/strptime/strftime.c
CHANGED
@@ -71,7 +71,7 @@ strftime_exec0(void **pc, VALUE fmt, struct timespec *tsp, int gmtoff, size_t re
|
|
71
71
|
return Qnil;
|
72
72
|
}
|
73
73
|
|
74
|
-
result = rb_str_new(NULL, result_length
|
74
|
+
result = rb_str_new(NULL, result_length);
|
75
75
|
p = RSTRING_PTR(result);
|
76
76
|
|
77
77
|
rb_gmtime_r(&tsp->tv_sec, &tm);
|
data/ext/strptime/strptime.h
CHANGED
@@ -15,4 +15,15 @@ void tm_add_offset(struct tm *tm, long diff);
|
|
15
15
|
struct tm *rb_gmtime_r(const time_t *t, struct tm *result);
|
16
16
|
void Init_strftime(void);
|
17
17
|
|
18
|
+
#ifndef RB_INTEGER_TYPE_P
|
19
|
+
#define RB_INTEGER_TYPE_P(obj) rb_integer_type_p(obj)
|
20
|
+
static inline int
|
21
|
+
rb_integer_type_p(VALUE obj)
|
22
|
+
{
|
23
|
+
return (FIXNUM_P(obj) ||
|
24
|
+
(!SPECIAL_CONST_P(obj) &&
|
25
|
+
BUILTIN_TYPE(obj) == RUBY_T_BIGNUM));
|
26
|
+
}
|
27
|
+
#endif
|
28
|
+
|
18
29
|
#endif /* STRPTIME_H */
|
data/lib/strptime/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE, Yui
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: 1.3.1
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6.
|
144
|
+
rubygems_version: 2.6.13
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: a fast strptime/strftime engine.
|