strptime 0.1.4-x86-mingw32 → 0.1.5-x86-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: 6f7b1cb22183f2133bf2d0e389754afe22aed9e3
|
4
|
+
data.tar.gz: 98d0ed4264aa2b9e5d66157278556188f7684b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e520a2d8cc939e87118849c8c16d83fd7236b43787df596da01170f7c5cbf3bf4dd6ba93b3e8495c8a01ab0ebf31431a082505c0b8330039ac4f62ee118b79
|
7
|
+
data.tar.gz: 05bdaf14041a6d677246a933e85fadb2fc2547682ac827483c6f114366185fbc742fa5f18127f14f1029475cf672d81b56bd3f69ce09a11a96c359027af74e7b
|
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: x86-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
|