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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2260745fbe961d13d65d38b533dec6e04d7395f
4
- data.tar.gz: e3fa5cce9a3317d19447d7a40c56768c3fcd1666
3
+ metadata.gz: 6f7b1cb22183f2133bf2d0e389754afe22aed9e3
4
+ data.tar.gz: 98d0ed4264aa2b9e5d66157278556188f7684b78
5
5
  SHA512:
6
- metadata.gz: d79e3c9f9fb8996d90a32223e6644ba60ce791b461f5f7ca8b897e38c448a47b1dc39f380034ea400a69a70fa8f674064125f4562bbd264826242ce7a8539fef
7
- data.tar.gz: 835b04f110a8ae3e33107b47afc6c355bf08a6588a59c973e9545ff52b4255a45ee4a9fdbb5faf02af767fae2f1e693bb07424aebba14e288bc17379c7bd8db7
6
+ metadata.gz: a9e520a2d8cc939e87118849c8c16d83fd7236b43787df596da01170f7c5cbf3bf4dd6ba93b3e8495c8a01ab0ebf31431a082505c0b8330039ac4f62ee118b79
7
+ data.tar.gz: 05bdaf14041a6d677246a933e85fadb2fc2547682ac827483c6f114366185fbc742fa5f18127f14f1029475cf672d81b56bd3f69ce09a11a96c359027af74e7b
@@ -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) {
@@ -1,3 +1,3 @@
1
1
  class Strptime
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-10-13 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler