fanforce 0.16.2 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmE5M2E0NWY1YzRmNGQwZjhjMjg5Njc1MGU3YmVlYjY2ZjgxYWIxNw==
4
+ MGE4YWU5YzQ0Y2NiOTA5MTgyZDc2NTE0MzU0NmYxOGU1ZGExOGMzMw==
5
5
  data.tar.gz: !binary |-
6
- ZWE2ZWU5NjU0Y2MyZTIzMzYyNWFkYTk5MGE3OTI1NWVkZjQ0Yjc5Ng==
6
+ NjQwZGQ3M2FlNjMzMjBiNjNlODMxYzkxZjc3MzMwZjRiMDEyYmJkMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGY5MTZlOWQzYTJmMGQ1NTgxNTdlZGQ1YTNmN2U0ZGQwZGZkMGE4MjUwYjFl
10
- ZDQ5MDUwOTM4Y2ZjNzc2NDkxOTdmM2M1MjFlODViMmFlMjk1MTFjODBhOWM0
11
- ZjY5YzQ2OWZlY2UyY2M5MWFkM2Y0YTZhODM3NmM0ZmU5NWM4NDI=
9
+ NTllNjU4NjMzOTY0NzgwNmM0MjcwNGNjNWE5MjFiNjIwODk1ZWJlMDkzNjBm
10
+ MGQ5ZjE5ZTE4NDdhNzRhZjc1ODU5ZDcxNmY4YzI5NGUxZWE4YzVmZjE4NjEx
11
+ YWJjZDMzZjZkYjZjZTI1MjI0MmMzOTVkOTMwZTRjYTBiYWUzZTA=
12
12
  data.tar.gz: !binary |-
13
- YzNiNzA1OTY3YWI4YTQ5MzY4OTZlNTNjZGQ2NWRkNDI2NjA5ZGQ2OWI3MmI4
14
- ZWVhNzhlZTdkNjZmMjZmOTVhNTJjOWU5Njg2NGM0OGJmZjQ4ZWE5MzViZWM0
15
- ZDU5MjBhZjM0ZjEzMjY5ZTBkNzVkMDFhZmQ3NDE3MDUyNWIxNzI=
13
+ NmMyNjVlODNmN2VkNTFjNGY2ZjI4NmMyNGYxOGQ3YjNiMDYzYmQyOGQ0MGNk
14
+ MTdjMjFlOTEzYmE0NmI4MTA1MWNlMjllY2ZmNzQxNTk4ZTM5ZTZmNGI2NGEx
15
+ YWMyMTkwMDhmOTY2MjAyMmYxZGNjOWJkMjQyYzFmMTQyZjIzZDg=
@@ -4,30 +4,47 @@ module Fanforce::Domains
4
4
  extend Fanforce::Domains
5
5
  def self.included(base) base.extend(self) end
6
6
 
7
+ def environment
8
+ ENV['RACK_ENV'] || 'development'
9
+ end
10
+
11
+ def environ
12
+ case environment
13
+ when 'production' then :Prd
14
+ when 'staging' then :Stg
15
+ when 'test' then :Test
16
+ when 'development' then :Dev
17
+ end
18
+ end
19
+
7
20
  def base_domain
8
- Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:base]
21
+ Fanforce::DomainEnvironments.method(environment).call[:base]
9
22
  end
10
23
 
11
24
  def default_short_domain
12
- Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:default_short_domain]
25
+ Fanforce::DomainEnvironments.method(environment).call[:default_short_domain]
13
26
  end
14
27
 
15
28
  def apps_base_domain
16
- Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:apps_base]
29
+ Fanforce::DomainEnvironments.method(environment).call[:apps_base]
17
30
  end
18
31
 
19
32
  def plugins_base_domain
20
- Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:plugins_base]
33
+ Fanforce::DomainEnvironments.method(environment).call[:plugins_base]
21
34
  end
22
35
 
23
36
  def widgets_base_domain
24
- Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:widgets_base]
37
+ Fanforce::DomainEnvironments.method(environment).call[:widgets_base]
25
38
  end
26
39
 
27
40
  def api_domain
28
41
  'api.' + base_domain
29
42
  end
30
43
 
44
+ def api_domain_ssl
45
+ environment == 'development' ? api_domain : "#{environ.to_s.downcase}-supercore-api.herokuapp.com"
46
+ end
47
+
31
48
  def eye_domain
32
49
  'i.' + base_domain
33
50
  end
@@ -36,6 +53,10 @@ module Fanforce::Domains
36
53
  'assets.' + base_domain
37
54
  end
38
55
 
56
+ def assets_domain_ssl
57
+ environment == 'development' ? assets_domain : "#{environ.to_s.downcase}-supercore-assets.herokuapp.com"
58
+ end
59
+
39
60
  def controller_domain
40
61
  'controller.' + base_domain
41
62
  end
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = '0.16.2'
2
+ VERSION = '0.17.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack