strptime 0.1.4-x64-mingw32 → 0.1.5-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/strptime/strptime.c +3 -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: f14b003f4b8844cbf672f61a08d6bd36ec00bc6e
|
4
|
+
data.tar.gz: d862294a20c9f82abc4ebc2ed3894c44df65d5d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9255de76aef38d840a2c93d3c8fd6dcc5c9e38b99f377f1d1573c871003b0ebcd5a9e1d10171501a843b3baf6f8ed906c3c1a9a6ee290d7cde4526eaae012fb2
|
7
|
+
data.tar.gz: 290c6de4a78e4f111a3c8a3c045ca3a17386ca5e3e475063397d86c9f3a70459505ba6c3ca59ee293cee984209901512af1861e8f7da35c22a1844a0d34a51f0
|
data/ext/strptime/strptime.c
CHANGED
@@ -355,6 +355,8 @@ strptime_exec0(void **pc, const char *fmt, const char *str, size_t slen,
|
|
355
355
|
}
|
356
356
|
INSN_ENTRY(y)
|
357
357
|
{
|
358
|
+
READ_DIGITS(year, 2);
|
359
|
+
year += year < 69 ? 2000 : 1900;
|
358
360
|
ADD_PC(1);
|
359
361
|
END_INSN(y)
|
360
362
|
}
|
@@ -510,6 +512,7 @@ strptime_compile(const char *fmt, size_t flen)
|
|
510
512
|
case 'h':
|
511
513
|
case 'm':
|
512
514
|
case 'n':
|
515
|
+
case 'y':
|
513
516
|
case 'z':
|
514
517
|
tmp = insns_address_table[c - 'A'];
|
515
518
|
if (tmp) {
|
data/lib/strptime/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- NARUSE, Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|