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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3eaa9827214634c3985484dca11834c0288c65b6
4
- data.tar.gz: 6a3769f03aa79783665d121beec764602e757cc5
3
+ metadata.gz: f14b003f4b8844cbf672f61a08d6bd36ec00bc6e
4
+ data.tar.gz: d862294a20c9f82abc4ebc2ed3894c44df65d5d3
5
5
  SHA512:
6
- metadata.gz: 86a7767fcaf1fada9c34f9e15fdc7720c0d667e5d179c381a4ff16fa1c2ada326c18dd4f1efef1c2bd334926efb14cc364bb6ac706d70fbda2d9fa0fd498b864
7
- data.tar.gz: e78500aa971d5f13bd928a93b26514b6beacb8d330b57584c9ff1a459c3154dc834bb35f40d56b3723129f6067a792407496dda37cb6b7ed59f3cd1d840e195d
6
+ metadata.gz: 9255de76aef38d840a2c93d3c8fd6dcc5c9e38b99f377f1d1573c871003b0ebcd5a9e1d10171501a843b3baf6f8ed906c3c1a9a6ee290d7cde4526eaae012fb2
7
+ data.tar.gz: 290c6de4a78e4f111a3c8a3c045ca3a17386ca5e3e475063397d86c9f3a70459505ba6c3ca59ee293cee984209901512af1861e8f7da35c22a1844a0d34a51f0
@@ -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: x64-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