gemojione 4.3.2 → 4.3.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: 8992fdacb0c757c6897a553a4898a7feece859a1a210039c1e7ef123b33a2cb7
4
- data.tar.gz: 6b4fbc7f2c4e5c2980c4a23dda1a07d6b7ab026dda13260197827cf0939ebae2
3
+ metadata.gz: 7a72f6ed140666bf94098bdba828c1d3fb361f36cddda624a68cc94aa72b8107
4
+ data.tar.gz: b971716759c110d90f9fb6766ebde34c8208e93d82abdea3095deb18f98309c8
5
5
  SHA512:
6
- metadata.gz: dd4a89d2c1251072f97b829dbbcfe4cb89600e7810ff937b7354b7d1b011d2d0da8e908176b0b2a644b200ef94567851aad3d287e90997bfa5ed279c05949730
7
- data.tar.gz: 76de6808087a3fa5c8a552f62f8e36d034483fc71b3d5a46ca5028bfb1d6959a2db0fdebabe9fd7976b6ade20b324be949b77e916428abf7290bfa8ebc349b65
6
+ metadata.gz: 8b866ebc7a685e0294ad09f9bfcaaf07016ad3ecef0d9c1f744656a18c9c61b81acd4c648533eb7678342192badc1b023728d32d6da043b4897d5412b0913f94
7
+ data.tar.gz: c21b4397caa78ebb3c9f9d9578f9a12624446f2969be0f30590969072f7ad59eaf3bab9fc5645e867c9d5638701a224064a592996689751ee2b251a90c16d446
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.7.1
data/README.md CHANGED
@@ -222,6 +222,14 @@ This gem is a former fork of the [emoji](https://github.com/wpeterson/emoji) gem
222
222
  ## Notes
223
223
  Run `rake resprite` to regenerate the spritesheets if you're adding new images
224
224
 
225
+ ## About Bonusly
226
+
227
+ ![Bonusly Logo](https://bonusly-files.s3.amazonaws.com/bonusly-logo.png?small)
228
+
229
+ Bonusly is the fun and easy way to engage all of your employees and improve retention and productivity at every level of your organization.
230
+
231
+ Check out [our product](https://bonus.ly) or [our engineering blog](https://engineering.bonus.ly).
232
+
225
233
  [emojionelink]: https://www.emojione.com/blog/emojione-45-now-available
226
234
  [emojiver]:
227
235
  https://img.shields.io/badge/emojione-v4.5-blue.svg
@@ -235,3 +243,4 @@ https://img.shields.io/badge/emojione-v4.5-blue.svg
235
243
  [coverage]: https://img.shields.io/codeclimate/coverage/github/jonathanwiesel/gemojione.svg
236
244
  [codeclimate]: https://codeclimate.com/github/jonathanwiesel/gemojione
237
245
  [gpa]: https://img.shields.io/codeclimate/github/jonathanwiesel/gemojione.svg
246
+
@@ -25149,6 +25149,7 @@
25149
25149
  ],
25150
25150
  "name": "reversed hand with middle finger extended",
25151
25151
  "shortname": ":middle_finger:",
25152
+ "explicit": "true",
25152
25153
  "category": "people",
25153
25154
  "aliases": [
25154
25155
  ":reversed_hand_with_middle_finger_extended:"
@@ -50356,6 +50357,7 @@
50356
50357
  "shortname": ":face_with_symbols_over_mouth:",
50357
50358
  "category": "people",
50358
50359
  "moji": "🤬",
50360
+ "explicit": "true",
50359
50361
  "unicode_alternates": [
50360
50362
 
50361
50363
  ],
@@ -1,10 +1,12 @@
1
1
  module Gemojione
2
2
  class Categories
3
- def self.all
4
- new.all
3
+ def self.all(hide_explicit=false)
4
+ new.all(hide_explicit)
5
5
  end
6
6
 
7
- def all
7
+ def all(hide_explicit)
8
+ @hide_explicit = hide_explicit
9
+
8
10
  categories.each_with_object({}) do |category, hash|
9
11
  hash[category.capitalize] = mojis_for_category(category)
10
12
  end
@@ -12,6 +14,8 @@ module Gemojione
12
14
 
13
15
  private
14
16
 
17
+ attr_reader :hide_explicit
18
+
15
19
  def index
16
20
  @index ||= Gemojione::Index.new
17
21
  end
@@ -22,8 +26,9 @@ module Gemojione
22
26
 
23
27
  def mojis_for_category(category)
24
28
  send(category).map do |name|
25
- index.find_by_name(name)
26
- end
29
+ moji = index.find_by_name(name)
30
+ moji unless hide_explicit && moji['explicit']
31
+ end.compact
27
32
  end
28
33
 
29
34
  def people
@@ -1,3 +1,3 @@
1
1
  module Gemojione
2
- VERSION = "4.3.2"
2
+ VERSION = "4.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemojione
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-10-23 00:00:00.000000000 Z
14
+ date: 2020-06-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
@@ -4799,8 +4799,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4799
4799
  - !ruby/object:Gem::Version
4800
4800
  version: '0'
4801
4801
  requirements: []
4802
- rubyforge_project:
4803
- rubygems_version: 2.7.6
4802
+ rubygems_version: 3.1.3
4804
4803
  signing_key:
4805
4804
  specification_version: 4
4806
4805
  summary: A gem for EmojiOne