rethinkdb 2.3.0.0 → 2.3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/shim.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c799daec2b04b1c30653db1579049db1c9e70805
|
|
4
|
+
data.tar.gz: 7c46b4a31c0b6d423b6177f2aab49dc5621680a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6a9b1d0c335cae5a4f5c77ac5eb60938f2ebc20e83c6678c4f35951ca0e81d91fd988ddd9fa5d306988f75b5a9bb4c0da378a954cd239bf2de0cefaef8e9592
|
|
7
|
+
data.tar.gz: 54c32cc65fb989bdf23daf9522da5ec297e47da675c4d8e782750214e2836235ebc2216ddf15d0bb63b3984db2c1dd9b0691eb1d7a904bed23c70c491d28e7b4
|
data/lib/shim.rb
CHANGED
|
@@ -22,7 +22,7 @@ module RethinkDB
|
|
|
22
22
|
case x
|
|
23
23
|
when Hash
|
|
24
24
|
if parse_time && x['$reql_type$'] == 'TIME'
|
|
25
|
-
t = Time.at(x['epoch_time'])
|
|
25
|
+
t = Time.at((x['epoch_time'] * 1000).to_i / 1000.0)
|
|
26
26
|
tz = x['timezone']
|
|
27
27
|
return (tz && tz != "" && tz != "Z") ? t.getlocal(tz) : t.utc
|
|
28
28
|
elsif parse_group && x['$reql_type$'] == 'GROUPED_DATA'
|
|
@@ -135,7 +135,7 @@ module RethinkDB
|
|
|
135
135
|
when TrueClass then RQL.new(x)
|
|
136
136
|
when NilClass then RQL.new(x)
|
|
137
137
|
when Time then
|
|
138
|
-
epoch_time = x.
|
|
138
|
+
epoch_time = (x.to_r * 1000).to_i / 1000.0
|
|
139
139
|
offset = x.utc_offset
|
|
140
140
|
raw_offset = offset.abs
|
|
141
141
|
raw_hours = raw_offset / 3600
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rethinkdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.0.
|
|
4
|
+
version: 2.3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RethinkDB Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|