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 +4 -4
- data/lib/gretel.rb +3 -2
- data/lib/gretel/version.rb +1 -1
- data/test/gretel_test.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40ece82a8d02b5d8c7fd562e0f8e56dcfa63d5f2
|
4
|
+
data.tar.gz: 8af9c505d86d3211227b1314962b2b3b2a784c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"),
|
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
|
data/lib/gretel/version.rb
CHANGED
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"),
|
10
|
-
|
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
|