inline_svg 1.3.0 → 1.10.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 +5 -5
- data/.github/workflows/integration_test.yml +47 -0
- data/.github/workflows/rails_6_webpacker_integration_tests.yaml +62 -0
- data/.github/workflows/ruby.yml +20 -0
- data/CHANGELOG.md +94 -5
- data/README.md +42 -16
- data/inline_svg.gemspec +1 -1
- data/lib/inline_svg/action_view/helpers.rb +38 -4
- data/lib/inline_svg/cached_asset_file.rb +3 -12
- data/lib/inline_svg/finds_asset_paths.rb +1 -1
- data/lib/inline_svg/id_generator.rb +3 -1
- data/lib/inline_svg/propshaft_asset_finder.rb +16 -0
- data/lib/inline_svg/railtie.rb +3 -2
- data/lib/inline_svg/static_asset_finder.rb +5 -2
- data/lib/inline_svg/transform_pipeline/transformations/view_box.rb +9 -0
- data/lib/inline_svg/transform_pipeline/transformations.rb +8 -3
- data/lib/inline_svg/transform_pipeline.rb +1 -1
- data/lib/inline_svg/version.rb +1 -1
- data/lib/inline_svg/webpack_asset_finder.rb +60 -0
- data/lib/inline_svg.rb +15 -0
- data/spec/finds_asset_paths_spec.rb +45 -0
- data/spec/helpers/inline_svg_spec.rb +83 -62
- data/spec/id_generator_spec.rb +1 -1
- data/spec/inline_svg_spec.rb +1 -1
- data/spec/propshaft_asset_finder_spec.rb +23 -0
- data/spec/static_asset_finder_spec.rb +25 -0
- data/spec/transformation_pipeline/transformations/view_box_spec.rb +13 -0
- data/spec/transformation_pipeline/transformations_spec.rb +2 -0
- data/spec/webpack_asset_finder_spec.rb +23 -0
- metadata +22 -10
- data/circle.yml +0 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +129,9 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".github/workflows/integration_test.yml"
|
133
|
+
- ".github/workflows/rails_6_webpacker_integration_tests.yaml"
|
134
|
+
- ".github/workflows/ruby.yml"
|
132
135
|
- ".gitignore"
|
133
136
|
- ".rubocop.yml"
|
134
137
|
- ".rubocop_todo.yml"
|
@@ -137,7 +140,6 @@ files:
|
|
137
140
|
- LICENSE.txt
|
138
141
|
- README.md
|
139
142
|
- Rakefile
|
140
|
-
- circle.yml
|
141
143
|
- inline_svg.gemspec
|
142
144
|
- lib/inline_svg.rb
|
143
145
|
- lib/inline_svg/action_view/helpers.rb
|
@@ -146,6 +148,7 @@ files:
|
|
146
148
|
- lib/inline_svg/finds_asset_paths.rb
|
147
149
|
- lib/inline_svg/id_generator.rb
|
148
150
|
- lib/inline_svg/io_resource.rb
|
151
|
+
- lib/inline_svg/propshaft_asset_finder.rb
|
149
152
|
- lib/inline_svg/railtie.rb
|
150
153
|
- lib/inline_svg/static_asset_finder.rb
|
151
154
|
- lib/inline_svg/transform_pipeline.rb
|
@@ -164,8 +167,10 @@ files:
|
|
164
167
|
- lib/inline_svg/transform_pipeline/transformations/style_attribute.rb
|
165
168
|
- lib/inline_svg/transform_pipeline/transformations/title.rb
|
166
169
|
- lib/inline_svg/transform_pipeline/transformations/transformation.rb
|
170
|
+
- lib/inline_svg/transform_pipeline/transformations/view_box.rb
|
167
171
|
- lib/inline_svg/transform_pipeline/transformations/width.rb
|
168
172
|
- lib/inline_svg/version.rb
|
173
|
+
- lib/inline_svg/webpack_asset_finder.rb
|
169
174
|
- spec/asset_file_spec.rb
|
170
175
|
- spec/cached_asset_file_spec.rb
|
171
176
|
- spec/files/example.svg
|
@@ -180,6 +185,8 @@ files:
|
|
180
185
|
- spec/id_generator_spec.rb
|
181
186
|
- spec/inline_svg_spec.rb
|
182
187
|
- spec/io_resource_spec.rb
|
188
|
+
- spec/propshaft_asset_finder_spec.rb
|
189
|
+
- spec/static_asset_finder_spec.rb
|
183
190
|
- spec/transformation_pipeline/transformations/aria_attributes_spec.rb
|
184
191
|
- spec/transformation_pipeline/transformations/aria_hidden_attribute_spec.rb
|
185
192
|
- spec/transformation_pipeline/transformations/class_attribute_spec.rb
|
@@ -192,13 +199,15 @@ files:
|
|
192
199
|
- spec/transformation_pipeline/transformations/style_attribute_spec.rb
|
193
200
|
- spec/transformation_pipeline/transformations/title_spec.rb
|
194
201
|
- spec/transformation_pipeline/transformations/transformation_spec.rb
|
202
|
+
- spec/transformation_pipeline/transformations/view_box_spec.rb
|
195
203
|
- spec/transformation_pipeline/transformations/width_spec.rb
|
196
204
|
- spec/transformation_pipeline/transformations_spec.rb
|
205
|
+
- spec/webpack_asset_finder_spec.rb
|
197
206
|
homepage: https://github.com/jamesmartin/inline_svg
|
198
207
|
licenses:
|
199
208
|
- MIT
|
200
209
|
metadata: {}
|
201
|
-
post_install_message:
|
210
|
+
post_install_message:
|
202
211
|
rdoc_options: []
|
203
212
|
require_paths:
|
204
213
|
- lib
|
@@ -213,9 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
222
|
- !ruby/object:Gem::Version
|
214
223
|
version: '0'
|
215
224
|
requirements: []
|
216
|
-
|
217
|
-
|
218
|
-
signing_key:
|
225
|
+
rubygems_version: 3.1.6
|
226
|
+
signing_key:
|
219
227
|
specification_version: 4
|
220
228
|
summary: Embeds an SVG document, inline.
|
221
229
|
test_files:
|
@@ -233,6 +241,8 @@ test_files:
|
|
233
241
|
- spec/id_generator_spec.rb
|
234
242
|
- spec/inline_svg_spec.rb
|
235
243
|
- spec/io_resource_spec.rb
|
244
|
+
- spec/propshaft_asset_finder_spec.rb
|
245
|
+
- spec/static_asset_finder_spec.rb
|
236
246
|
- spec/transformation_pipeline/transformations/aria_attributes_spec.rb
|
237
247
|
- spec/transformation_pipeline/transformations/aria_hidden_attribute_spec.rb
|
238
248
|
- spec/transformation_pipeline/transformations/class_attribute_spec.rb
|
@@ -245,5 +255,7 @@ test_files:
|
|
245
255
|
- spec/transformation_pipeline/transformations/style_attribute_spec.rb
|
246
256
|
- spec/transformation_pipeline/transformations/title_spec.rb
|
247
257
|
- spec/transformation_pipeline/transformations/transformation_spec.rb
|
258
|
+
- spec/transformation_pipeline/transformations/view_box_spec.rb
|
248
259
|
- spec/transformation_pipeline/transformations/width_spec.rb
|
249
260
|
- spec/transformation_pipeline/transformations_spec.rb
|
261
|
+
- spec/webpack_asset_finder_spec.rb
|
data/circle.yml
DELETED