somemoji 0.4.4 → 0.4.5

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: e5852a9c3363550f38b718ae54ed39d7ba6057bd
4
- data.tar.gz: ae060d3d15d5afa05c8d9b4c89884d4e534fc39e
3
+ metadata.gz: 2201b01a4cdcc5d384154078e5dc4e7542fadc52
4
+ data.tar.gz: 1481dd7395b09f4a98ec966af25e3c2bb61acec5
5
5
  SHA512:
6
- metadata.gz: d55e5136dcc91c79f48d3bff1b693215b1f95338be06f3e19611f48d5d3e2959fed584de657c10272dd0337df7d03b174b7b575defd3081d02af1acc432d00c6
7
- data.tar.gz: ba98650377f116b9706cc86b5ff12d22bdaeb022e7c4e486d09af5ed4b78e6fdb4ccef82efe043ab554281b8e2d44eec0ce7bc0cb14da3a3481eb019986c646f
6
+ metadata.gz: 63ef3f5f5e9dbdead0bbe89377b73098877abf0b15cc6903fb39b69db2950184eccfe2277008159153f2fcd531fdfdf738d3aa5f6f3558efdb68ce4f820a0d9f
7
+ data.tar.gz: 1cc062f63951f0855aaba1b369973aecc9b8386592cabf5e38fe995b26338c347c96d70b9bcbacf37280e4cbb02bb7f021058e5e8e41c4e83253f5447d422024
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.4.5
2
+
3
+ - Improve `Somemoji::EmojiCollection#search_by_code` so that it matches with aliases
4
+
1
5
  ## v0.4.4
2
6
 
3
7
  - Support `Somemoji::EmojiCollection#search_by_code`
@@ -135,7 +135,9 @@ module Somemoji
135
135
  def search_by_code(pattern)
136
136
  self.class.new(
137
137
  select do |emoji|
138
- pattern === emoji.code
138
+ pattern === emoji.code || emoji.aliases.any? do |alias_code|
139
+ pattern === alias_code
140
+ end
139
141
  end
140
142
  )
141
143
  end
@@ -1,3 +1,3 @@
1
1
  module Somemoji
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: somemoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura