emojidex 0.4.0 → 0.4.1

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: 2e959579357aeba554ee22e943695350f4e8531e
4
- data.tar.gz: 2a35e42c90834d6324fef0beabd2fbebfc728d09
3
+ metadata.gz: cce7cdec00c3b23bc7059ed49502254c99dee5e2
4
+ data.tar.gz: 86a5d7ea935890221337d2ac46e54d84c1e3a149
5
5
  SHA512:
6
- metadata.gz: 47764eda85a0f7fbb57db70dddbd267b377b7db322bb04c9f10d652bc3883d585467cf45ee7059cb144731787441c4a6f02dab6253becac0c443be4734ac6427
7
- data.tar.gz: 2349ecb35576c0b56026905657c017848ee764cdf508bc4f89789905184998a138327e383c960272c320cf91da44ca2b1eee165a4cd1b267283bfc445bcd78f5
6
+ metadata.gz: b0fde5f83a4bf1a471082985b2355bdd0790e3d9587b85a2c94054deefabcfcdaf8e761b3e3d2ac67fd81751711a331c83056ca2f97a48c9880af829b58d8673
7
+ data.tar.gz: 7e8d26c3b1dfd7128609e421c3bd5d55fcd880a9ecdfd09b0fd948439dcf4f80867e837c0815ae22e6c84c49e9f32246b2fbf4070401fe8950e245bfb2365241
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.license = 'emojiOL'
5
5
  s.summary = 'emojidex Ruby tools'
6
6
  s.description = 'emojidex emoji handling, search and lookup, listing and caching functionality' \
@@ -12,6 +12,9 @@ module Emojidex
12
12
  moji.combinations.each do |combo|
13
13
  combo.checksums = get_combo_checksums(moji, combo, formats, sizes)
14
14
  end
15
+ moji.customizations.each do |combo|
16
+ combo.checksums = get_combo_checksums(moji, combo, formats, sizes)
17
+ end
15
18
  end
16
19
  end
17
20
 
@@ -26,8 +26,18 @@ module Emojidex
26
26
 
27
27
  def add_customization(combo)
28
28
  _check_and_init_combinations
29
- @customizations << combo
30
- @customizations.uniq!
29
+ added = false
30
+ @customizations.each do |customization|
31
+ if (customization.base == combo.base) &&
32
+ (customization.component_layer_order == combo.component_layer_order)
33
+ for i in 0..(customization.components.length - 1)
34
+ customization.components[i] = customization.components[i] | combo.components[i]
35
+ end
36
+ added = true
37
+ end
38
+ end
39
+
40
+ @customizations << combo unless added
31
41
  end
32
42
 
33
43
  private
@@ -21,7 +21,7 @@ module Emojidex
21
21
  cdn: {
22
22
  host: 'cdn.emojidex.com',
23
23
  prefix: '/emoji/',
24
- protocol: 'http'
24
+ protocol: 'https'
25
25
  },
26
26
  closed_net: false
27
27
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emojidex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday