croods 0.2.8 → 0.2.9

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: c224eb3b5f12d9dec7be94dfa54f052ecdb147e2db3d4b258bc364423da7f935
4
- data.tar.gz: 5543378384bb3d38987f93a49cbd2c31759fd098417ee56449987a36a0e649d0
3
+ metadata.gz: c48ff1f8f4575752544cd790c77fe2c9b3ad1986ce56198d4ff552e701043d3b
4
+ data.tar.gz: fe604e9c23a6bbb90890d7056d7c835ae33ac6dad8c63db1151d121f60b13c4a
5
5
  SHA512:
6
- metadata.gz: 4694b6e09ff03c4110fc5031f2ddf51da0923330a3a58ee9f79b52cd36190a87e32a39787164c1db2b96fb5dc44605d7233df24274bb228e478daab004be697b
7
- data.tar.gz: 6d20d856d3abcb11b71c4a511f43d6bbbed01aeaa110879af56c142cffae0ee26ea07473886254d9d9f9eed935118f4c28e93b8322c8ae1b9d80c9d64db87108
6
+ metadata.gz: bab3bfec3298e879dd7d7f1c10c2d65b9b40e51ba5af0d42937d9c8687daf847ceb1004d561dc0faa7ad45fb86296324c992a48a342e906cd3316710f4dd6416
7
+ data.tar.gz: ba23108357cd2bd5de0969c605db9262f363a4231a9aa9b70e17a47373e427d5ae3af454577e6e67f6b42cb129ff25d27ba682be02111c2931a299e93d529b52
data/README.md CHANGED
@@ -130,15 +130,13 @@ use_for_authentication!(
130
130
  ## Contributing
131
131
 
132
132
  You can manually check your changes in the dummy Rails app under `/todos`.
133
+ Use it to run integration tests since it doesn't have an UI.
133
134
 
134
- To set it up:
135
+ - Clone the repository
136
+ - Install bundler `gem install bundler`
137
+ - Install gems `bin/bundle`
135
138
 
136
- ```
137
- cd todos/
138
- bin/setup
139
- ```
140
-
141
- To run specs use:
139
+ To run both Croods-rails' and the example's specs use:
142
140
  `bin/rspec`
143
141
 
144
142
  ## License
@@ -38,6 +38,8 @@ module Croods
38
38
  associations = scope.reflect_on_all_associations(:belongs_to)
39
39
 
40
40
  associations.each do |association|
41
+ next if association.options[:optional]
42
+
41
43
  model = association.class_name.constantize
42
44
  expanded_path = path + [association]
43
45
  association_path = reflection_path(model, target, expanded_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Croods
4
- VERSION = '0.2.8'
4
+ VERSION = '0.2.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: croods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Weinmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: committee