jekyll-academicons-svg 0.1.0 → 0.1.1

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: 9ba8c4052a1909466ef76ff7721e45df16d5d88412cd84db05b3e286d9fbe090
4
- data.tar.gz: 2f5dffbf6ddf494162a4c3d3e0bd2715a689cb8696843c27f3ea2497d65ebcd4
3
+ metadata.gz: eb0a5432ab2b6786076e66e1804e3771588184cb9768c6f2a9f2befdd5b2169a
4
+ data.tar.gz: 163c9e85243f9882952493ae4f15a44cdf244f57708abd683ad4f94ebe8171ff
5
5
  SHA512:
6
- metadata.gz: c18e0ebd2d366a0a325da276164b70614935a2a83c781dc8c77ff3d5dd964802b513aacf29dc20ae0f771d9fa0af427be178edf002fb48746b498cf899712f71
7
- data.tar.gz: f26f8e8e27bee3f41d81ba59e4b61451cc3dd520e286995e62391697512685ebaf986b0fa33a06078952498e27bb7b23d8e032fe0caa4706735ad3b0afc5fb17
6
+ metadata.gz: bf8d9f722d89f4ea3b1634e57345eed17678b91704c7281e6db87a29e0767cecc24a86233ea45c5c9aa9a3904b64d38569119d5e820bb6bcd8cf04ff13797825
7
+ data.tar.gz: e91b9902529f153b31fbcb527089fb60600bb3c3321eee2325cdf8ee1762dc84844dc6e12a48f7819502d7c963a046229e0de5e8303940a65ded15490e5de005
@@ -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
@@ -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
+
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-academicons-svg (0.1.0)
4
+ jekyll-academicons-svg (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.3)
9
+ diff-lcs (1.4.4)
10
10
  liquid (4.0.3)
11
- rake (10.5.0)
12
- rspec (3.9.0)
13
- rspec-core (~> 3.9.0)
14
- rspec-expectations (~> 3.9.0)
15
- rspec-mocks (~> 3.9.0)
16
- rspec-core (3.9.0)
17
- rspec-support (~> 3.9.0)
18
- rspec-expectations (3.9.0)
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.9.0)
21
- rspec-mocks (3.9.0)
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.9.0)
24
- rspec-support (3.9.0)
23
+ rspec-support (~> 3.10.0)
24
+ rspec-support (3.10.0)
25
25
 
26
26
  PLATFORMS
27
27
  ruby
@@ -30,7 +30,7 @@ DEPENDENCIES
30
30
  bundler (~> 2.0)
31
31
  jekyll-academicons-svg!
32
32
  liquid
33
- rake (~> 10.0)
33
+ rake (~> 13.0)
34
34
  rspec (~> 3.0)
35
35
 
36
36
  BUNDLED WITH
data/README.md CHANGED
@@ -13,13 +13,17 @@ This Jekyll plugin will look for the icons you include in your page and only inc
13
13
 
14
14
  - When you want to include an icon, you can use the same name as you will do to with Academicons
15
15
 
16
- `{% a_svg google-scholar %}`
16
+ `{% fa_svg google-scholar %}`
17
+
18
+ or
19
+
20
+ `{% fa_svg 'google-scholar' %}`
17
21
 
18
22
  Each icon get the `academic-icon` class, which you can use in your CSS to customize the appearance of your icon.
19
23
 
20
24
  - You will need to have in **one** part of your project (at the end of your layout for example) liquid tag to generate the SVG definition.
21
25
 
22
- The syntax is this one `{% a_svg_generate %}`
26
+ The syntax is this one `{% fa_svg_generate %}`
23
27
 
24
28
  ## Installation
25
29
 
@@ -0,0 +1,14 @@
1
+ version: '3.4'
2
+
3
+ services:
4
+ app:
5
+ build:
6
+ context: .
7
+ dockerfile: Dockerfile
8
+ volumes:
9
+ - .:/app
10
+ - gem_cache:/usr/local/bundle/gems
11
+
12
+
13
+ volumes:
14
+ gem_cache:
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.require_paths = ["lib"]
40
40
 
41
41
  spec.add_development_dependency "bundler", "~> 2.0"
42
- spec.add_development_dependency "rake", "~> 10.0"
42
+ spec.add_development_dependency "rake", "~> 13.0"
43
43
  spec.add_development_dependency "rspec", "~> 3.0"
44
44
  end
@@ -4,12 +4,14 @@ module Jekyll
4
4
  module Academicons
5
5
  module Svg
6
6
  class AcademiconsItemGenerator < Liquid::Tag
7
- def initialize(tag_name, faIcon, tokens)
7
+ def initialize(tag_name, markup, tokens)
8
8
  super
9
- @icon = AcademiconsIcon.new(faIcon.strip)
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)
13
15
  unless context.environments.first['page']['academicons_svg'].is_a?([]::class)
14
16
  context.environments.first['page']['academicons_svg'] = []
15
17
  end
@@ -19,4 +21,4 @@ module Jekyll
19
21
  end
20
22
  end
21
23
  end
22
- end
24
+ end
@@ -1,7 +1,7 @@
1
1
  module Jekyll
2
2
  module Academicons
3
3
  module Svg
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ gem install bundler -v 2.0.2
4
+ bundle install
5
+ rake release
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-academicons-svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain METAYER
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2020-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -60,10 +60,13 @@ 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
  - ".travis.yml"
66
68
  - CODE_OF_CONDUCT.md
69
+ - Dockerfile
67
70
  - Gemfile
68
71
  - Gemfile.lock
69
72
  - LICENSE
@@ -72,6 +75,7 @@ files:
72
75
  - Rakefile
73
76
  - bin/console
74
77
  - bin/setup
78
+ - docker-compose.yml
75
79
  - jekyll-academicons-svg.gemspec
76
80
  - lib/jekyll/academicons/svg.rb
77
81
  - lib/jekyll/academicons/svg/academicons-generator.rb
@@ -79,6 +83,7 @@ files:
79
83
  - lib/jekyll/academicons/svg/academicons-item.rb
80
84
  - lib/jekyll/academicons/svg/assets/academicons.svg
81
85
  - lib/jekyll/academicons/svg/version.rb
86
+ - release.sh
82
87
  homepage: https://github.com/sylvainmetayer/jekyll-academicons-svg
83
88
  licenses:
84
89
  - MIT