bridgetown-svg-inliner 1.1.0 → 2.0.0

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: e5115e7bc69dd521d1f720c165fb64af8771f80363d23b4d63f685934970732e
4
- data.tar.gz: b84c0b23ebbcf03a34bd0e57a5ef626ced034311b253d7e3a8776bad8f93087d
3
+ metadata.gz: cdbbc8cc09b143dedcdaf53803f191059d3de42504ef0b0ad046bd93bd17de73
4
+ data.tar.gz: d719c7f793ec4855c55e84144bf7dd827f49181237fb61002a19bbe48acf3878
5
5
  SHA512:
6
- metadata.gz: 6af2030bb13229b7f32cd527caa81a481425199786f00ae07048167a6e538f2ba9abf7f8903da5a5f449be94b9c1d7c8c0523d644688decf75b22ada4f36d94f
7
- data.tar.gz: 4383adaa40b3e73086e344f0450609450d497e2bef60fd4ea09b475552cd4d17fa9f051ca9108e4da335b63af310ef754d1286f729cf581add340482ffd0fe39
6
+ metadata.gz: 15cac52b4da8c37fb501c98fb42754d03983066b63bfbacd97467a914fdda9f45df3f935af01da17893f9a5377cf6a859ec678372b459a364e13dda5874576b9
7
+ data.tar.gz: 4795bed73862614a5d1d6b8f2faf17d2dd1ea6d77824697d8325fae5c4c9944554c5aece51c484547839b8dd9a3891e7cacb27bbca858ad1dfc1d31d54108e4e
@@ -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.0.0, 1.1.0]
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
@@ -1,5 +1,10 @@
1
1
  # main
2
2
 
3
+ # 2.0.0 / 25-01-2023
4
+
5
+ * Restrict support to Bridgetown v1.2 and newer.
6
+ * Initialize plugin using the new Ruby DSL in Bridgetown v1.2.
7
+
3
8
  # 1.1.0 / 23-01-2023
4
9
 
5
10
  * Require Bridgetown 1.0 or newer.
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ gem "bridgetown", ENV["BRIDGETOWN_VERSION"] if ENV["BRIDGETOWN_VERSION"]
7
7
 
8
8
  group :test do
9
9
  gem "minitest"
10
+ gem "minitest-profile"
10
11
  gem "minitest-reporters"
11
- gem "shoulda"
12
12
  end
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" -g bridgetown_plugins
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 © 2021 [Ayush Newatia](https://twitter.com/ayushn21)
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
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
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
- task :default => :test
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownSvgInliner
4
- VERSION = "1.1.0"
4
+ VERSION = "2.0.0"
5
5
  end
@@ -8,4 +8,6 @@ module BridgetownSvgInliner
8
8
  autoload :LiquidAttributes, "bridgetown-svg-inliner/liquid_attributes"
9
9
  end
10
10
 
11
- BridgetownSvgInliner::Builder.register
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: 1.1.0
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-23 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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.1.4
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: []