panko_serializer 0.5.4 → 0.5.5

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: b93420802033756fb2a0860184b80bedca36bcf8ab2acb1434a98117f60b9a63
4
- data.tar.gz: f48c61a0787fa56f3ac95cf943468b28528d24e718f9ca7c9d054d2dd2f4be0e
3
+ metadata.gz: 2c23ba8ef7190648e7834b7e62ac9a247dff9811cf3beeb707d84180057183cf
4
+ data.tar.gz: 07aeacaf51eb75a786062c25d2693c8a6e0aa79f124e07b7fa0a61cb33dc4ece
5
5
  SHA512:
6
- metadata.gz: 3fe061ec2f05881d5e9984af96f459e8a3acc6c427c5f7ecb8ece44b3683ce8ba07c4a078aadc2322fdf32f0f714c9451cb34af6e91af3b9b76941307d2bb1cb
7
- data.tar.gz: 812ffa7a72e371700330886a485785c2ccf3bf1bb298ce88a92b144cca5b14a7aaa89af866e4b77c270b466c7a22e23245ec4e7b1d6b9192e2e41deaea383809
6
+ metadata.gz: 6532cd66f7066bf4caf1ef839cccf5beae1f883b075521b81e8f991e335156188385dec21e48029927b6e8636bdcffc76b40893fbc10485eb1b74672531fdffc
7
+ data.tar.gz: cc616b33a30f1b8df44a87276f588f5697978edcdef2349797b9b05a10781eeaf1410af143666df2f87a4d670a7be2e913e99a2c3e0339b44d082428089ae366
@@ -98,7 +98,23 @@ VALUE iso_ar_iso_datetime_string(const char* value) {
98
98
 
99
99
  *cur++ = '.';
100
100
  if (value[19] == '.' && isdigit(value[20])) {
101
- append_region_str(value, &cur, 20, 23);
101
+ if(isdigit(value[20])) {
102
+ *cur++ = value[20];
103
+ } else {
104
+ *cur++ = '0';
105
+ }
106
+
107
+ if(isdigit(value[21])) {
108
+ *cur++ = value[21];
109
+ } else {
110
+ *cur++ = '0';
111
+ }
112
+
113
+ if(isdigit(value[22])) {
114
+ *cur++ = value[22];
115
+ } else {
116
+ *cur++ = '0';
117
+ }
102
118
  } else {
103
119
  *cur++ = '0';
104
120
  *cur++ = '0';
data/lib/panko/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panko
4
- VERSION = "0.5.4"
4
+ VERSION = "0.5.5"
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.4
4
+ version: 0.5.5
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-09-08 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj