inferred_crumpets 0.2.5 → 0.2.6

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: 045e0bc072e7b6a693338c9c0e4591961be036aa
4
- data.tar.gz: 48daa44b273bde9c0a7c00a2083ef7173dbbf20e
3
+ metadata.gz: 62dd5a686657e7ac35de533b178e8a06a0523ae6
4
+ data.tar.gz: 2f2eb671e2c074abe798766c06351ad463127066
5
5
  SHA512:
6
- metadata.gz: 139a18b8eed6b35cde2506d22fb487a479c0d4e17d6eb03ea9ef018e079780aa42045a7739de5269cea4e70d3e2502fed9513ba342497099661c9d42b712749b
7
- data.tar.gz: 79d3116669a3346abdd2590911cb52529e4b4fc9dcef015e0ef5dfd380a2f36382eb727b29f45d498441e5e352e49c14b549a78794a1bb59be3d99a03b6b7257
6
+ metadata.gz: 055a30abcc20d6277d8b849751b9df67910d6f05259c8be9ea9ad85827fe2c9f6a55cb45156fa50307445ed1b10c35069dbd7d457b8849621e262034dea68ce2
7
+ data.tar.gz: b8fc00da8bfc2b6a2b025996046468ac62136f850f24032cc9b450f7d351d871916ea41613731e9c37b264726e8fca1215f80c8c8f60648bd8453f5dd941b326
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # InferredCrumpets
2
2
 
3
+ ## 0.2.6
4
+
5
+ * [TT-4479] Added grandparent support
6
+
3
7
  ## 0.2.5
4
8
 
5
9
  * [RU-145] Check for the Rails 5 ActionController::UrlGenerationError
@@ -5,7 +5,7 @@ module InferredCrumpets
5
5
  def self.build_inferred_crumbs!(view_context)
6
6
  subject = view_context.current_object rescue view_context.collection rescue nil
7
7
  return unless subject
8
- parents = [view_context.parent_object].compact rescue []
8
+ parents = [view_context.parent_object].compact.flatten rescue []
9
9
  build_all!(view_context, subject, parents)
10
10
  end
11
11
 
@@ -115,7 +115,7 @@ module InferredCrumpets
115
115
  end
116
116
 
117
117
  def class_with_parents
118
- (parents + [transformed_subject.class]).compact
118
+ [parents.last, transformed_subject.class].compact
119
119
  end
120
120
 
121
121
  def inherited_resources?
@@ -1,3 +1,3 @@
1
1
  module InferredCrumpets
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inferred_crumpets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Colegate
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails