flame-flash 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flame/flash_array.rb +3 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15ec5eafd3c1f0c0795ca3f5794eeede417eaec0
4
- data.tar.gz: 3b4d042da4f761a02e0d35c6ed70e61437cfa752
3
+ metadata.gz: ea1cacb15fd283c163aa29aee8b941d67427cec1
4
+ data.tar.gz: bd4cd87b026af3a9474666d412925b596d5e3df4
5
5
  SHA512:
6
- metadata.gz: 69374426d41ae6bbea6538e7fd40c7c52e4cf12e358442c7261e503c5c8e639a73564dbd701bbabcd572e416067ec4b1c13235773a39165e6b7197e12af9bd27
7
- data.tar.gz: 302830761a9bb393c7224d2cf638597999b0ae4982a21716676b1815ad45091037b8a155391432a24e55833083a3f03ac5c3bf32fddc35e3d66add2cbc8084e6
6
+ metadata.gz: abfa3070726c73e2cbfa2a123cee60dfcd9c5685fdd0fd3bb2049f129e4b28dd5eb154e06bcf907f525911c89527aee382dec07b2b5244ffd6ba2fd3cd75e7c8
7
+ data.tar.gz: 01d21c3c97994f9ca72af59bee2e81faa101761175c17347c0e8aa92a4784b222cd67c92e39689a26a73de7a2323a1b99a9aa4647c54b87d40f854492b94203e
@@ -62,12 +62,10 @@ module Flame
62
62
  end
63
63
 
64
64
  def fix_messages_as_array
65
- @now.each do |hash|
65
+ @now.each_with_index do |hash, ind|
66
66
  next unless hash[:text].is_a?(Array)
67
- hash_with_arr = @now.delete(hash)
68
- hash_with_arr[:text].each do |text|
69
- @now.push(hash_with_arr.merge(text: text))
70
- end
67
+ hash = @now.delete(hash)
68
+ @now.insert(ind, hash[:text].map { |text| hash.merge(text: text) })
71
69
  end
72
70
  end
73
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flame
@@ -40,7 +40,7 @@ extra_rdoc_files: []
40
40
  files:
41
41
  - lib/flame/flash.rb
42
42
  - lib/flame/flash_array.rb
43
- homepage: https://gitlab.com/AlexWayfer/flame-flash
43
+ homepage: https://github.com/AlexWayfer/flame-flash
44
44
  licenses:
45
45
  - MIT
46
46
  metadata: {}