jekyll-favicon 0.2.8 → 0.2.9

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
- SHA1:
3
- metadata.gz: 267c48cbc01616267240dda45dad7fb41f60acd8
4
- data.tar.gz: 3d0017596678b2ec30fe058ff0b99022deeb7305
2
+ SHA256:
3
+ metadata.gz: f9a26244efba01eb17a573ec4a428b4e1bed2973e669badf94564859ef697d37
4
+ data.tar.gz: ed93b2721f0e43049e0278c5aead9341f7b70dfaf4a9ec7d808d3e05147b2504
5
5
  SHA512:
6
- metadata.gz: 813ecf6f4517829ba91101fd6c275ec7541910aa343a1b49cde9ac83991a56c37a7fd25fb064f62cddd29ddf90303cd73122eb587b17a31fd6efc6b6b60d5d5a
7
- data.tar.gz: bf0d9bc8fc038b8c933f1785b98bb5b9ae3e29f0dbbe7253d39293205cc80c7c122d8ac865425b651efaa4f5078765bcbec5bc03b7dd899d76b0402af4db6b72
6
+ metadata.gz: 7d3a3aa37c9cebdf52c449086327975cc174cafa992e4d2ccd8d92a26deb7e1d788719745100117583773e41de68de724813ad9548d053884eeb6c606478183f
7
+ data.tar.gz: 93deb56d63effb0547b32f534d65a6e2fd385eb602ed626dbd52ec2faaefacd211dccd2decde87bf92478ff10c88a03176007edd4bb35d859ebadf676e7d178c
@@ -0,0 +1,40 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ release:
5
+ types: [ published ]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build + Publish
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby 2.6
15
+ uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.6.x
18
+
19
+ - name: Publish to GPR
20
+ run: |
21
+ mkdir -p $HOME/.gem
22
+ touch $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
25
+ gem build *.gemspec
26
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
27
+ env:
28
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
29
+ OWNER: ${{ github.repository_owner }}
30
+
31
+ - name: Publish to RubyGems
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 0600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem build *.gemspec
38
+ gem push *.gem
39
+ env:
40
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.2.9] - 2021-02-10
10
+ ### Added
11
+ - Optional `crossorigin` attribute for Chrome manifest
12
+
9
13
  ## [0.2.8] - 2019-09-11
10
14
  ### Changed
11
15
  - Upgrade mini_magick 4.9.4 in gemspec for security fix
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-favicon (0.2.8)
4
+ jekyll-favicon (0.2.9)
5
5
  jekyll (>= 3.0, < 5.0)
6
6
  mini_magick (>= 4.9.4)
7
7
 
@@ -12,24 +12,24 @@ GEM
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.0)
14
14
  colorator (1.1.0)
15
- concurrent-ruby (1.1.5)
16
- em-websocket (0.5.1)
15
+ concurrent-ruby (1.1.8)
16
+ em-websocket (0.5.2)
17
17
  eventmachine (>= 0.12.9)
18
18
  http_parser.rb (~> 0.6.0)
19
19
  eventmachine (1.2.7)
20
- ffi (1.11.1)
20
+ ffi (1.12.2)
21
21
  forwardable-extended (2.6.0)
22
22
  http_parser.rb (0.6.0)
23
23
  i18n (0.9.5)
24
24
  concurrent-ruby (~> 1.0)
25
- jekyll (3.8.6)
25
+ jekyll (3.9.0)
26
26
  addressable (~> 2.4)
27
27
  colorator (~> 1.0)
28
28
  em-websocket (~> 0.5)
29
29
  i18n (~> 0.7)
30
30
  jekyll-sass-converter (~> 1.0)
31
31
  jekyll-watch (~> 2.0)
32
- kramdown (~> 1.14)
32
+ kramdown (>= 1.17, < 3)
33
33
  liquid (~> 4.0)
34
34
  mercenary (~> 0.3.3)
35
35
  pathutil (~> 0.9)
@@ -45,7 +45,7 @@ GEM
45
45
  rb-fsevent (~> 0.9, >= 0.9.4)
46
46
  rb-inotify (~> 0.9, >= 0.9.7)
47
47
  mercenary (0.3.6)
48
- mini_magick (4.9.5)
48
+ mini_magick (4.11.0)
49
49
  mini_portile2 (2.4.0)
50
50
  minitest (5.11.3)
51
51
  minitest-hooks (1.5.0)
@@ -61,10 +61,10 @@ GEM
61
61
  public_suffix (3.1.1)
62
62
  rainbow (3.0.0)
63
63
  rake (10.5.0)
