rethinkdb 2.3.0.0 → 2.3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shim.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cc46a96063b3b943304398afd307176d3847889
4
- data.tar.gz: e0f277c7d8ca4c0d7ac3405cad9c2fadb65d2026
3
+ metadata.gz: c799daec2b04b1c30653db1579049db1c9e70805
4
+ data.tar.gz: 7c46b4a31c0b6d423b6177f2aab49dc5621680a0
5
5
  SHA512:
6
- metadata.gz: 8c6fbddd6d2063eab25468fcedcab36c97f06fbca90bb8eaf55b5d0f22fcd99e36f6dc658e42963226c073696a066b7392b93717b5e82a0de3c08a707af41282
7
- data.tar.gz: 6827ef687ed5a9e09c61320a4bf6f77918403a155890c475f9d34279a8f455697fdce4069c69f3c4c4f0bd35d44974f9514607e799be2fbe7dc8f718d74f7447
6
+ metadata.gz: f6a9b1d0c335cae5a4f5c77ac5eb60938f2ebc20e83c6678c4f35951ca0e81d91fd988ddd9fa5d306988f75b5a9bb4c0da378a954cd239bf2de0cefaef8e9592
7
+ data.tar.gz: 54c32cc65fb989bdf23daf9522da5ec297e47da675c4d8e782750214e2836235ebc2216ddf15d0bb63b3984db2c1dd9b0691eb1d7a904bed23c70c491d28e7b4
@@ -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.to_f
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.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-04-06 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json