fanforce 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fanforce/version.rb +1 -1
- data/lib/ff_globals.rb +21 -20
- metadata +1 -1
data/lib/fanforce/version.rb
CHANGED
data/lib/ff_globals.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
if !ENV['RACK_ENV'] or ENV['RACK_ENV'] == 'development'
|
2
|
-
|
3
|
-
$
|
4
|
-
$
|
5
|
-
$
|
2
|
+
top_level_domain = ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg'
|
3
|
+
$BASE_DOMAIN = 'fanforce.' + top_level_domain
|
4
|
+
$APP_DOMAIN = $BASE_DOMAIN
|
5
|
+
$API_DOMAIN = $BASE_DOMAIN
|
6
|
+
$I_DOMAIN = $BASE_DOMAIN
|
6
7
|
$WEBSITE_DOMAIN = $BASE_DOMAIN
|
7
8
|
|
8
|
-
$SMARTURL_DOMAIN = 'fanforc.
|
9
|
-
$FF_PLUGIN_DOMAIN = 'ffplugin.
|
10
|
-
$FF_APP_DOMAIN = 'ffapp.
|
11
|
-
$FF_WIDGET_DOMAIN = 'ffwidget.
|
9
|
+
$SMARTURL_DOMAIN = 'fanforc.' + top_level_domain
|
10
|
+
$FF_PLUGIN_DOMAIN = 'ffplugin.' + top_level_domain
|
11
|
+
$FF_APP_DOMAIN = 'ffapp.' + top_level_domain
|
12
|
+
$FF_WIDGET_DOMAIN = 'ffwidget.' + top_level_domain
|
12
13
|
|
13
14
|
$DEVS_DOMAIN = 'technical%40mobilizationlabs.com:zE27fdevelopers@developers-fanforce.dotcloud.com' # or localhost:3000'
|
14
15
|
|
@@ -17,10 +18,10 @@ if !ENV['RACK_ENV'] or ENV['RACK_ENV'] == 'development'
|
|
17
18
|
$PUSHER_SECRET = '3169163d2e27de9a2291'
|
18
19
|
|
19
20
|
elsif ENV['RACK_ENV'] == 'test'
|
20
|
-
$BASE_DOMAIN =
|
21
|
-
$APP_DOMAIN =
|
22
|
-
$API_DOMAIN =
|
23
|
-
$I_DOMAIN =
|
21
|
+
$BASE_DOMAIN = 'fanforce.gg'
|
22
|
+
$APP_DOMAIN = 'app.' + $BASE_DOMAIN
|
23
|
+
$API_DOMAIN = 'api.' + $BASE_DOMAIN
|
24
|
+
$I_DOMAIN = 'i.' + $BASE_DOMAIN
|
24
25
|
$WEBSITE_DOMAIN = $BASE_DOMAIN
|
25
26
|
|
26
27
|
$SMARTURL_DOMAIN = 'fanforc.gg'
|
@@ -35,10 +36,10 @@ elsif ENV['RACK_ENV'] == 'test'
|
|
35
36
|
$PUSHER_SECRET = '61c760c05430e68d7e8d'
|
36
37
|
|
37
38
|
elsif ENV['RACK_ENV'] == 'qa'
|
38
|
-
$BASE_DOMAIN =
|
39
|
-
$APP_DOMAIN =
|
40
|
-
$API_DOMAIN =
|
41
|
-
$I_DOMAIN =
|
39
|
+
$BASE_DOMAIN = 'fanforce-qa.com'
|
40
|
+
$APP_DOMAIN = 'app.' + $BASE_DOMAIN
|
41
|
+
$API_DOMAIN = 'api.' + $BASE_DOMAIN
|
42
|
+
$I_DOMAIN = 'i.' + $BASE_DOMAIN
|
42
43
|
$WEBSITE_DOMAIN = $BASE_DOMAIN
|
43
44
|
|
44
45
|
$SMARTURL_DOMAIN = 'fanforc.us'
|
@@ -53,10 +54,10 @@ elsif ENV['RACK_ENV'] == 'qa'
|
|
53
54
|
$PUSHER_SECRET = '7bfba2003df078ca64e9'
|
54
55
|
|
55
56
|
elsif ENV['RACK_ENV'] == 'production'
|
56
|
-
$BASE_DOMAIN =
|
57
|
-
$APP_DOMAIN =
|
58
|
-
$API_DOMAIN =
|
59
|
-
$I_DOMAIN =
|
57
|
+
$BASE_DOMAIN = 'fanforce.com'
|
58
|
+
$APP_DOMAIN = 'app.' + $BASE_DOMAIN
|
59
|
+
$API_DOMAIN = 'api.' + $BASE_DOMAIN
|
60
|
+
$I_DOMAIN = 'i.' + $BASE_DOMAIN
|
60
61
|
$WEBSITE_DOMAIN = $BASE_DOMAIN
|
61
62
|
|
62
63
|
$SMARTURL_DOMAIN = 'fanforce.io'
|