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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827bc732cf495b289b6580b9310b54d599d9a75b
|
4
|
+
data.tar.gz: 31fd6c04948278ca2d2cdcac5f7d6a0cfface6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
196
|
+
it "returns a user" do
|
197
197
|
result = ::User.upsert(proto)
|
198
|
-
expect(result).to
|
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.
|
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-
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|