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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37db356e57331338250fb12a2c9adf1624aedf51
4
- data.tar.gz: 8fa20a4592cce8567cc5251673bc07ee3b79ea65
3
+ metadata.gz: 865cd4603e590decd8b6e538849d0341c9fde60a
4
+ data.tar.gz: d7f37a2acf08590e8dc4efae883ee85b171704e1
5
5
  SHA512:
6
- metadata.gz: 5854bd2289d3bfe0acfeab2ec15ad5ec9289b72eeb5f2f370611ec34c77e3c0f8b9b7be0eea5d1e42c26d730db8d80a3751c738c57e24de0baa81767c2cf018b
7
- data.tar.gz: dfdda54762578cf059ca459f5c4ff90735dc8ebd67dbb4f4e71c868613cf68999b6a286e222a3741a39cca3d0c54060df51a853d43ff82b18d7eaa2a525c54b6
6
+ metadata.gz: 231edfa0604cbc92672fec4c4cd92145ed846b36dabf635b5112fa046cfaa57d72ae48fbd24b09caea501f44d2895b8f587e01b0093e351f3256a35285c71578
7
+ data.tar.gz: 1372bfebd2189598e1f8235e4d577479bfe7f5fd74f728be04c856b539d8e29462b86f6653849955c495f747f162d34fa049888f6e820c9f437ddb597ca0160d
@@ -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
- case environment.to_sym
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
 
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Auth
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.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: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan