protobuf-activerecord 3.3.0 → 3.3.1

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
  SHA1:
3
- metadata.gz: 199e64b43cb1b81008ac6b34da4141f4657bfcd9
4
- data.tar.gz: 2e8291702c65ade44ad9eb2e8ff5b056d5e03b97
3
+ metadata.gz: 83d490440de55e5f819bad525efef1571449f9f0
4
+ data.tar.gz: 7f1048b2c82821f5646c61c0332797c2dc4d6cb5
5
5
  SHA512:
6
- metadata.gz: e26afd09e666fcbcbe940c576e0fb2ba5205eb1ca37def8a8eed16d15db3c1f556ced283bc4496b6f4572ddc226b7f815f821c3c67cd98f65f437c28269ab03a
7
- data.tar.gz: 26290cb0c1b2a2781206966c171e754bd4260a799083f636544f8baee1525dc045010e0d5c5f0d90df4414a8a0a314688a0cbca4c7ddc08bc6f692ed4dedf2a4
6
+ metadata.gz: 0dcd9ec4c112cff39b1eb6996d2509ae1a3b07ec10d4b3ed0ffaf67921bd02b699e715053013e37687f7823e0fcfca2e57a762e816103d09c7ce3cdf63ba1afc
7
+ data.tar.gz: 62848e072057f8f64c875529f50927381d4917d3c034e248caa509f3a037ee13b4742d5fc3962a52ba8a38a339986704245469dd8bd96629bde525b2c2920646
@@ -25,7 +25,7 @@ module Protobuf
25
25
  when value.nil? then
26
26
  value
27
27
  when _protobuf_date_column?(key) then
28
- value.to_time.to_i
28
+ value.to_time(:utc).to_i
29
29
  when _protobuf_datetime_column?(key) then
30
30
  value.to_i
31
31
  when _protobuf_time_column?(key) then
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module ActiveRecord
3
- VERSION = "3.3.0"
3
+ VERSION = "3.3.1"
4
4
  end
5
5
  end
@@ -10,8 +10,8 @@ describe Protobuf::ActiveRecord::Serialization do
10
10
 
11
11
  describe "._protobuf_convert_attributes_to_fields" do
12
12
  context "when the column type is :date" do
13
- let(:date) { Date.current }
14
- let(:integer) { date.to_time.to_i }
13
+ let(:date) { Date.new(2015, 10, 1) }
14
+ let(:integer) { 1_443_657_600 }
15
15
 
16
16
  before { allow(User).to receive(:_protobuf_date_column?).and_return(true) }
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hutchison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord