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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac15db6d3cd5ce15e820662e1df5048358c90234
4
- data.tar.gz: 31bd74fdff1ace3f17a6ffebdb27fb901e33bd30
3
+ metadata.gz: dc1df53ebcd9f15ddf913c586ce3580cebe192a9
4
+ data.tar.gz: 1ec52362be465e23ad6226c6048e876075e3564c
5
5
  SHA512:
6
- metadata.gz: b58b8e9916945a3df04942cfbf637e2618daf21dbf1cd37500990963a9ad561178b6e30d729ff694c1a5275e80e552952239a5cfc142d0da5a884f7c64e350d7
7
- data.tar.gz: a1e412ff5dd24c54ad4dfdfb77fd281dfe7b29a8e7f56e761fe7155c5fb6b2409e249474b441e19fce95015784de507fca2482248f4b86296a5259784d68609f
6
+ metadata.gz: 75b6df02855bb0488d0a42147210949814c3be497a91532cbe9adbd53560ef2c984afa5d4ffcaf7266b5c90c6fcfebcbc493e428690260f09a3fb9c80f4b5f5e
7
+ data.tar.gz: 3a03b9299174c34007491cc0ab98a7906e0841ef93b309786b1cc72fd4347a88c8719c704abd6805339c72bc1f3391ce32405d8ffb62905079eacf614a0ebbb9
@@ -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 + 1);
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);
@@ -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 */
@@ -1,3 +1,3 @@
1
1
  class Strptime
2
- VERSION = "0.2.0.beta1"
2
+ VERSION = "0.2.0.beta2"
3
3
  end
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.beta1
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.11
144
+ rubygems_version: 2.6.13
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: a fast strptime/strftime engine.