jekyll-imgproxy-tag 0.2.0 → 0.3.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: 93d9cf64777bdf8dec7fc86157adaea3583a1852efc806f9d05692cb500afb7f
4
- data.tar.gz: c70b5a8a761ff1af47bcc6495c26d8dd4d7cf5282fdf1a1431a20c7990223699
3
+ metadata.gz: 7d6db81d734a01fc93f4e3aaf4652148ceb73a84b48d063cda2ab2de3bf27332
4
+ data.tar.gz: 15c06ff92fcd7701a21767f14e9d3a68a6f3991ace21b6ba549c1a57198b493a
5
5
  SHA512:
6
- metadata.gz: c2afe6b962fd12b38d261bc7e554baa01821d073b0f2dc57767e105a92e4785821112d4ad579f61adfc9601c2a94c5b0f1d9766540917d9845a338752ab7a472
7
- data.tar.gz: d183df96f205344dce6e335304e6dcf879224b37a3f1a3ecd5301768358c7062b90248a3c9648fc3c68d6aa398b8e97c2a8b814e962984a17b3e34a3f38ff1bd
6
+ metadata.gz: 1cc1ab693b8c0f89fecb7cca0bea89e8ccb13c4b743db0aa82bee0af9f9b49385d97deda4901c02a64dee4012f167b9f1b4c687466581977c2ccae11c97bd343
7
+ data.tar.gz: 7e64901563f45301caba569cb7d2dd9ccf261e01b98c212b81fcc49d1926033fd5dfbcced562598a4899f9bf4cdd695737de0aae87f59a07f7c4abeeedee2ebc
data/CHANGELOG CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] - 2022-06-18
11
+
12
+ - Refactored the config class to access the Jekyll configuration object only
13
+ once so that we're not repeatedly logging to STDOUT about its being accessed.
14
+
10
15
  ## [0.2.0] - 2022-06-12
11
16
 
12
17
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-imgproxy-tag (0.2.0)
4
+ jekyll-imgproxy-tag (0.3.0)
5
5
  jekyll
6
6
 
7
7
  GEM
@@ -4,6 +4,14 @@ module Jekyll
4
4
  module Imgproxy
5
5
  class Tag
6
6
  class ImgproxyConfig
7
+ extend Forwardable
8
+
9
+ def_delegators :'self.class', :imgproxy_config
10
+
11
+ def self.imgproxy_config
12
+ @@imgproxy_config ||= Jekyll.configuration['imgproxy']
13
+ end
14
+
7
15
  attr_reader \
8
16
  :base_url,
9
17
  :key,
@@ -34,10 +42,6 @@ module Jekyll
34
42
  raise Jekyll::Imgproxy::Tag::Errors::KeyNotSet if imgproxy_config['key'].nil?
35
43
  raise Jekyll::Imgproxy::Tag::Errors::BaseUrlNotSet if imgproxy_config['base_url'].nil?
36
44
  end
37
-
38
- def imgproxy_config
39
- Jekyll.configuration['imgproxy']
40
- end
41
45
  end
42
46
  end
43
47
  end
@@ -3,7 +3,7 @@
3
3
  module Jekyll
4
4
  module Imgproxy
5
5
  class Tag < ::Liquid::Tag
6
- VERSION = '0.2.0'
6
+ VERSION = '0.3.0'
7
7
 
8
8
  def initialize(tag_name, raw_options, tokens)
9
9
  super
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-imgproxy-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Oliveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll