gretel 3.0.3 → 3.0.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
  SHA1:
3
- metadata.gz: 8e6f73ad81f2db21b1b45557f25a6f9752874527
4
- data.tar.gz: 1fde6352fb2a14d020295b5bf64e56d83b88c54e
3
+ metadata.gz: 40ece82a8d02b5d8c7fd562e0f8e56dcfa63d5f2
4
+ data.tar.gz: 8af9c505d86d3211227b1314962b2b3b2a784c67
5
5
  SHA512:
6
- metadata.gz: 193c5462d11f70efa13f28512deb0268757c6f4367ff27b6d7440beb60a18d3f977fca9a4622eb8ebf2717ff7901be47d54e3a881949b0ba6ba72af8c5cc257a
7
- data.tar.gz: 1ad2ee35b362c693da5c579f2a05d268f0dd6e0a45386c456aad3f31a55a380137eafaea60d52e9cf91424f9a8493c53edd816662be2f16b2eb7a4a3eb9820b6
6
+ metadata.gz: ac1d0502e36bc103ad740d61c4ad35bc242a9e5015f51d39f0379990b60666f3512cd14af4b93ecf7bee0e2df8fbac60979e1fe9f4ad6c88f145058e72d04e55
7
+ data.tar.gz: ee05b24e3c1905a2651cee63be48024b371012793a252d8ee778a78fd02300385ee52861f6865e69a290ceec317a6dd34862f8ccdcf1512449d3587a80f3b113
data/lib/gretel.rb CHANGED
@@ -18,9 +18,10 @@ module Gretel
18
18
  @breadcrumb_paths ||= begin
19
19
  engine_roots = Rails::Application::Railties.engines.map { |e| e.config.root }
20
20
 
21
- [Rails.root.join("app", "views", "breadcrumbs", "**", "*.rb")] +
22
21
  [*engine_roots, Rails.root].map do |root|
23
- [root.join("config", "breadcrumbs.rb"), root.join("config", "breadcrumbs", "**", "*.rb")]
22
+ [root.join("config", "breadcrumbs.rb"),
23
+ root.join("config", "breadcrumbs", "**", "*.rb"),
24
+ root.join("app", "views", "breadcrumbs", "**", "*.rb")]
24
25
  end.flatten
25
26
  end
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module Gretel
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
data/test/gretel_test.rb CHANGED
@@ -6,8 +6,10 @@ class GretelTest < ActiveSupport::TestCase
6
6
  end
7
7
 
8
8
  test "defaults" do
9
- assert_equal [Rails.root.join("config", "breadcrumbs.rb"), Rails.root.join("config", "breadcrumbs", "**", "*.rb")],
10
- Gretel.breadcrumb_paths[-2..-1]
9
+ assert_equal [Rails.root.join("config", "breadcrumbs.rb"),
10
+ Rails.root.join("config", "breadcrumbs", "**", "*.rb"),
11
+ Rails.root.join("app", "views", "breadcrumbs", "**", "*.rb")],
12
+ Gretel.breadcrumb_paths[-3..-1]
11
13
  assert_equal ["development"], Gretel.reload_environments
12
14
  assert !Gretel.suppress_deprecation_warnings?
13
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gretel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lasse Bunk