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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '053874fed873f694a4525ede2afa0c173d56aab7fc40ea9ee3aba59285e0800d'
|
4
|
+
data.tar.gz: 29a90858a19efe07b053d8eb2c71faed57c00bcc36663d6dd988cba9e11c6ddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[
|
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);
|
data/lib/panko/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2018-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|