lookbook 2.2.2 → 2.3.0
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 +4 -4
- data/app/controllers/lookbook/page_controller.rb +1 -1
- data/config/app.yml +1 -0
- data/lib/lookbook/preview_controller_actions.rb +17 -15
- data/lib/lookbook/services/templates/action_view_config_handler.rb +50 -0
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +419 -232
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +202 -168
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +3 -3
- data/lib/lookbook/services/templates/action_view_annotations_handler.rb +0 -21
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -1699,8 +1699,8 @@ files:
|
|
1699
1699
|
- lib/lookbook/services/string_value_caster.rb
|
1700
1700
|
- lib/lookbook/services/tags/key_value_tag_parser.rb
|
1701
1701
|
- lib/lookbook/services/tags/tag_options_parser.rb
|
1702
|
-
- lib/lookbook/services/templates/action_view_annotations_handler.rb
|
1703
1702
|
- lib/lookbook/services/templates/action_view_annotations_stripper.rb
|
1703
|
+
- lib/lookbook/services/templates/action_view_config_handler.rb
|
1704
1704
|
- lib/lookbook/services/templates/frontmatter_extractor.rb
|
1705
1705
|
- lib/lookbook/services/templates/styles_extractor.rb
|
1706
1706
|
- lib/lookbook/services/urls/data_uri_encoder.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Lookbook
|
2
|
-
class ActionViewAnnotationsHandler < Service
|
3
|
-
attr_reader :disable_annotations
|
4
|
-
|
5
|
-
def initialize(disable_annotations: true)
|
6
|
-
@disable_annotations = disable_annotations
|
7
|
-
end
|
8
|
-
|
9
|
-
def call
|
10
|
-
if ActionView::Base.respond_to?(:annotate_rendered_view_with_filenames) && disable_annotations
|
11
|
-
original_value = ActionView::Base.annotate_rendered_view_with_filenames
|
12
|
-
ActionView::Base.annotate_rendered_view_with_filenames = false
|
13
|
-
res = yield
|
14
|
-
ActionView::Base.annotate_rendered_view_with_filenames = original_value
|
15
|
-
res
|
16
|
-
else
|
17
|
-
yield
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|