view_component_storybook 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9748db108a30faac96e4e6f793cfd9b62a47c8f8e03fa83d4518f670bf7fb42
|
|
4
|
+
data.tar.gz: b1b6140fd9ad5dc1ff4a281a93f6d5384792ab04c5030531f23e4127854e2819
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8bd26bfe7ccb8c2b30b1f989056c7b294ea99b6ae3e53a7b5bb87ef85a667e169dbc362f7681887bb8a8a6ab57d022afaa164b7846d8d667b63efaef4bfbb97
|
|
7
|
+
data.tar.gz: c04e250070f402802fb94e3807a0c65e1e9af54534f03480fc0e5abc46781f3e9d34c54da282bc81cec944be3c8a5585c690ac4f6d68ac4597a429f82627fd4f
|
|
@@ -11,7 +11,7 @@ module ViewComponent
|
|
|
11
11
|
options = app.config.view_component_storybook
|
|
12
12
|
|
|
13
13
|
options.show_stories = Rails.env.development? if options.show_stories.nil?
|
|
14
|
-
options.stories_route ||=
|
|
14
|
+
options.stories_route ||= "/rails/stories"
|
|
15
15
|
|
|
16
16
|
if options.show_stories
|
|
17
17
|
options.stories_path ||= defined?(Rails.root) ? Rails.root.join("test/components/stories") : nil
|
|
@@ -46,7 +46,7 @@ module ViewComponent
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# :nocov:
|
|
49
|
-
unless defined?(ViewComponent::Storybook)
|
|
49
|
+
unless defined?(ViewComponent::Storybook::Stories)
|
|
50
50
|
ActiveSupport::Deprecation.warn(
|
|
51
51
|
"This manually engine loading is deprecated and will be removed in v1.0.0. " \
|
|
52
52
|
"Remove `require \"view_component/storybook/engine\"`."
|
|
@@ -37,9 +37,7 @@ module ViewComponent
|
|
|
37
37
|
#
|
|
38
38
|
# Defaults to `/rails/stories` when `show_stories` is enabled.
|
|
39
39
|
#
|
|
40
|
-
mattr_accessor :stories_route, instance_writer: false
|
|
41
|
-
"/rails/stories"
|
|
42
|
-
end
|
|
40
|
+
mattr_accessor :stories_route, instance_writer: false
|
|
43
41
|
|
|
44
42
|
# :nocov:
|
|
45
43
|
if defined?(ViewComponent::Storybook::Engine)
|