aptible-rails 0.5.4 → 0.6.0
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: 9520a85027c4b70faf022266f45089da536bbd2c
|
4
|
+
data.tar.gz: db1ab4be12b0cd93f409d1f231a732e2f87c1ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e944e3e449f95eeaf43b53dc359b163813cba6fe00f45850d080632a975cdf0ffe07b8af5c590350051f1301ef33f06baae9b8c484b5eb088e7cf79bde6603d
|
7
|
+
data.tar.gz: edf36846f729d67e817951472d33df86665d5fff14c756deabffaa98adaaffca9bf03758e27704c9bccb80e800596943dce521d2714b09e2bd984f33fec3494f
|
data/README.md
CHANGED
@@ -29,4 +29,6 @@ TODO: Add usage notes.
|
|
29
29
|
|
30
30
|
MIT License, see [LICENSE](LICENSE.md) for details.
|
31
31
|
|
32
|
-
Copyright (c) 2014 [Aptible](https://www.aptible.com)
|
32
|
+
Copyright (c) 2014 [Aptible](https://www.aptible.com) and contributors.
|
33
|
+
|
34
|
+
[<img src="https://s.gravatar.com/avatar/9b58236204e844e3181e43e05ddb0809?s=60" style="border-radius: 50%;" alt="@sandersonet" />](https://github.com/sandersonet)
|
data/lib/aptible/rails.rb
CHANGED
@@ -10,12 +10,8 @@ module Aptible
|
|
10
10
|
'https://dashboard.aptible.com'
|
11
11
|
default_marketing_root_url = ENV['APTIBLE_MARKETING_ROOT_URL'] ||
|
12
12
|
'https://www.aptible.com'
|
13
|
-
|
14
|
-
|
15
|
-
default_risk_root_url = ENV['APTIBLE_RISK_ROOT_URL'] ||
|
16
|
-
'https://risk.aptible.com'
|
17
|
-
default_security_root_url = ENV['APTIBLE_SECURITY_ROOT_URL'] ||
|
18
|
-
'https://security.aptible.com'
|
13
|
+
default_compliance_root_url = ENV['APTIBLE_COMPLIANCE_ROOT_URL'] ||
|
14
|
+
'https://compliance.aptible.com'
|
19
15
|
|
20
16
|
with_configuration do
|
21
17
|
# Where users will be redirected on
|
@@ -27,14 +23,10 @@ module Aptible
|
|
27
23
|
default: default_dashboard_root_url
|
28
24
|
has :login_url, classes: [String],
|
29
25
|
default: "#{default_dashboard_root_url}/login"
|
26
|
+
has :compliance_root_url, classes: [String],
|
27
|
+
default: default_compliance_root_url
|
30
28
|
has :marketing_root_url, classes: [String],
|
31
29
|
default: default_marketing_root_url
|
32
|
-
has :policy_root_url, classes: [String],
|
33
|
-
default: default_policy_root_url
|
34
|
-
has :risk_root_url, classes: [String],
|
35
|
-
default: default_risk_root_url
|
36
|
-
has :security_root_url, classes: [String],
|
37
|
-
default: default_security_root_url
|
38
30
|
end
|
39
31
|
end
|
40
32
|
end
|
@@ -25,8 +25,8 @@ class UserDecorator < ApplicationDecorator
|
|
25
25
|
|
26
26
|
def cached_organization_roles(organization)
|
27
27
|
garner.bind(h.controller.session_token)
|
28
|
-
|
29
|
-
|
28
|
+
.bind(organization)
|
29
|
+
.bind(object) do
|
30
30
|
object.organization_roles(organization)
|
31
31
|
end
|
32
32
|
end
|
@@ -12,17 +12,13 @@ module Aptible
|
|
12
12
|
def self.aptible_config
|
13
13
|
Aptible::Rails.configuration
|
14
14
|
end
|
15
|
-
|
15
|
+
# rubocop:disable MultilineOperationIndentation
|
16
16
|
register_url :about_url,
|
17
17
|
aptible_config.marketing_root_url + '/about'
|
18
18
|
register_url :apps_url,
|
19
19
|
aptible_config.dashboard_root_url + '/apps'
|
20
|
-
register_url :audits_url,
|
21
|
-
aptible_config.marketing_root_url + '/stressfree'
|
22
|
-
# Tumblr doesn't support HTTPS w/ our own domain
|
23
20
|
register_url :blog_url, 'http://blog.aptible.com'
|
24
|
-
register_url :compliance_url,
|
25
|
-
aptible_config.dashboard_root_url + '/compliance'
|
21
|
+
register_url :compliance_url, aptible_config.compliance_root_url
|
26
22
|
register_url :contact_support_url,
|
27
23
|
aptible_config.marketing_root_url + '/support'
|
28
24
|
register_url :contact_url,
|
@@ -32,7 +28,6 @@ module Aptible
|
|
32
28
|
aptible_config.dashboard_root_url + '/session'
|
33
29
|
register_url :databases_url,
|
34
30
|
aptible_config.dashboard_root_url + '/databases'
|
35
|
-
register_url :docs_url, aptible_config.marketing_root_url + '/docs'
|
36
31
|
register_url :edit_organization_url,
|
37
32
|
aptible_config.dashboard_root_url + '/organization'
|
38
33
|
register_url :edit_user_url,
|
@@ -44,26 +39,22 @@ module Aptible
|
|
44
39
|
register_url :marketing_url, aptible_config.marketing_root_url
|
45
40
|
register_url :organizations_url,
|
46
41
|
aptible_config.dashboard_root_url + '/organizations'
|
47
|
-
register_url :policy_url,
|
42
|
+
register_url :policy_url,
|
43
|
+
aptible_config.compliance_root_url + '/policy'
|
48
44
|
register_url :pricing_url,
|
49
45
|
aptible_config.marketing_root_url + '/pricing'
|
50
|
-
register_url :privacy_url,
|
51
|
-
aptible_config.marketing_root_url + '/privacy'
|
52
46
|
register_url :responsible_disclosure_url,
|
53
47
|
aptible_config.marketing_root_url +
|
54
48
|
'/legal/responsible_disclosure.html'
|
55
|
-
register_url :risk_url, aptible_config.
|
49
|
+
register_url :risk_url, aptible_config.compliance_root_url + '/risk'
|
56
50
|
register_url :roles_url, aptible_config.dashboard_root_url + '/roles'
|
57
|
-
register_url :security_url,
|
58
|
-
|
59
|
-
aptible_config.marketing_root_url + '/security'
|
60
|
-
# Statuspage.io requires a business-tier plan for SSL
|
61
|
-
register_url :status_url, 'http://status.aptible.com/'
|
62
|
-
# Groove doesn't support HTTPS w/ our own domain
|
63
|
-
register_url :support_url, 'http://support.aptible.com'
|
64
|
-
register_url :terms_url, aptible_config.marketing_root_url + '/terms'
|
51
|
+
register_url :security_url,
|
52
|
+
aptible_config.compliance_root_url + '/security'
|
65
53
|
register_url :training_url,
|
66
|
-
aptible_config.
|
54
|
+
aptible_config.compliance_root_url + '/training'
|
55
|
+
register_url :status_url, 'http://status.aptible.com/'
|
56
|
+
register_url :support_url, 'https://support.aptible.com'
|
57
|
+
# rubocop:enable MultilineOperationIndentation
|
67
58
|
end
|
68
59
|
end
|
69
60
|
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.
|
4
|
+
version: 0.6.0
|
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-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|