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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc673922f537326525c968ac129cefd9ee2758a9
|
4
|
+
data.tar.gz: b1fe1762b5c20b528b2fb3e307e69874ed9f7b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
27
|
-
|
28
|
-
|
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.
|
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
|
-
|
37
|
-
|
38
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|