lookbook 2.2.1 → 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.
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.2.1
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-02-02 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: css_parser
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: 0.9.25
123
+ version: '0.9'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: 0.9.25
130
+ version: '0.9'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: htmlbeautifier
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -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