jekyll-fontawesome-svg 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +20 -0
- data/.github/workflows/ruby.yml +33 -0
- data/Dockerfile +41 -0
- data/Gemfile.lock +14 -14
- data/README.md +4 -0
- data/docker-compose.yml +14 -0
- data/lib/jekyll/fontawesome/svg/fa-item.rb +5 -2
- data/lib/jekyll/fontawesome/svg/version.rb +1 -1
- data/release.sh +5 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a491534c5d76c4e5744878bc704d875009880e8e1a03fc4287b2780c53216da
|
4
|
+
data.tar.gz: 61d8fd4efab105025e33df3c9a4252019083ad8afb4a5215ea43a7b588991be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e3807a15e8e21ccbaba074809a0a88d06403845784a4271e9c03898c95bc8cdad1749d8edcb7f325b7afb497b8b4b2d4829fa655805cfe18e54bd9e019da32
|
7
|
+
data.tar.gz: 5d240207401204a80f296cea5674c023530b441845e04129a39a64059bafae4214fe7c2b3288f4153fca79863a805531e6f63c8d4dcc62d1f5873e7114f0e50d
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Publish Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v1
|
13
|
+
|
14
|
+
- name: Release Gem
|
15
|
+
if: contains(github.ref, 'refs/tags/v')
|
16
|
+
uses: cadwallion/publish-rubygems-action@master
|
17
|
+
env:
|
18
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
19
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
20
|
+
RELEASE_COMMAND: ./release.sh
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
26
|
+
# uses: ruby/setup-ruby@v1
|
27
|
+
uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
|
28
|
+
with:
|
29
|
+
ruby-version: 2.6
|
30
|
+
- name: Install dependencies
|
31
|
+
run: bundle install
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
data/Dockerfile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
FROM ruby:2.5.1-alpine
|
2
|
+
|
3
|
+
ENV BUNDLER_VERSION=2.0.2
|
4
|
+
|
5
|
+
RUN apk add --update --no-cache \
|
6
|
+
binutils-gold \
|
7
|
+
build-base \
|
8
|
+
curl \
|
9
|
+
file \
|
10
|
+
g++ \
|
11
|
+
gcc \
|
12
|
+
git \
|
13
|
+
less \
|
14
|
+
libstdc++ \
|
15
|
+
libffi-dev \
|
16
|
+
libc-dev \
|
17
|
+
linux-headers \
|
18
|
+
libxml2-dev \
|
19
|
+
libxslt-dev \
|
20
|
+
libgcrypt-dev \
|
21
|
+
make \
|
22
|
+
netcat-openbsd \
|
23
|
+
openssl \
|
24
|
+
pkgconfig \
|
25
|
+
postgresql-dev \
|
26
|
+
python \
|
27
|
+
tzdata \
|
28
|
+
yarn
|
29
|
+
|
30
|
+
RUN gem install bundler -v 2.0.2
|
31
|
+
|
32
|
+
WORKDIR /app
|
33
|
+
|
34
|
+
COPY Gemfile Gemfile.lock ./
|
35
|
+
|
36
|
+
RUN bundle config build.nokogiri --use-system-libraries
|
37
|
+
|
38
|
+
#RUN bundle check || bundle install
|
39
|
+
|
40
|
+
COPY . ./
|
41
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jekyll-fontawesome-svg (0.3.
|
4
|
+
jekyll-fontawesome-svg (0.3.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
diff-lcs (1.
|
9
|
+
diff-lcs (1.4.4)
|
10
10
|
liquid (4.0.3)
|
11
|
-
rake (13.0.
|
12
|
-
rspec (3.
|
13
|
-
rspec-core (~> 3.
|
14
|
-
rspec-expectations (~> 3.
|
15
|
-
rspec-mocks (~> 3.
|
16
|
-
rspec-core (3.
|
17
|
-
rspec-support (~> 3.
|
18
|
-
rspec-expectations (3.
|
11
|
+
rake (13.0.3)
|
12
|
+
rspec (3.10.0)
|
13
|
+
rspec-core (~> 3.10.0)
|
14
|
+
rspec-expectations (~> 3.10.0)
|
15
|
+
rspec-mocks (~> 3.10.0)
|
16
|
+
rspec-core (3.10.0)
|
17
|
+
rspec-support (~> 3.10.0)
|
18
|
+
rspec-expectations (3.10.0)
|
19
19
|
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
-
rspec-support (~> 3.
|
21
|
-
rspec-mocks (3.
|
20
|
+
rspec-support (~> 3.10.0)
|
21
|
+
rspec-mocks (3.10.0)
|
22
22
|
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
-
rspec-support (~> 3.
|
24
|
-
rspec-support (3.
|
23
|
+
rspec-support (~> 3.10.0)
|
24
|
+
rspec-support (3.10.0)
|
25
25
|
|
26
26
|
PLATFORMS
|
27
27
|
ruby
|
data/README.md
CHANGED
@@ -14,6 +14,10 @@ This Jekyll plugin will look for the icon you include in your page and only incl
|
|
14
14
|
|
15
15
|
`{% fa_svg fab.fa-twitter %}`
|
16
16
|
|
17
|
+
or
|
18
|
+
|
19
|
+
`{% fa_svg 'fab.fa-twitter' %}`
|
20
|
+
|
17
21
|
Use the `fa_svg` liquid tag, with the type of the icon you want to use (`fab`, `fas` or `far`), a dot (**important**) and the icon name.
|
18
22
|
|
19
23
|
Each icon get the `icon` class, which you can use in your CSS to customize the appearance of your icon.
|
data/docker-compose.yml
ADDED
@@ -4,12 +4,15 @@ module Jekyll
|
|
4
4
|
module FontAwesome
|
5
5
|
module Svg
|
6
6
|
class FontAwesomeSvgItemGenerator < Liquid::Tag
|
7
|
-
def initialize(tag_name,
|
7
|
+
def initialize(tag_name, markup, tokens)
|
8
8
|
super
|
9
|
-
@
|
9
|
+
@tmp_markup = markup
|
10
10
|
end
|
11
11
|
|
12
12
|
def render(context)
|
13
|
+
faIcon = context[@markup] ||= @tmp_markup
|
14
|
+
@icon = FontAwesomeIcon.new(faIcon.strip)
|
15
|
+
|
13
16
|
unless context.environments.first['page']['fa_svg'].is_a?([]::class)
|
14
17
|
context.environments.first['page']['fa_svg'] = []
|
15
18
|
end
|
data/release.sh
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-fontawesome-svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain METAYER
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,11 +60,14 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".github/workflows/release.yml"
|
64
|
+
- ".github/workflows/ruby.yml"
|
63
65
|
- ".gitignore"
|
64
66
|
- ".rspec"
|
65
67
|
- ".ruby-version"
|
66
68
|
- ".travis.yml"
|
67
69
|
- CODE_OF_CONDUCT.md
|
70
|
+
- Dockerfile
|
68
71
|
- Gemfile
|
69
72
|
- Gemfile.lock
|
70
73
|
- LICENSE
|
@@ -72,6 +75,7 @@ files:
|
|
72
75
|
- Rakefile
|
73
76
|
- bin/console
|
74
77
|
- bin/setup
|
78
|
+
- docker-compose.yml
|
75
79
|
- jekyll-fontawesome-svg.gemspec
|
76
80
|
- lib/jekyll/fontawesome/svg.rb
|
77
81
|
- lib/jekyll/fontawesome/svg/assets/fa_svgs/brands/500px.svg
|
@@ -1490,6 +1494,7 @@ files:
|
|
1490
1494
|
- lib/jekyll/fontawesome/svg/fa-icon.rb
|
1491
1495
|
- lib/jekyll/fontawesome/svg/fa-item.rb
|
1492
1496
|
- lib/jekyll/fontawesome/svg/version.rb
|
1497
|
+
- release.sh
|
1493
1498
|
homepage: https://github.com/sylvainmetayer/jekyll-fontawesome-svg
|
1494
1499
|
licenses:
|
1495
1500
|
- MIT
|