bridgetown-svg-inliner 1.1.0 → 2.0.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/.github/workflows/tests.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +12 -2
- data/Rakefile +10 -8
- data/bridgetown-svg-inliner.gemspec +1 -1
- data/lib/bridgetown-svg-inliner/version.rb +1 -1
- data/lib/bridgetown-svg-inliner.rb +3 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdbbc8cc09b143dedcdaf53803f191059d3de42504ef0b0ad046bd93bd17de73
|
4
|
+
data.tar.gz: d719c7f793ec4855c55e84144bf7dd827f49181237fb61002a19bbe48acf3878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15cac52b4da8c37fb501c98fb42754d03983066b63bfbacd97467a914fdda9f45df3f935af01da17893f9a5377cf6a859ec678372b459a364e13dda5874576b9
|
7
|
+
data.tar.gz: 4795bed73862614a5d1d6b8f2faf17d2dd1ea6d77824697d8325fae5c4c9944554c5aece51c484547839b8dd9a3891e7cacb27bbca858ad1dfc1d31d54108e4e
|
data/.github/workflows/tests.yml
CHANGED
@@ -14,7 +14,7 @@ jobs:
|
|
14
14
|
strategy:
|
15
15
|
matrix:
|
16
16
|
ruby_version: [2.7.7, 3.0.5, 3.1.3, 3.2.0]
|
17
|
-
bridgetown_version: [1.
|
17
|
+
bridgetown_version: [1.2.0]
|
18
18
|
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
19
19
|
# Has to be top level to cache properly
|
20
20
|
env:
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,17 @@ A Bridgetown plugin that provides a liquid tag and ERB helper to inline SVG file
|
|
10
10
|
Run this command to add this plugin to your site's Gemfile:
|
11
11
|
|
12
12
|
```shell
|
13
|
-
$ bundle add "bridgetown-svg-inliner"
|
13
|
+
$ bundle add "bridgetown-svg-inliner"
|
14
|
+
```
|
15
|
+
|
16
|
+
Initialize it in your `config/initializers.rb` file.
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
Bridgetown.configure do |config|
|
20
|
+
# ...
|
21
|
+
|
22
|
+
init :"bridgetown-svg-inliner"
|
23
|
+
end
|
14
24
|
```
|
15
25
|
|
16
26
|
## Usage
|
@@ -77,4 +87,4 @@ You can use Liquid variables by enclosing them in double braces (`{{ }}`)
|
|
77
87
|
|
78
88
|
Bridgetown SVG Inliner is released under the [MIT License](https://opensource.org/licenses/MIT).
|
79
89
|
|
80
|
-
Copyright ©
|
90
|
+
Copyright © 2023 [Ayush Newatia](https://twitter.com/ayushn21)
|
data/Rakefile
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
t.libs << "lib"
|
7
|
-
t.test_files = FileList["test/**/test_*.rb"]
|
8
|
-
t.warning = false
|
9
|
-
end
|
5
|
+
task spec: :test
|
6
|
+
require "rake/testtask"
|
10
7
|
|
11
|
-
|
8
|
+
Rake::TestTask.new(:test) do |test|
|
9
|
+
test.libs << "lib" << "test"
|
10
|
+
test.pattern = "test/**/test_*.rb"
|
11
|
+
test.verbose = true
|
12
|
+
test.warning = false
|
13
|
+
end
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.required_ruby_version = ">= 2.7.0"
|
20
20
|
|
21
|
-
spec.add_dependency "bridgetown", ">= 1.0", "< 2.0"
|
21
|
+
spec.add_dependency "bridgetown", ">= 1.2.0", "< 2.0"
|
22
22
|
spec.add_dependency "nokogiri"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler"
|
@@ -8,4 +8,6 @@ module BridgetownSvgInliner
|
|
8
8
|
autoload :LiquidAttributes, "bridgetown-svg-inliner/liquid_attributes"
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
Bridgetown.initializer :"bridgetown-svg-inliner" do |config|
|
12
|
+
config.builder BridgetownSvgInliner::Builder
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-svg-inliner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ayush Newatia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 1.2.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
-
description:
|
89
|
+
description:
|
90
90
|
email: ayush@hey.com
|
91
91
|
executables: []
|
92
92
|
extensions: []
|
@@ -109,7 +109,7 @@ homepage: https://github.com/ayushn21/bridgetown-svg-inliner
|
|
109
109
|
licenses:
|
110
110
|
- MIT
|
111
111
|
metadata: {}
|
112
|
-
post_install_message:
|
112
|
+
post_install_message:
|
113
113
|
rdoc_options: []
|
114
114
|
require_paths:
|
115
115
|
- lib
|
@@ -124,8 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
128
|
-
signing_key:
|
127
|
+
rubygems_version: 3.2.33
|
128
|
+
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Liquid and ERB helper for Bridgetown to inline SVG files within HTML
|
131
131
|
test_files: []
|