protobuf-activerecord 6.0.0 → 6.1.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec09901cba008bbf89ef4ea81401c104661359dc974a8aa4b8413da0e2744c6d
|
4
|
+
data.tar.gz: 6665b1360ce3d1df807a0322af6e87e2bac403157b168149395659d955b7c1a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f4269f4137ee3aea4be82a6cac317e60a379f2e346eb503148434b9642a7d8e903b83d23a4cad92344d36f6efbd77c5b088363079904712c70516946e93202d
|
7
|
+
data.tar.gz: b611acfd204df5d73772ce5d95b6b19afe4a301456f426693aa7467fc791b7c48d6c7e1d04a9c5b80431426f819b9a5c7ff3ac19f09807244877c9fc4a922a70
|
@@ -50,20 +50,6 @@ module Protobuf
|
|
50
50
|
|
51
51
|
super(attributes)
|
52
52
|
end
|
53
|
-
|
54
|
-
# :nodoc:
|
55
|
-
def update_attributes(attributes)
|
56
|
-
attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
|
57
|
-
|
58
|
-
super(attributes)
|
59
|
-
end
|
60
|
-
|
61
|
-
# :nodoc:
|
62
|
-
def update_attributes!(attributes)
|
63
|
-
attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
|
64
|
-
|
65
|
-
super(attributes)
|
66
|
-
end
|
67
53
|
end
|
68
54
|
end
|
69
55
|
end
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
##
|
23
23
|
# Dependencies
|
24
24
|
#
|
25
|
-
spec.add_dependency "activerecord", "~> 6.
|
26
|
-
spec.add_dependency "activesupport", "~> 6.
|
25
|
+
spec.add_dependency "activerecord", "~> 6.1.0"
|
26
|
+
spec.add_dependency "activesupport", "~> 6.1.0"
|
27
27
|
spec.add_dependency "concurrent-ruby"
|
28
28
|
spec.add_dependency "heredity", ">= 0.1.1"
|
29
29
|
spec.add_dependency "protobuf", ">= 3.0"
|
@@ -44,30 +44,6 @@ describe Protobuf::ActiveRecord::Persistence do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe "#update_attributes" do
|
48
|
-
it "accepts a protobuf message" do
|
49
|
-
expect_any_instance_of(User).to receive(:save)
|
50
|
-
user.update_attributes(proto)
|
51
|
-
end
|
52
|
-
|
53
|
-
it "accepts a hash" do
|
54
|
-
expect_any_instance_of(User).to receive(:save)
|
55
|
-
user.update_attributes(user_attributes)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe "#update_attributes!" do
|
60
|
-
it "accepts a protobuf message" do
|
61
|
-
expect_any_instance_of(User).to receive(:save!)
|
62
|
-
user.update_attributes!(proto)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "accepts a hash" do
|
66
|
-
expect_any_instance_of(User).to receive(:save!)
|
67
|
-
user.update_attributes!(user_attributes)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
47
|
describe "#update" do
|
72
48
|
it "accepts a protobuf message" do
|
73
49
|
expect_any_instance_of(User).to receive(:save)
|
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: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.
|
19
|
+
version: 6.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.
|
26
|
+
version: 6.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.
|
33
|
+
version: 6.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 6.
|
40
|
+
version: 6.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: concurrent-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,7 +260,7 @@ homepage: http://github.com/liveh2o/protobuf-activerecord
|
|
260
260
|
licenses:
|
261
261
|
- MIT
|
262
262
|
metadata: {}
|
263
|
-
post_install_message:
|
263
|
+
post_install_message:
|
264
264
|
rdoc_options: []
|
265
265
|
require_paths:
|
266
266
|
- lib
|
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
278
|
rubygems_version: 3.1.2
|
279
|
-
signing_key:
|
279
|
+
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: Google Protocol Buffers integration for Active Record
|
282
282
|
test_files:
|