flyer 1.1.1 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3c6be37a754de57e7de456243de89e5b30e8159
4
- data.tar.gz: 877d95f47b43563d38aa76d726097d3875cea4af
3
+ metadata.gz: eeec6b86f603cedcb3ecbf34991781cb73df1728
4
+ data.tar.gz: 747c55c276a9cb1220f1e8bc68dc051ac2129f5d
5
5
  SHA512:
6
- metadata.gz: e36b822ecb35b83ab43e30ce782f6c11d3bbb39923d001233306477d626047098ebc0ed3051d574e73efe00c336b94567a78810665446133e7aac4a08fbe69ae
7
- data.tar.gz: 2332f60800af1e4f9bf63f1f55bfe50960716920e3cc781d8597cc9705a63ad805e112c2f6df6cf5dd2c95cb8fa1659513311956229cc203d71c2ea4cf0fea19
6
+ metadata.gz: b5038f3bfdd2a46c0fd351c2314a8bcd0c7d2b26f6d304ab7a8cd8e3e02947d195dcbdb212381b8ebb96cffe9a6d8fad6ca7a50baf4c6349ecfecb176c3069ba
7
+ data.tar.gz: c4807f3126bc4262d2b0c843dba5143e7dac52066676a64ff9c20b21c6f5a026dd46f5e65ac3cbf999f884d68f8844d9c5076d99a7f4e5e2c624349192593d7d
@@ -8,13 +8,15 @@ module Flyer::ControllerAdditions
8
8
  Flyer::Notification.notifications.count
9
9
 
10
10
  found_notifications = []
11
- Flyer::Notification.notifications.each_with_index do |n, index|
11
+ count = 0
12
+ Flyer::Notification.notifications.each do |n|
12
13
  notification = Flyer::Notification.new(self)
13
14
  n.call(notification)
14
15
  notification.validate!
15
- if notification.visible? and index < limit
16
+ if notification.visible? and count < limit
16
17
  notification.used!
17
18
  found_notifications << notification.view
19
+ count += 1
18
20
  end
19
21
  end
20
22
 
@@ -1,3 +1,3 @@
1
1
  module Flyer
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander