jekyll-openmoji 0.1.5 → 0.1.6

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: 12a8e7badebc60c0dea6e410e4db32108819962eb6ba45423373bc799cbb7315
4
- data.tar.gz: c7849e33a24d1a0761ebd52252fef24e4c98a61e235f77e65e1ac357286ecff4
3
+ metadata.gz: ec6edaf2e003a2987d94f07283a7a01ece82639e566899068bdcff4d68b309a1
4
+ data.tar.gz: e8756ba6732fdc13dc3bc9563d53042c362e0f58b4f65ddd19c089fd529e7642
5
5
  SHA512:
6
- metadata.gz: 762fa37178a1586a5d595c76efc19bb49ef59b128040d760037132164a62c81be0dbcd61f2ca7963b52a146009e91b0edd9b0b2d9237751c1b6a025f1be8fc81
7
- data.tar.gz: 1be9e142c40b32bdebe6bcbf6f09e6d8dd38989474ddbd78aadc79685280498a9b2d48897fd54f152c89811875fd5b0c585bf973375af1ad41d5a58502c0133a
6
+ metadata.gz: b64b5cf5bc3d1d52a03e6fdd38844da95ebd22539b094bee5c2cfa889ddb21e3f2afee1c2687e496b30e9f4c65e0c9da4589d48da1c9d6fde0169a5a37a29a4f
7
+ data.tar.gz: 5ab34c9dfa9b46da6f799bd3769526a917a0aaf940b95aa3e5bdfc0c2d00f411580f507de6b72874bb3b165bf0fc12f438051dd592210a0b28b1d820098c9492
data/.gitlab-ci.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  # stages of gitlab ci.
2
2
  stages:
3
3
  - test
4
+ - deploy
4
5
  - release
5
6
 
6
7
  # default settings for all ci jobs.
@@ -9,16 +10,17 @@ default:
9
10
  cache:
10
11
  paths:
11
12
  - vendor/
12
- # job for testing package against ruby version 2.6
13
+
14
+ # job for testing package against default ruby version
13
15
  # on master branch and send test coverage result to
14
16
  # codeclimate.
15
- test main branch:
17
+ test master branch defaut:
16
18
  stage: test
17
19
  before_script:
18
20
  # setup rbenv.
19
21
  - source ~/.bash_profile
20
- # use ruby version 2.7.0 .
21
- - rbenv global 2.7.0
22
+ # use default ruby version.
23
+ - rbenv global 3.0.0
22
24
  # install dependency gems.
23
25
  - bundle config set path 'vendor'
24
26
  - bundle install
@@ -26,87 +28,98 @@ test main branch:
26
28
  - cc-test-reporter before-build
27
29
  # run tests.
28
30
  script:
29
- - script/test.sh
31
+ - cd script && ./test.sh
30
32
  # send test coverage result to codeclimate.
31
33
  after_script:
32
34
  - cc-test-reporter after-build --coverage-input-type simplecov
33
35
  only:
34
36
  - master
35
37
 
36
- # job for testing package on other branches than master
37
- # and merge requests against 2.7.0 version.
38
- test ruby 2.7.0:
38
+ # job for testing package on mon master branch
39
+ # and merge requests against other ruby versions.
40
+ test master branch ruby 2.7.2:
39
41
  stage: test
40
42
  before_script:
41
43
  # setup rbenv.
42
44
  - source ~/.bash_profile
43
- # use ruby version 2.7.0 .
44
- - rbenv global 2.7.0
45
+ # use custom ruby version.
46
+ - rbenv global 2.7.2
45
47
  # install dependency gems.
46
48
  - bundle config set path 'vendor'
47
49
  - bundle install
48
50
  # run tests.
49
51
  script:
50
- - script/test.sh
52
+ - cd script && ./test.sh
51
53
  only:
52
- - branches
53
- - merge_requests
54
- except:
55
54
  - master
56
55
 
57
- # jobs for testing package against older ruby versions.
58
- test ruby 2.6.5:
56
+ # job for testing package on other branches than master
57
+ # and merge requests against default version.
58
+ test branch ruby default:
59
59
  stage: test
60
60
  before_script:
61
61
  # setup rbenv.
62
62
  - source ~/.bash_profile
63
- # use ruby version 2.6.5 .
64
- - rbenv global 2.6.5
63
+ # use default ruby version.
64
+ - rbenv global 3.0.0
65
65
  # install dependency gems.
66
66
  - bundle config set path 'vendor'
67
67
  - bundle install
68
68
  # run tests.
69
69
  script:
70
- - script/test.sh
70
+ - cd script && ./test.sh
71
+ only:
72
+ - branches
73
+ - merge_requests
71
74
  except:
72
- - tags
75
+ - master
73
76
 
74
- test ruby 2.5.7:
77
+ # job for testing package on other branches than master
78
+ # and merge requests against other ruby versions.
79
+ test branch ruby 2.7.2:
75
80
  stage: test
76
81
  before_script:
77
82
  # setup rbenv.
78
83
  - source ~/.bash_profile
79
- # use ruby version 2.5.7 .
80
- - rbenv global 2.5.7
84
+ # use custom ruby version.
85
+ - rbenv global 2.7.2
81
86
  # install dependency gems.
82
87
  - bundle config set path 'vendor'
83
88
  - bundle install
84
89
  # run tests.
85
90
  script:
86
- - script/test.sh
91
+ - cd script && ./test.sh
92
+ only:
93
+ - branches
94
+ - merge_requests
87
95
  except:
88
- - tags
96
+ - master
89
97
 
90
98
  # release a preview blog for master branch with gitlab pages.
91
99
  pages:
92
- stage: release
93
- script:
100
+ stage: deploy
101
+ before_script:
94
102
  # setup rbenv.
95
103
  - source ~/.bash_profile
96
- # use ruby version 2.7.0
97
- - rbenv global 2.7.0
104
+ # use ruby version 3.0.0 .
105
+ - rbenv global 3.0.0
106
+ # delete and recreate directory.
107
+ - rm --force --recursive public
108
+ - mkdir public
98
109
  # go to blog folder.
99
110
  - cd doc/blog
100
111
  # install dependency gems.
101
112
  - bundle config set path 'vendor'
102
113
  - bundle install
114
+ script:
103
115
  # generate site with jekyll.
104
- - bundle exec jekyll build --trace --destination ../../public
116
+ - bundle exec jekyll build --trace --config ./_config.yml --destination ../../public
105
117
  artifacts:
106
118
  paths:
107
119
  - public
120
+ expire_in: 7 days
108
121
  only:
109
- - master
122
+ - tags
110
123
  when: manual
111
124
 
112
125
  # deploy gems to rubygems.org whenever a tag is released.
@@ -115,8 +128,8 @@ release to rubygems:
115
128
  script:
116
129
  # setup rbenv.
117
130
  - source ~/.bash_profile
118
- # use ruby version 2.7.0
119
- - rbenv global 2.7.0
131
+ # use default ruby version.
132
+ - rbenv global 3.0.0
120
133
  # create rubygems credential file for auto login.
121
134
  - script/ci_rubygems.sh
122
135
  # extract tag from git log and strip "v".
data/.rubocop.yml ADDED
@@ -0,0 +1,45 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.7.2
5
+ NewCops: disable
6
+ SuggestExtensions: false
7
+ Exclude:
8
+ - vendor/**/*
9
+ - test/**/*
10
+ - db/**/*
11
+ - Rakefile
12
+ - ./*.gemspec
13
+
14
+ Layout/HashAlignment:
15
+ EnforcedHashRocketStyle: table
16
+
17
+ Layout/LineLength:
18
+ Max: 85
19
+
20
+ Layout/MultilineMethodCallIndentation:
21
+ EnforcedStyle: indented_relative_to_receiver
22
+ IndentationWidth: 2
23
+
24
+ Metrics/AbcSize:
25
+ Max: 30
26
+ Exclude:
27
+ - "lib/jekyll_openmoji/plugin.rb"
28
+
29
+ Metrics/BlockLength:
30
+ Max: 50
31
+
32
+ Metrics/MethodLength:
33
+ Max: 25
34
+
35
+ Style/HashSyntax:
36
+ EnforcedStyle: hash_rockets
37
+
38
+ Style/MutableConstant:
39
+ Enabled: false
40
+
41
+ Style/RegexpLiteral:
42
+ EnforcedStyle: percent_r
43
+
44
+ Style/StringLiterals:
45
+ EnforcedStyle: double_quotes
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,7 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-12-06 11:59:49 +0100 using RuboCop version 0.61.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
data/README.md CHANGED
@@ -56,7 +56,7 @@
56
56
  <br>
57
57
 
58
58
  <a title="OpenMoji Version" href="https://github.com/hfg-gmuend/openmoji/releases">
59
- <img src="https://img.shields.io/github/v/release/hfg-gmuend/openmoji?color=red&label=OpenMoji&logo=github&sort=semver&style=flat-square" alt="OpenMoji Version">
59
+ <img src="https://img.shields.io/static/v1?label=OpenMoji&message=v13.1.0&logo=github&color=red&style=flat-square" alt="OpenMoji Version">
60
60
  </a>
61
61
  <a title="Gem Version" href="https://rubygems.org/gems/jekyll-openmoji">
62
62
  <img src="https://img.shields.io/gem/v/jekyll-openmoji?color=red&label=Jekyll%20OpenMoji&logo=rubygems&style=flat-square" alt="Gem Version">
@@ -72,11 +72,12 @@
72
72
  >discussions, issue tracking and merge requests take place in GitLab.
73
73
 
74
74
  > This project is a fork of <a href="https://github.com/jekyll/jemoji">Jemoji</a>.
75
- > This project is currently independent from main OpenMoji project.
75
+
76
+ > This project is independent from <a href="https://openmoji.org">OpenMoji</a> project.
76
77
 
77
78
  ### Enjoy a free open source emoji package
78
79
  Use more than 3,000 emojis from OpenMoji package for free in your jekyll website.
79
- but remember to credit the OpenMoji project somewhere in your site to comply with
80
+ but remember to ***credit the OpenMoji project*** somewhere in your site to comply with
80
81
  their license.
81
82
 
82
83
  ### Connect to any other emoji source
@@ -85,7 +86,9 @@ roughly 5 lines to your website's config file.
85
86
 
86
87
  ## Preview
87
88
 
88
- see a preview of how OpenMoji emojis looks like with this plugin at this [**page**][preview].
89
+ [![screenshot of OpenMoji Emoji preview blog](/pages_preview.webp)](preview)
90
+
91
+ see a preview of OpenMoji emojis with their aliases.
89
92
 
90
93
  ## Quick start
91
94
 
@@ -116,7 +119,7 @@ In any page or post, use emoji as you would normally, e.g.
116
119
  I give this plugin two :thumbs_up:!
117
120
  ```
118
121
 
119
- with this plugin, Jekyll will turn this markdown code `:thumbs_up:` into this image:
122
+ with this plugin, Jekyll will turn this markdown code (aka emoji alias) `:thumbs_up:` into this image:
120
123
  <img class="emoji" title="thumbs_up" alt="👍️" src="https://cdn.jsdelivr.net/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin@latest/images/color/svg/1f44d-fe0f.svg" width="30em" height="30em" margin="0.5em"> .
121
124
 
122
125
  to see all codes and their emoji images, see preview [**page**][preview].
@@ -174,8 +177,10 @@ However you can alter the default path in `_config.yml` to serve from external s
174
177
 
175
178
  ### Notes
176
179
 
177
- Emoji files names should be lowercase unicode strings, for example name of this
178
- emoji 😄 image file must be: 1f604
180
+ * Your external image source must be compatible with this plugin in order to show emojis correctly,
181
+ for example:
182
+ * emoji files names should be lowercase unicode strings, so that this
183
+ emoji 😄 image file must be: 1f604 followed by its extension (here png), final file name would be 1f604.png
179
184
 
180
185
  ## Contribution
181
186
 
@@ -25,16 +25,16 @@ Gem::Specification.new do |spec|
25
25
  spec.test_files = spec.files.grep(%r!^test/!)
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.required_ruby_version = ">= 2.3.0"
28
+ spec.required_ruby_version = ">= 2.7.2"
29
29
 
30
- spec.add_dependency "html-pipeline", "~> 2.12"
31
- spec.add_dependency "html-pipeline-negarmoji", "~> 0.1.5"
30
+ spec.add_dependency "html-pipeline", "~> 2.14"
31
+ spec.add_dependency "html-pipeline-negarmoji", "~> 0.1.6"
32
32
  spec.add_dependency "jekyll", ">= 3.0", "< 5.0"
33
- spec.add_dependency "negarmoji", "~> 0.1.9"
33
+ spec.add_dependency "negarmoji", "~> 0.1.10"
34
34
 
35
- spec.add_development_dependency "bundler", "~> 2.0"
36
- spec.add_development_dependency "rake", "~> 13.0"
37
- spec.add_development_dependency "rspec", "~> 3.0"
38
- spec.add_development_dependency "rubocop-jekyll", "~> 0.10"
39
- spec.add_development_dependency "simplecov", "~> 0.17.0"
35
+ spec.add_development_dependency "bundler", "~> 2.2.3"
36
+ spec.add_development_dependency "rake", "~> 13.0.6"
37
+ spec.add_development_dependency "rspec", "~> 3.10"
38
+ spec.add_development_dependency "rubocop", "~> 1.18.3"
39
+ spec.add_development_dependency "simplecov", "~> 0.21.2"
40
40
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  class Emoji
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-openmoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammad Mahdi Baghbani Pourvahid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.12'
19
+ version: '2.14'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.12'
26
+ version: '2.14'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: html-pipeline-negarmoji
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.5
33
+ version: 0.1.6
34
34
  type: :runtime
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: 0.1.5
40
+ version: 0.1.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,84 +64,84 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.1.9
67
+ version: 0.1.10
68
68
  type: :runtime
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: 0.1.9
74
+ version: 0.1.10
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: bundler
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2.0'
81
+ version: 2.2.3
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: '2.0'
88
+ version: 2.2.3
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rake
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '13.0'
95
+ version: 13.0.6
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '13.0'
102
+ version: 13.0.6
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '3.0'
109
+ version: '3.10'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '3.0'
116
+ version: '3.10'
117
117
  - !ruby/object:Gem::Dependency
118
- name: rubocop-jekyll
118
+ name: rubocop
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '0.10'
123
+ version: 1.18.3
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '0.10'
130
+ version: 1.18.3
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: simplecov
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 0.17.0
137
+ version: 0.21.2
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 0.17.0
144
+ version: 0.21.2
145
145
  description: |-
146
146
  OpenMoji emoji pack plugin for Jekyll with powerful
147
147
  configuration options and support for various emoji image file
@@ -158,6 +158,8 @@ files:
158
158
  - ".gitlab/issue_templates/Default.md"
159
159
  - ".gitlab/merge_request_templates/Default.md"
160
160
  - ".rspec"
161
+ - ".rubocop.yml"
162
+ - ".rubocop_todo.yml"
161
163
  - CHANGELOG.md
162
164
  - CODE_OF_CONDUCT.md
163
165
  - CONTRIBUTING.md
@@ -173,6 +175,7 @@ files:
173
175
  - lib/jekyll-openmoji/plugin.rb
174
176
  - lib/jekyll-openmoji/version.rb
175
177
  - logo.svg
178
+ - pages_preview.webp
176
179
  homepage: https://gitlab.com/Azadeh-Afzar/Web-Development/OpenMoji-Jekyll-Plugin
177
180
  licenses:
178
181
  - GPL-3.0
@@ -185,14 +188,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
188
  requirements:
186
189
  - - ">="
187
190
  - !ruby/object:Gem::Version
188
- version: 2.3.0
191
+ version: 2.7.2
189
192
  required_rubygems_version: !ruby/object:Gem::Requirement
190
193
  requirements:
191
194
  - - ">="
192
195
  - !ruby/object:Gem::Version
193
196
  version: '0'
194
197
  requirements: []
195
- rubygems_version: 3.1.2
198
+ rubygems_version: 3.2.3
196
199
  signing_key:
197
200
  specification_version: 4
198
201
  summary: OpenMoji emoji plugin for Jekyll