fanforce 0.16.0 → 0.16.1
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 +18 -16
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTQxZGQyNTY1NDI2ZTZiODQyZmIyODBiMGUwYTAxNjYxOWVkZjMyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmQ1MTEwNDIxZjE1MDFjYTlkYzEzNjIwNzg1NTBiYTczZDYxYWIyZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODlhYjIyNjcxYzJiMGFhYTNkNGZmYzU4Mzc3Y2EwMTFlZDE0MGRiZDUwNDRj
|
10
|
+
M2NjMzA5MjM5Mzc4NGIzNjdiOWVmOGJhYjFjYjVkOWQ5ZWQ0NzE4NDRkZmI3
|
11
|
+
YzJlZTFjMDAxMTE5ZjFjZTZlMzc3OTMzOGZmZWExZjM3OTk2N2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWNiZDI3NGY2ODIwYjBjMDVjMTRkN2M4MDY2MzE0N2Y1NDBkNjQxYmM2YTFl
|
14
|
+
MWQwNzlmMmQ3MGY0ZWYwOWY5YTQ2ODQ2YTgwZGRiYzlhN2FmMWJlZmY3YTg2
|
15
|
+
MGIwNmQ5ODhmNWZmMTZkODJmODliNjM1ODlkZWUwZjBmMTBlMDU=
|
data/lib/fanforce/domains.rb
CHANGED
@@ -1,66 +1,68 @@
|
|
1
1
|
require_relative 'domain_environments'
|
2
2
|
|
3
|
-
|
3
|
+
module Fanforce::Domains
|
4
|
+
extend Fanforce::Utils
|
5
|
+
def self.included(base) base.extend(self) end
|
4
6
|
|
5
|
-
def
|
7
|
+
def base_domain
|
6
8
|
Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:base]
|
7
9
|
end
|
8
10
|
|
9
|
-
def
|
11
|
+
def default_short_domain
|
10
12
|
Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:default_short_domain]
|
11
13
|
end
|
12
14
|
|
13
|
-
def
|
15
|
+
def apps_base_domain
|
14
16
|
Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:apps_base]
|
15
17
|
end
|
16
18
|
|
17
|
-
def
|
19
|
+
def plugins_base_domain
|
18
20
|
Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:plugins_base]
|
19
21
|
end
|
20
22
|
|
21
|
-
def
|
23
|
+
def widgets_base_domain
|
22
24
|
Fanforce::DomainEnvironments.method(ENV['RACK_ENV'] || 'development').call[:widgets_base]
|
23
25
|
end
|
24
26
|
|
25
|
-
def
|
27
|
+
def api_domain
|
26
28
|
'api.' + base_domain
|
27
29
|
end
|
28
30
|
|
29
|
-
def
|
31
|
+
def eye_domain
|
30
32
|
'i.' + base_domain
|
31
33
|
end
|
32
34
|
|
33
|
-
def
|
35
|
+
def assets_domain
|
34
36
|
'assets.' + base_domain
|
35
37
|
end
|
36
38
|
|
37
|
-
def
|
39
|
+
def controller_domain
|
38
40
|
'controller.' + base_domain
|
39
41
|
end
|
40
42
|
|
41
|
-
def
|
43
|
+
def addon_management_url
|
42
44
|
controller_domain + '/db'
|
43
45
|
end
|
44
46
|
|
45
|
-
def
|
47
|
+
def website_domain
|
46
48
|
'www.' + base_domain
|
47
49
|
end
|
48
50
|
|
49
|
-
def
|
51
|
+
def developers_domain
|
50
52
|
'developers.' + base_domain
|
51
53
|
end
|
52
54
|
|
53
55
|
# these should be moved to edition
|
54
56
|
|
55
|
-
def
|
57
|
+
def app_domain
|
56
58
|
'app.' + base_domain
|
57
59
|
end
|
58
60
|
|
59
|
-
def
|
61
|
+
def signup_domain
|
60
62
|
'signup.' + base_domain
|
61
63
|
end
|
62
64
|
|
63
|
-
def
|
65
|
+
def marketplace_domain
|
64
66
|
'marketplace.' + base_domain
|
65
67
|
end
|
66
68
|
|
data/lib/fanforce/version.rb
CHANGED