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 +8 -8
- data/lib/fanforce/domains.rb +26 -5
- data/lib/fanforce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGE4YWU5YzQ0Y2NiOTA5MTgyZDc2NTE0MzU0NmYxOGU1ZGExOGMzMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjQwZGQ3M2FlNjMzMjBiNjNlODMxYzkxZjc3MzMwZjRiMDEyYmJkMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTllNjU4NjMzOTY0NzgwNmM0MjcwNGNjNWE5MjFiNjIwODk1ZWJlMDkzNjBm
|
10
|
+
MGQ5ZjE5ZTE4NDdhNzRhZjc1ODU5ZDcxNmY4YzI5NGUxZWE4YzVmZjE4NjEx
|
11
|
+
YWJjZDMzZjZkYjZjZTI1MjI0MmMzOTVkOTMwZTRjYTBiYWUzZTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmMyNjVlODNmN2VkNTFjNGY2ZjI4NmMyNGYxOGQ3YjNiMDYzYmQyOGQ0MGNk
|
14
|
+
MTdjMjFlOTEzYmE0NmI4MTA1MWNlMjllY2ZmNzQxNTk4ZTM5ZTZmNGI2NGEx
|
15
|
+
YWMyMTkwMDhmOTY2MjAyMmYxZGNjOWJkMjQyYzFmMTQyZjIzZDg=
|
data/lib/fanforce/domains.rb
CHANGED
@@ -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(
|
21
|
+
Fanforce::DomainEnvironments.method(environment).call[:base]
|
9
22
|
end
|
10
23
|
|
11
24
|
def default_short_domain
|
12
|
-
Fanforce::DomainEnvironments.method(
|
25
|
+
Fanforce::DomainEnvironments.method(environment).call[:default_short_domain]
|
13
26
|
end
|
14
27
|
|
15
28
|
def apps_base_domain
|
16
|
-
Fanforce::DomainEnvironments.method(
|
29
|
+
Fanforce::DomainEnvironments.method(environment).call[:apps_base]
|
17
30
|
end
|
18
31
|
|
19
32
|
def plugins_base_domain
|
20
|
-
Fanforce::DomainEnvironments.method(
|
33
|
+
Fanforce::DomainEnvironments.method(environment).call[:plugins_base]
|
21
34
|
end
|
22
35
|
|
23
36
|
def widgets_base_domain
|
24
|
-
Fanforce::DomainEnvironments.method(
|
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
|
data/lib/fanforce/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|