bridgetown-svg-inliner 1.0.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2785f35194c07cb26a8da4c2964d774a6065f7b3f7effa6529ba1d2a5325738d
4
- data.tar.gz: 8cc75f96de9a1510e698fa132343c21314783f45180cebef1a84f7fba19c0788
3
+ metadata.gz: cdbbc8cc09b143dedcdaf53803f191059d3de42504ef0b0ad046bd93bd17de73
4
+ data.tar.gz: d719c7f793ec4855c55e84144bf7dd827f49181237fb61002a19bbe48acf3878
5
5
  SHA512:
6
- metadata.gz: 1ec8695273c48a1395850fb203e87ab7e3571a89dd66f25a52304bf24c0ab970891a3e6f8d08aec3ab5a510cf1a4bdbd45da8f3343858744ed3e6980244d0e0c
7
- data.tar.gz: 340afa0a624d83e31e7bc0c8defb45634c805606f881f538203324b556c1359d3cece86d98723d48d0490b6a837c9393ef2ef67ac7fcd4ccf76d673c2b78c791
6
+ metadata.gz: 15cac52b4da8c37fb501c98fb42754d03983066b63bfbacd97467a914fdda9f45df3f935af01da17893f9a5377cf6a859ec678372b459a364e13dda5874576b9
7
+ data.tar.gz: 4795bed73862614a5d1d6b8f2faf17d2dd1ea6d77824697d8325fae5c4c9944554c5aece51c484547839b8dd9a3891e7cacb27bbca858ad1dfc1d31d54108e4e
@@ -13,12 +13,14 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby_version: [2.6.6, 2.7.3, 3.0.1]
16
+ ruby_version: [2.7.7, 3.0.5, 3.1.3, 3.2.0]
17
+ bridgetown_version: [1.2.0]
17
18
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
18
19
  # Has to be top level to cache properly
19
20
  env:
20
21
  BUNDLE_JOBS: 3
21
22
  BUNDLE_PATH: "vendor/bundle"
23
+ BRIDGETOWN_VERSION: ${{ matrix.bridgetown_version }}
22
24
  steps:
23
25
  - uses: actions/checkout@master
24
26
  - name: Setup Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
8
+ # 1.1.0 / 23-01-2023
9
+
10
+ * Require Bridgetown 1.0 or newer.
11
+ * Require Ruby 2.7 or newer.
12
+
3
13
  # 1.0.2 / 25-06-2021
4
14
 
5
15
  * Fix the parsing of attributes with a dash so data attributes or similar can be set on the svg.
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
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
16
16
  spec.require_paths = ["lib"]
17
17
  spec.metadata = {}
18
18
 
19
- spec.required_ruby_version = ">= 2.6.0"
19
+ spec.required_ruby_version = ">= 2.7.0"
20
20
 
21
- spec.add_dependency "bridgetown", ">= 0.20", "< 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"
25
- spec.add_development_dependency "rake", "~> 12.0"
26
- spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rubocop-bridgetown"
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownSvgInliner
4
- VERSION = "1.0.2"
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.0.2
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: 2021-06-25 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: '0.20'
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: '0.20'
29
+ version: 1.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'
@@ -62,31 +62,31 @@ dependencies:
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '12.0'
67
+ version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: '12.0'
74
+ version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rubocop-bridgetown
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0.2'
81
+ version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '0.2'
89
- description:
88
+ version: '0'
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
@@ -117,15 +117,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 2.6.0
120
+ version: 2.7.0
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
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: []