64
- rb-fsevent (0.10.3)
64
+ rb-fsevent (0.10.4)
65
65
  rb-inotify (0.9.10)
66
66
  ffi (>= 0.5.0, < 2)
67
- rouge (3.10.0)
67
+ rouge (3.26.0)
68
68
  rubocop (0.54.0)
69
69
  parallel (~> 1.10)
70
70
  parser (>= 2.5)
data/README.md CHANGED
@@ -30,18 +30,12 @@ If you have a [problem converting SVG files](https://github.com/afaundez/jekyll-
30
30
  sudo apt install librsvg2-bin
31
31
  ```
32
32
 
33
- If you have a [problem converting SVG files](https://github.com/afaundez/jekyll-favicon/issues/9#issuecomment-473862194), you may need to install the package `librsvg2-bin`. For example, in Ubuntu/Debian systems:
34
-
35
- ```sh
36
- sudo apt install librsvg2-bin
37
- ```
38
-
39
33
  ## Installation
40
34
 
41
35
  Add this line to your application's Gemfile:
42
36
 
43
37
  ```ruby
44
- gem 'jekyll-favicon', '~> 0.2.8', group: :jekyll_plugins
38
+ gem 'jekyll-favicon', '~> 0.2.9', group: :jekyll_plugins
45
39
  ```
46
40
 
47
41
  ## Usage
@@ -66,7 +60,7 @@ This plugin works best if you use an SVG with a square viewbox as the source, bu
66
60
 
67
61
  ### Favicon tag
68
62
 
69
- To get the links and meta, just add the favicon tag `{{ favicon }}`. For example, on your `index.html`
63
+ To get the links and meta, just add the favicon tag `{% favicon %}`. For example, on your `index.html`
70
64
 
71
65
  ```html
72
66
  ---
@@ -82,6 +76,16 @@ To get the links and meta, just add the favicon tag `{{ favicon }}`. For example
82
76
  </html>
83
77
  ```
84
78
 
79
+ #### Unusual situations
80
+
81
+ If your site is deployed in an unusual way, such as behind HTTP Basic Auth, it might be necessary to specify a `crossorigin` attribute for the webmanifest `<link>` tag:
82
+
83
+ ```yaml
84
+ favicon:
85
+ chrome:
86
+ crossorigin: "use-credentials"
87
+ ```
88
+
85
89
  ## Development
86
90
 
87
91
  If you want to add something, just make a PR. There is a lot to do:
@@ -35,6 +35,7 @@ favicon:
35
35
  - 192x192
36
36
  - 96x96
37
37
  - 48x48
38
+ crossorigin: false
38
39
  classic:
39
40
  sizes:
40
41
  - 16x16
@@ -1,5 +1,6 @@
1
1
  <!-- Chrome -->
2
+ <%- @crossorigin = Favicon.config['chrome']['crossorigin'] -%>
2
3
  <%- Favicon.config['chrome']['sizes'].each do |size| -%>
3
4
  <link rel="icon" sizes="<%= size %>" href="<%= File.join prepend_path, Favicon.config['path'], "favicon-#{size}.png" %>">
4
5
  <%- end -%>
5
- <link rel="manifest" href="<%= File.join prepend_path, Favicon.config['chrome']['manifest']['target'] %>">
6
+ <link rel="manifest" href="<%= File.join prepend_path, Favicon.config['chrome']['manifest']['target'] %>"<%= " crossorigin=\"#{@crossorigin}\"" if @crossorigin %>>
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Favicon
3
- VERSION = '0.2.8'.freeze
3
+ VERSION = '0.2.9'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-favicon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alvaro Faundez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-11 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,20 +90,20 @@ dependencies:
90
90
  name: rubocop
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: 0.54.0
96
- - - ">="
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.54.0
99
99
  type: :development
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - "~>"
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: 0.54.0
106
- - - ">="
106
+ - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: 0.54.0
109
109
  - !ruby/object:Gem::Dependency
@@ -151,6 +151,7 @@ files:
151
151
  - ".github/ISSUE_TEMPLATE/bug_report.md"
152
152
  - ".github/ISSUE_TEMPLATE/feature_request.md"
153
153
  - ".github/PULL_REQUEST_TEMPLATE.md"
154
+ - ".github/workflows/gem-push.yml"
154
155
  - ".gitignore"
155
156
  - ".rubocop.yml"
156
157
  - ".ruby-version"
@@ -203,8 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
204
  - !ruby/object:Gem::Version
204
205
  version: '0'
205
206
  requirements: []
206
- rubyforge_project:
207
- rubygems_version: 2.2.0
207
+ rubygems_version: 3.0.3
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Jekyll plugin for favicon tag generation.