panko_serializer 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: a6b6564ceb0042f812b605b237ac6b5311a320d2cf44445f34276c1747b6609c
4
- data.tar.gz: 9a52ca30b949c72abf36f8e7dbd891d196fbdb8cebd4fd569155fa55eb0d6263
3
+ metadata.gz: '053874fed873f694a4525ede2afa0c173d56aab7fc40ea9ee3aba59285e0800d'
4
+ data.tar.gz: 29a90858a19efe07b053d8eb2c71faed57c00bcc36663d6dd988cba9e11c6ddd
5
5
  SHA512:
6
- metadata.gz: 80bb72b9a46ad8bc30de021ac32b3167d3c2659f7dd37d06d3a60935ad3e9c3bc2538ab92497dd8bf834e74f76890be77aab18bc4a01afa7a79a634881e7e442
7
- data.tar.gz: 84330bd443f13277650d64444fb0270542eddf77cd559142a8ca10feb33d646049ac0f9b024072f403de7bb7878a2321ee2b6cc4948420f4e11654a3def31a65
6
+ metadata.gz: '097f9391d393bd62d14ac1d76788c6c0d122ddb08fd330570c6f20c4ec4b03b1293ec2639589ac68d77392b045d24e2b6870cb00f73d3828b718dbcae210b5a8'
7
+ data.tar.gz: 8ba23e6e885a8c273444046a7e52d2fc79041ecfa327e5cdf5d76f24f381102f59fc95e2459bc071b9519c280a69edd8e967ceefc92a8ec3e27672aa7c49376f
@@ -76,7 +76,7 @@ VALUE iso_ar_iso_datetime_string(const char* value) {
76
76
  is_iso_ar_iso_datetime_string_slow_case(value) == true) {
77
77
  volatile VALUE output;
78
78
 
79
- char buf[21] = "";
79
+ char buf[24] = "";
80
80
  char* cur = buf;
81
81
 
82
82
  append_region_str(value, &cur, 0, 4);
@@ -95,6 +95,15 @@ VALUE iso_ar_iso_datetime_string(const char* value) {
95
95
  *cur++ = ':';
96
96
 
97
97
  append_region_str(value, &cur, 17, 19);
98
+
99
+ *cur++ = '.';
100
+ if (value[19] == '.' && isdigit(value[20])) {
101
+ append_region_str(value, &cur, 20, 23);
102
+ } else {
103
+ *cur++ = '0';
104
+ *cur++ = '0';
105
+ *cur++ = '0';
106
+ }
98
107
  *cur++ = 'Z';
99
108
 
100
109
  output = rb_str_new(buf, cur - buf);
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panko
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panko_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yosi Attias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-25 00:00:00.000000000 Z
11
+ date: 2018-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj