emojimmy 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 3b91602af2bd44ac75a15100c5adce6812714b88
4
- data.tar.gz: 78a51100063dd6eecedd9609b86ab887c579a89c
3
+ metadata.gz: ef8493a43b4bb8e902e320c6669765768f989696
4
+ data.tar.gz: 028bd38b34d4411f116bbb9f967a75a2366b649d
5
5
  SHA512:
6
- metadata.gz: 7dbf6643c4f6e8aed569aab2a4421827b6ba99035e55d612f92fb230f8e135d3d3982367be1c597295acef2d0681e80d6dfbe77fdfe41abe38d449ceedaffeb4
7
- data.tar.gz: 471b750553f24b09955a70c04e8205ef0c4f6fc3c815294dcaee1972929acd8500e27ccfb474f68fa226acec42fca9146eaae539c0d42f542345ca8f0eb9a377
6
+ metadata.gz: 79df5367c71a8631da3d7a07aa04bae856b665900b925266cee98736de9e23fdefd04122893e93c1c85892f464f10cb111a54364f953bf41c1937bfc3883acd5
7
+ data.tar.gz: 88a7a6acfa3755c759805ceb859148d0309f7fca85cb92695b16a0b2b42ab512f11a94afd6a2f898706c22bf4949d6b55b450ecb9cfb7e14fab160719eac2a99
data/lib/emojimmy.rb CHANGED
@@ -33,6 +33,8 @@ module Emojimmy
33
33
  # Loop through each character in the string and
34
34
  # remove the all emoji ones
35
35
  def self.strip(content)
36
+ return content unless content.present?
37
+
36
38
  content.chars.select do |c|
37
39
  point = c.each_codepoint.to_a.first
38
40
  point <= 65535
@@ -1,3 +1,3 @@
1
1
  module Emojimmy
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emojimmy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost