aptible-rails 0.6.9 → 0.6.10

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: 077945c2763d300c6ffa78be59b3dc4176223cc0
4
- data.tar.gz: ec99d37daa03c53066674c192900d437107e8e33
3
+ metadata.gz: cc673922f537326525c968ac129cefd9ee2758a9
4
+ data.tar.gz: b1fe1762b5c20b528b2fb3e307e69874ed9f7b51
5
5
  SHA512:
6
- metadata.gz: b8963c514e3419f5e7a8c18e38a149f6a3ad193f59ad5a70a7f5793509c1cd4b865008b05a0847702c181bbc47596ac380da3ecfbf00f841c2c1fab7e9fdc403
7
- data.tar.gz: 58e85c52421f23c6b00c48354e3d1dac1354cd41fd8a537bffd2fadf77bb30292524c7306195d6d03c2d91066be4057de17c4f69ce86dc8ddc764dca9e00305e
6
+ metadata.gz: 4f1ee4360b520e273c2327c89fd043bf49a35031f1c2c32a1b1bf6cf95395b32532260cea7c366633e652b78339fb926f034465f9c7dcf9e99b337b7c44406e7
7
+ data.tar.gz: ca4c0f0f401488c02cd4f788ad3d7d8a16c1bf63132d841e16d0f4121b9a349140a5db2712fb1e06ea80d7d8272aef6fd49642fb461f71aba23b48ba7b702ba3
@@ -19,23 +19,23 @@ class CriterionAlertDecorator < Draper::Decorator
19
19
  end
20
20
 
21
21
  def app_security_interview_alerts
22
- all_apps.reduce([]) do |memo, app|
23
- next if completed_apps.any? { |href| href == app.href }
22
+ all_apps.map do |app|
23
+ next [] if completed_apps.any? { |href| href == app.href }
24
24
  app_path = Aptible::Security::Engine.routes.url_helpers
25
25
  .app_path(id: app.id)
26
- memo + [Alert.new(subject: app.handle, subject_href: app_path,
27
- requirement: 'needs an App Security Interview',
28
- cta: 'Complete App Security Interview')]
26
+ [Alert.new(subject: app.handle, subject_href: app_path,
27
+ requirement: 'needs an App Security Interview',
28
+ cta: 'Complete App Security Interview')]
29
29
  end
30
30
  end
31
31
 
32
32
  def training_log_alerts
33
- all_users.reduce([]) do |memo, user|
34
- next if completed_users.any? { |href| href == user.href }
33
+ all_users.map do |user|
34
+ next [] if completed_users.any? { |href| href == user.href }
35
35
  user_path = Aptible::Training::Engine.routes.url_helpers.root_path
36
- memo + [Alert.new(subject: user.name, subject_href: user_path,
37
- requirement: 'needs Basic HIPAA Training',
38
- cta: 'Complete Training')]
36
+ [Alert.new(subject: user.name, subject_href: user_path,
37
+ requirement: 'needs Basic HIPAA Training',
38
+ cta: 'Complete Training')]
39
39
  end
40
40
  end
41
41
 
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Rails
3
- VERSION = '0.6.9'
3
+ VERSION = '0.6.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config