wcc-auth 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wcc/auth/config.rb +2 -9
- data/lib/wcc/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865cd4603e590decd8b6e538849d0341c9fde60a
|
4
|
+
data.tar.gz: d7f37a2acf08590e8dc4efae883ee85b171704e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231edfa0604cbc92672fec4c4cd92145ed846b36dabf635b5112fa046cfaa57d72ae48fbd24b09caea501f44d2895b8f587e01b0093e351f3256a35285c71578
|
7
|
+
data.tar.gz: 1372bfebd2189598e1f8235e4d577479bfe7f5fd74f728be04c856b539d8e29462b86f6653849955c495f747f162d34fa049888f6e820c9f437ddb597ca0160d
|
data/lib/wcc/auth/config.rb
CHANGED
@@ -42,14 +42,7 @@ WCC::Auth::Config = Struct.new(:environment,
|
|
42
42
|
def nucleus_url
|
43
43
|
return ENV['NUCLEUS_URL'] if ENV['NUCLEUS_URL']
|
44
44
|
|
45
|
-
|
46
|
-
when :production
|
47
|
-
"https://login.watermark.org"
|
48
|
-
when :staging
|
49
|
-
"http://login.staging.watermark.org"
|
50
|
-
when :development
|
51
|
-
"http://login.dev"
|
52
|
-
end
|
45
|
+
"#{app_url_protocol_for(environment)}://login#{app_domain_suffix_for(environment)}"
|
53
46
|
end
|
54
47
|
|
55
48
|
def app_domain_suffix_for(environment)
|
@@ -59,7 +52,7 @@ WCC::Auth::Config = Struct.new(:environment,
|
|
59
52
|
when :staging
|
60
53
|
".staging.watermark.org"
|
61
54
|
when :development
|
62
|
-
".dev"
|
55
|
+
ENV["WATERMARK_DEV_ENV_DOMAIN"] || ".dev"
|
63
56
|
end
|
64
57
|
end
|
65
58
|
|
data/lib/wcc/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Petticrew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|