gemojione 4.0.0 → 4.1.0

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: de0bbcb4998f5dc5e5c36a952e2f9f55a6c818164820b01a33ef40b8efab0092
4
- data.tar.gz: 595ab71b84fb4d26d1bc1946192292c4fb9d5bc11acb2f62987fdf73cd13fb82
3
+ metadata.gz: 455f38287af794c7c5a4dfb785b1d7ee443bf44580c240e31c53846f765c2f4a
4
+ data.tar.gz: c93fc4969e4bdb26439699dd5ec4a88e6e23638e9525588c93ed6e2294c11b76
5
5
  SHA512:
6
- metadata.gz: 1ee36d181ea0364f5e82552ee2337e25127ae4d101dcb9f3d0d7fecd2b1e605e190728bf5db1cf0736f0ff649814a2cdc0b9408ee5d7b49ccec8b0b41683727a
7
- data.tar.gz: 720348c960c07ae5952c69a81329d2ef3be5a2988a71456709d7bdd54ac0352ddde15dddc5dafbb4ad1f45cb40075e40debb0f294de0a3c719ed9eb6fc3075d0
6
+ metadata.gz: 1872d0d8df55a803ff8d1043b38ac561a55e4ffb40a152c489719903b24faf972b08fa3c339a50e02da6e221440efa69f962ec967fc6618f977ff3f78875503e
7
+ data.tar.gz: 2eacb7cc9b7a39f70506d45192c2ecf7697d5bac75c0e38384f54baa214418813ef10aa8ba1aa24b4ea643b49187f9330ed58e16d1444ece1c22982b456c5b62
@@ -20981,7 +20981,7 @@
20981
20981
 
20982
20982
  ],
20983
20983
  "keywords": [
20984
- "accomodation",
20984
+ "accommodation",
20985
20985
  "building",
20986
20986
  "checkin",
20987
20987
  "whotel",
@@ -75,7 +75,7 @@ module Gemojione
75
75
  def self.image_tag_for_moji(moji)
76
76
  if use_sprite
77
77
  emoji = index.find_by_moji(moji)
78
- %Q{<span class="emojione emojione-#{emoji['unicode'].to_s.downcase}" alt="#{ moji }" title="#{ moji }">#{ moji }</span>}
78
+ %Q{<span class="emojione emojione-#{emoji['unicode'].to_s.downcase}" alt="#{ emoji['name'] }" title="#{ emoji['shortname'] }">#{ moji }</span>}
79
79
  else
80
80
  %Q{<img alt="#{moji}" class="emoji" src="#{ image_url_for_unicode_moji(moji) }"#{ default_size ? ' style="width: '+default_size+';"' : '' }>}
81
81
  end
@@ -1,3 +1,3 @@
1
1
  module Gemojione
2
- VERSION = "4.0.0"
2
+ VERSION = "4.1.0"
3
3
  end
@@ -74,7 +74,7 @@ describe Gemojione do
74
74
 
75
75
  it 'should generate spritesheet tag' do
76
76
  with_emoji_config(:use_sprite, true) do
77
- assert_equal "<span class=\"emojione emojione-1f300\" alt=\"🌀\" title=\"🌀\">🌀</span>", Gemojione.image_tag_for_moji('🌀')
77
+ assert_equal "<span class=\"emojione emojione-1f300\" alt=\"cyclone\" title=\":cyclone:\">🌀</span>", Gemojione.image_tag_for_moji('🌀')
78
78
  end
79
79
  end
80
80
  end
@@ -99,7 +99,7 @@ describe Gemojione do
99
99
  with_emoji_config(:use_sprite, true) do
100
100
  base_string = "I ❤ Emoji"
101
101
  replaced_string = Gemojione.replace_unicode_moji_with_images(base_string)
102
- assert_equal "I <span class=\"emojione emojione-2764\" alt=\"❤\" title=\"❤\">❤</span> Emoji", replaced_string
102
+ assert_equal "I <span class=\"emojione emojione-2764\" alt=\"heart\" title=\":heart:\">❤</span> Emoji", replaced_string
103
103
  end
104
104
  end
105
105
 
@@ -167,7 +167,7 @@ describe Gemojione do
167
167
  with_emoji_config(:use_sprite, true) do
168
168
  base_string = "I :heart: Emoji"
169
169
  replaced_string = Gemojione.replace_named_moji_with_images(base_string)
170
- assert_equal "I <span class=\"emojione emojione-2764\" alt=\"❤\" title=\"❤\">❤</span> Emoji", replaced_string
170
+ assert_equal "I <span class=\"emojione emojione-2764\" alt=\"heart\" title=\":heart:\">❤</span> Emoji", replaced_string
171
171
  end
172
172
  end
173
173
 
@@ -266,7 +266,7 @@ describe Gemojione do
266
266
  it 'should replace ascii moji with span tag for sprite' do
267
267
  with_emoji_config(:use_sprite, true) do
268
268
  replaced_string = Gemojione.replace_ascii_moji_with_images("Emoji is :-)")
269
- assert_equal "Emoji is <span class=\"emojione emojione-1f604\" alt=\"😄\" title=\"😄\">😄</span>", replaced_string
269
+ assert_equal "Emoji is <span class=\"emojione emojione-1f604\" alt=\"smile\" title=\":smile:\">😄</span>", replaced_string
270
270
  end
271
271
  end
272
272
  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.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik