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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6eb6b23f31b0027e1c56bd56cb401e238f306b68446f90f5099f6b54865771cc
4
- data.tar.gz: 5f7db9dde9f792bce5ab4b254187de9fc4388ba6b28eb8b5bf36189f136cfc4d
3
+ metadata.gz: ddd8729d026118c762fbf96590af45463edd23c3e4d251c7a3fff43855ee8d3a
4
+ data.tar.gz: cd43beae43873489e14694e8f95d992ae1490d91e5ea5a39261fad4a13021a83
5
5
  SHA512:
6
- metadata.gz: 9f6ea9272747a6e5db45df59756cdaac437c87cf4e3d00a7e3db3aaa868585776439aec0c6620823bc48f038c06ac769f7e72b7867618e0bbdf52e4392fec280
7
- data.tar.gz: 60eda292128ef83af1bfa225adbc824a493d31d3f3d5689580d9f690c08db67e81e92a576f696bdd282fd40378c551ce2e817f905c55ca46775fde3a481c0a94
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
- - binstub/**/*
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: 35
33
+ Max: 55
34
34
 
35
35
  Metrics/BlockLength:
36
36
  Exclude:
37
- - jekyll_emoji_tag.gemspec
37
+ - jekyll_plugin_support.gemspec
38
38
  Max: 30
39
39
 
40
40
  Metrics/CyclomaticComplexity:
41
- Max: 15
41
+ Max: 25
42
42
 
43
43
  Metrics/MethodLength:
44
- Max: 40
45
-
46
- Metrics/ModuleLength:
47
- Enabled: false
44
+ Max: 50
48
45
 
49
46
  Metrics/PerceivedComplexity:
50
- Max: 15
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 style to add to the generated emoji
35
- - `div` - Wrap the emoji in a <div> instead of a <span>
34
+ - `class` - CSS class to apply to the generated emoji
35
+ - `div` - Wrap the emoji in a &lt;div/> instead of a &lt;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
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.version = JekyllEmojiTag::VERSION
31
31
 
32
32
  spec.add_dependency 'jekyll', '>= 3.5.0'
33
- spec.add_dependency 'jekyll_plugin_support', '>= 0.7.0'
33
+ spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
34
34
  end
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' => '&#x1F620;',
35
35
  'boom' => '&#x1F4A5;', # used when requested emoji is not recognized
36
+ 'clap' => '&#x1F44F;',
37
+ 'confounded' => '&#x1F616;',
38
+ 'eggplant' => '&#x1F346;',
39
+ 'grimace' => '&#x1F62C;',
36
40
  'grin' => '&#128512;',
41
+ 'halo' => '&#x1F607;',
37
42
  'horns' => '&#128520;',
38
43
  'kiss' => '&#x1F619;',
44
+ 'loudly_cry' => '&#x1F62D;',
45
+ 'notes' => '&#x1F3B6;',
39
46
  'open' => '&#128515;',
47
+ 'please' => '&#x1F64F;',
40
48
  'poop' => '&#x1F4A9;',
49
+ 'rolling' => '&#x1F644;',
41
50
  'sad' => '&#128546;',
51
+ 'sax' => '&#x1F3B7;',
42
52
  'scream' => '&#x1F631;',
43
53
  'smiley' => '&#x1F601;', # default emoji
44
54
  'smirk' => '&#x1F60F;',
55
+ 'sunglasses' => '&#x1F60E;',
56
+ 'think' => '&#x1F914;',
45
57
  'two_hearts' => '&#x1F495;',
58
+ 'wink' => '&#x1F609;',
59
+ 'worried' => '&#x1f61f;',
60
+ 'unamused' => '&#x1F612;',
61
+ 'vulcan' => '&#x1F596;',
62
+ 'zipper' => '&#x1F910;',
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
@@ -1,3 +1,3 @@
1
1
  module JekyllEmojiTag
2
- VERSION = '0.1.1'.freeze unless defined? VERSION
2
+ VERSION = '0.1.3'.freeze unless defined? VERSION
3
3
  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.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-01-23 00:00:00.000000000 Z
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.7.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.7.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.5
87
+ rubygems_version: 3.5.16
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Inserts an emoji