protobuf-mongoid 0.0.1 → 0.0.3
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 +4 -4
- data/lib/protobuf/mongoid/transformation.rb +5 -4
- data/lib/protobuf/mongoid/version.rb +2 -2
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a996e8b8a2fbd6461a166bcaa1fdec1fedd583dbc4f814f87140756e963927
|
4
|
+
data.tar.gz: c8d35303b64050be7eee2c2323d5cf184a4fc7033cd5fdc8d8f6162d26372b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8314a13c0d9c9f6509a878d2dcee616d61125c4d0cffba4b40100d0739c52746842f441dde1ed3cf4f3b502fb61d6e7366c42dc4eaf7c95dc781a79f37002b09
|
7
|
+
data.tar.gz: 42cf39521e0967303c1ae510f33e60f464cb34c8ef7a97a76edfbece11577fb4dfb4d8cc58cd5511cd175a6a986d6bda118bd59349ab0761df4b062da2916413
|
@@ -158,10 +158,11 @@ module Protobuf
|
|
158
158
|
hash
|
159
159
|
end
|
160
160
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
161
|
+
# Ensure attributes specified in the `nullify` field are set to nil
|
162
|
+
if proto.field?(:nullify) && proto.nullify.is_a?(Array)
|
163
|
+
proto.nullify.each do |attribute_name|
|
164
|
+
attributes[attribute_name.to_sym] = nil if attribute_fields.key?(attribute_name.to_sym)
|
165
|
+
end
|
165
166
|
end
|
166
167
|
|
167
168
|
attributes
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luilver Garces
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-protobuf
|
@@ -145,11 +144,10 @@ files:
|
|
145
144
|
- lib/protobuf/mongoid/transformer.rb
|
146
145
|
- lib/protobuf/mongoid/validations.rb
|
147
146
|
- lib/protobuf/mongoid/version.rb
|
148
|
-
homepage: https://github.com/
|
147
|
+
homepage: https://github.com/luilver/protobuf-mongoid
|
149
148
|
licenses:
|
150
149
|
- MIT
|
151
150
|
metadata: {}
|
152
|
-
post_install_message:
|
153
151
|
rdoc_options: []
|
154
152
|
require_paths:
|
155
153
|
- lib
|
@@ -157,15 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
155
|
requirements:
|
158
156
|
- - ">="
|
159
157
|
- !ruby/object:Gem::Version
|
160
|
-
version: 3.
|
158
|
+
version: 3.1.4
|
161
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
160
|
requirements:
|
163
161
|
- - ">="
|
164
162
|
- !ruby/object:Gem::Version
|
165
163
|
version: '0'
|
166
164
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
165
|
+
rubygems_version: 3.6.8
|
169
166
|
specification_version: 4
|
170
167
|
summary: A gem to integrate Protocol Buffers with Mongoid.
|
171
168
|
test_files: []
|