protip 0.37.2 → 0.37.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d010e3d7a78b3076d582268c6063a013f5e655be47df960e7bd3c6dc2a3648f
|
4
|
+
data.tar.gz: 410bb8efa7a0247cfb711294fbfe81430d4613b6d3db4ad87a058d104dd23b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9291b70cfca2e4547f3d5af96562d27e5bcc7a003ffee03b6ebb6be80944a4508b423e4461024e59429d3fdd18559694f278434f2b243b9fc5bc58c3271c4f
|
7
|
+
data.tar.gz: 41b9164b5f37b18edfa12cc88ecfd0c2fb71c5a19f70507415f6be9871e19d58fd796635ab6a4771e1ee60a2a3acb0f7e65a5c6494cf9440a68addc3ac54c754
|
data/lib/protip/resource.rb
CHANGED
@@ -235,7 +235,7 @@ module Protip
|
|
235
235
|
end
|
236
236
|
|
237
237
|
def belongs_to(association_name, options = {})
|
238
|
-
association = ::Protip::Resource::Associations::BelongsToAssociation.new(self, association_name, options)
|
238
|
+
association = ::Protip::Resource::Associations::BelongsToAssociation.new(self, association_name, **options)
|
239
239
|
association.define_accessors!
|
240
240
|
@belongs_to_associations.add association
|
241
241
|
association
|
@@ -260,7 +260,7 @@ module Protip
|
|
260
260
|
nested_association_creator.instance_eval(&block)
|
261
261
|
|
262
262
|
association = ::Protip::Resource::Associations::BelongsToPolymorphicAssociation.new self,
|
263
|
-
association_name, nested_association_creator.associations, options
|
263
|
+
association_name, nested_association_creator.associations, **options
|
264
264
|
association.define_accessors!
|
265
265
|
@belongs_to_polymorphic_associations.add association
|
266
266
|
association
|
@@ -22,7 +22,7 @@ namespace :protip do
|
|
22
22
|
package_match = File.read(filename).match(/package "?([a-zA-Z0-9\.]+)"?;/)
|
23
23
|
package = (package_match ? package_match[1] : nil)
|
24
24
|
ruby_file = filename.gsub(/^#{proto_path.first}\/?/, "#{ruby_path}/").gsub(/\.proto$/, '_pb.rb') # Relies on a relative filename and proto path, which protoc requires anyway at this point
|
25
|
-
raise "cannot find generated Ruby file (#{ruby_file})" unless File.
|
25
|
+
raise "cannot find generated Ruby file (#{ruby_file})" unless File.exist?(ruby_file)
|
26
26
|
|
27
27
|
# Push/pop message names as we move through the protobuf file
|
28
28
|
message_name_stack = []
|
data/lib/protip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.37.
|
4
|
+
version: 0.37.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AngelList
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|