view_component_storybook 0.11.0 → 0.11.1

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: 0dd708afcf2aa165339b0b1fde82ae610665554e3633c1e50b25509088b43e79
4
- data.tar.gz: 950739b2892877a1451c262dc2110d6885a86c740c7fec9cd626a305feb8313d
3
+ metadata.gz: d9748db108a30faac96e4e6f793cfd9b62a47c8f8e03fa83d4518f670bf7fb42
4
+ data.tar.gz: b1b6140fd9ad5dc1ff4a281a93f6d5384792ab04c5030531f23e4127854e2819
5
5
  SHA512:
6
- metadata.gz: 3f9b37292f202ac1c79fd4d31b9ace6b067efff03bf60a6f6a7b44a241ce5661c3669a382d9e549461dfe391d9c77fe0b9b98d33a3a5a47ce821d47e9c26ec7d
7
- data.tar.gz: 8e7db14af389ae4d4b2dbcf269269476ac9309c9e518226afedbef769e31f72d32ed44a61382f9830836cab5a4ceba45a701af0a66861de31f928713be9b6c55
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 ||= ViewComponent::Storybook.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\"`."
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ViewComponent
4
4
  module Storybook
5
- VERSION = "0.11.0"
5
+ VERSION = "0.11.1"
6
6
  end
7
7
  end
@@ -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 do
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_storybook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Palmer