protobuf-activerecord 3.5.0 → 3.5.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: 6ebddfb7f1a2b6a894d213d63cec1a179e69c88c
4
- data.tar.gz: 2ddf9cc3994a46fb2ec4c3118121be657faf7e2a
3
+ metadata.gz: 827bc732cf495b289b6580b9310b54d599d9a75b
4
+ data.tar.gz: 31fd6c04948278ca2d2cdcac5f7d6a0cfface6c8
5
5
  SHA512:
6
- metadata.gz: 4a5386b5374b38a42c3b507ff848c2afef0bea3d93ac3e8435e6c9863c87ff6fe1ef6bdf2c3d9ff7de7931b9735d92e0b673e268744140b28e23a733d7617ff9
7
- data.tar.gz: f17ccbe9174babd312ebb75d35ffb65f8aff1c31886e20420d5f314029a3febf258eb377bc995b12e7cdf9e9256286938994d63bf801b0b83676d1b666581b45
6
+ metadata.gz: 8fa7a80773a2071c3768b6dcfbd032d2cd2cae6e777fbf45563047a84c55cf3c6ded0ce861e1c0e8b1120a87abbdae00e6f1549579fc772ffcd39de7b81ea4d7
7
+ data.tar.gz: 432524aadcb200fbc52c2eeb099dd29020b197658c30c5257d1f99748924ef04672f278e5c3ec27b9cfd4d81fc5b9541a7c653e40ddabf9d863263a8074a853a
@@ -178,12 +178,14 @@ module Protobuf
178
178
  record = for_upsert(proto)
179
179
  record.assign_attributes(proto)
180
180
  record.save
181
+ record
181
182
  end
182
183
 
183
184
  def upsert!(proto)
184
185
  record = for_upsert(proto)
185
186
  record.assign_attributes(proto)
186
187
  record.save!
188
+ record
187
189
  end
188
190
  end
189
191
  end
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module ActiveRecord
3
- VERSION = "3.5.0"
3
+ VERSION = "3.5.1"
4
4
  end
5
5
  end
@@ -193,9 +193,9 @@ describe Protobuf::ActiveRecord::Scope do
193
193
  expect(::User.first.email).to eq("bar")
194
194
  end
195
195
 
196
- it "returns true when valid" do
196
+ it "returns a user" do
197
197
  result = ::User.upsert(proto)
198
- expect(result).to be true
198
+ expect(result).to be_a(::User)
199
199
  end
200
200
  end
201
201
  end
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.5.0
4
+ version: 3.5.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: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord