jekyll_emoji_tag 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +29 -19
- data/CHANGELOG.md +12 -0
- data/README.md +19 -2
- data/jekyll_emoji_tag.gemspec +1 -1
- data/lib/emoji.rb +19 -2
- data/lib/jekyll_emoji_tag/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd8729d026118c762fbf96590af45463edd23c3e4d251c7a3fff43855ee8d3a
|
4
|
+
data.tar.gz: cd43beae43873489e14694e8f95d992ae1490d91e5ea5a39261fad4a13021a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c983779ec94aad14427922e797f9a7212208273cd23ac4338d85d3c76ab834a7516d9541655f2b3106b365b9ed191e59c1e726c24c8760651772ae3367c916b5
|
7
|
+
data.tar.gz: 961e62a246bfa76d6b150c19c923beb02dd73f4b795451f00771a659764515c771ba06843158bae125f3c7d80ebb02f2a5579834c6521b3b937e26fb19f31c89
|
data/.rubocop.yml
CHANGED
@@ -8,7 +8,7 @@ require:
|
|
8
8
|
AllCops:
|
9
9
|
Exclude:
|
10
10
|
- binstub/**/*
|
11
|
-
-
|
11
|
+
- demo/_site/*
|
12
12
|
- vendor/**/*
|
13
13
|
- Gemfile*
|
14
14
|
NewCops: enable
|
@@ -30,28 +30,45 @@ Layout/LineLength:
|
|
30
30
|
Max: 150
|
31
31
|
|
32
32
|
Metrics/AbcSize:
|
33
|
-
Max:
|
33
|
+
Max: 55
|
34
34
|
|
35
35
|
Metrics/BlockLength:
|
36
36
|
Exclude:
|
37
|
-
-
|
37
|
+
- jekyll_plugin_support.gemspec
|
38
38
|
Max: 30
|
39
39
|
|
40
40
|
Metrics/CyclomaticComplexity:
|
41
|
-
Max:
|
41
|
+
Max: 25
|
42
42
|
|
43
43
|
Metrics/MethodLength:
|
44
|
-
Max:
|
45
|
-
|
46
|
-
Metrics/ModuleLength:
|
47
|
-
Enabled: false
|
44
|
+
Max: 50
|
48
45
|
|
49
46
|
Metrics/PerceivedComplexity:
|
50
|
-
Max:
|
47
|
+
Max: 25
|
51
48
|
|
52
49
|
Naming/FileName:
|
53
50
|
Exclude:
|
54
51
|
- Rakefile
|
52
|
+
- "*.md"
|
53
|
+
|
54
|
+
RSpec/ExampleLength:
|
55
|
+
Max: 30
|
56
|
+
|
57
|
+
RSpec/SpecFilePathFormat:
|
58
|
+
Enabled: false
|
59
|
+
IgnoreMethods: true
|
60
|
+
|
61
|
+
RSpec/SpecFilePathSuffix:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
RSpec/IndexedLet:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
RSpec/MultipleExpectations:
|
68
|
+
Max: 15
|
69
|
+
|
70
|
+
Style/ClassVars:
|
71
|
+
Enabled: false
|
55
72
|
|
56
73
|
Style/Documentation:
|
57
74
|
Enabled: false
|
@@ -59,15 +76,8 @@ Style/Documentation:
|
|
59
76
|
Style/FrozenStringLiteralComment:
|
60
77
|
Enabled: false
|
61
78
|
|
79
|
+
Style/StringConcatenation:
|
80
|
+
Enabled: false
|
81
|
+
|
62
82
|
Style/TrailingCommaInHashLiteral:
|
63
83
|
EnforcedStyleForMultiline: comma
|
64
|
-
|
65
|
-
RSpec/FilePath:
|
66
|
-
IgnoreMethods: true
|
67
|
-
SpecSuffixOnly: true
|
68
|
-
|
69
|
-
RSpec/ExampleLength:
|
70
|
-
Max: 30
|
71
|
-
|
72
|
-
RSpec/MultipleExpectations:
|
73
|
-
Max: 15
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.1.3 / 2024-07-24
|
4
|
+
|
5
|
+
* Make compatible with `jekyll_plugin_support` v1.0.0
|
6
|
+
|
7
|
+
|
8
|
+
## 0.1.2 / 2024-01-28
|
9
|
+
|
10
|
+
* Added `clap` (hands), `confounded`, `eggplant`, `grimace`, `halo`, `loudly_crying`,
|
11
|
+
(musical) `notes`, `please` (aka prayer, thank you), `rolling` (eyes), `sax`,
|
12
|
+
`sunglasses`, `think`, `unamused`, `vulcan`, `wink`, `worried` and `zipper` emojis.
|
13
|
+
|
14
|
+
|
3
15
|
## 0.1.1 / 2024-01-23
|
4
16
|
|
5
17
|
* Added the `class`, `div` and `style` optional parameters.
|
data/README.md
CHANGED
@@ -31,8 +31,8 @@ $ bundle
|
|
31
31
|
`OPTIONS` are:
|
32
32
|
|
33
33
|
- `align` - `left`, `right` or `inline` (default is inline)
|
34
|
-
- `class` - CSS
|
35
|
-
- `div` - Wrap the emoji in a
|
34
|
+
- `class` - CSS class to apply to the generated emoji
|
35
|
+
- `div` - Wrap the emoji in a <div/> instead of a <span/>
|
36
36
|
- `emoji_and_name` - causes the name of the emoji to be output along with the image (default is false)
|
37
37
|
- `list` - output all emojis (default is false)
|
38
38
|
- `name` - name of emoji (defaults to smiley)
|
@@ -48,16 +48,33 @@ The names of all supported emojis are:
|
|
48
48
|
```text
|
49
49
|
angry
|
50
50
|
boom
|
51
|
+
clap
|
52
|
+
confounded
|
53
|
+
eggplant
|
54
|
+
grimace
|
51
55
|
grin
|
56
|
+
halo
|
52
57
|
horns
|
53
58
|
kiss
|
59
|
+
loudly_cry
|
60
|
+
notes
|
54
61
|
open
|
62
|
+
please
|
55
63
|
poop
|
64
|
+
rolling
|
56
65
|
sad
|
66
|
+
sax
|
57
67
|
scream
|
58
68
|
smiley
|
59
69
|
smirk
|
70
|
+
sunglasses
|
71
|
+
think
|
60
72
|
two_hearts
|
73
|
+
wink
|
74
|
+
worried
|
75
|
+
unamused
|
76
|
+
vulcan
|
77
|
+
zipper
|
61
78
|
```
|
62
79
|
|
63
80
|
## Example Usage
|
data/jekyll_emoji_tag.gemspec
CHANGED
data/lib/emoji.rb
CHANGED
@@ -20,7 +20,7 @@ require_relative 'jekyll_emoji_tag/version'
|
|
20
20
|
# MyTag: debug
|
21
21
|
module JekyllEmojiTag
|
22
22
|
# This class implements the Jekyll emoji functionality
|
23
|
-
class Emoji < JekyllSupport::JekyllTag
|
23
|
+
class Emoji < ::JekyllSupport::JekyllTag
|
24
24
|
PLUGIN_NAME = 'emoji'.freeze
|
25
25
|
VERSION = JekyllEmojiTag::VERSION
|
26
26
|
|
@@ -33,16 +33,33 @@ module JekyllEmojiTag
|
|
33
33
|
Emoji.emojis = {
|
34
34
|
'angry' => '😠',
|
35
35
|
'boom' => '💥', # used when requested emoji is not recognized
|
36
|
+
'clap' => '👏',
|
37
|
+
'confounded' => '😖',
|
38
|
+
'eggplant' => '🍆',
|
39
|
+
'grimace' => '😬',
|
36
40
|
'grin' => '😀',
|
41
|
+
'halo' => '😇',
|
37
42
|
'horns' => '😈',
|
38
43
|
'kiss' => '😙',
|
44
|
+
'loudly_cry' => '😭',
|
45
|
+
'notes' => '🎶',
|
39
46
|
'open' => '😃',
|
47
|
+
'please' => '🙏',
|
40
48
|
'poop' => '💩',
|
49
|
+
'rolling' => '🙄',
|
41
50
|
'sad' => '😢',
|
51
|
+
'sax' => '🎷',
|
42
52
|
'scream' => '😱',
|
43
53
|
'smiley' => '😁', # default emoji
|
44
54
|
'smirk' => '😏',
|
55
|
+
'sunglasses' => '😎',
|
56
|
+
'think' => '🤔',
|
45
57
|
'two_hearts' => '💕',
|
58
|
+
'wink' => '😉',
|
59
|
+
'worried' => '😟',
|
60
|
+
'unamused' => '😒',
|
61
|
+
'vulcan' => '🖖',
|
62
|
+
'zipper' => '🤐',
|
46
63
|
}.sort_by { |k, _v| [k] }.to_h
|
47
64
|
|
48
65
|
# @param tag_name [String] is the name of the tag, which we already know.
|
@@ -117,6 +134,6 @@ module JekyllEmojiTag
|
|
117
134
|
END_RESULT
|
118
135
|
end
|
119
136
|
|
120
|
-
JekyllPluginHelper.register(self, PLUGIN_NAME)
|
137
|
+
::JekyllSupport::JekyllPluginHelper.register(self, PLUGIN_NAME)
|
121
138
|
end
|
122
139
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_emoji_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
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.
|
40
|
+
version: 1.0.0
|
41
41
|
description: 'Inserts an emoji
|
42
42
|
|
43
43
|
'
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.5.
|
87
|
+
rubygems_version: 3.5.16
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Inserts an emoji
|