fanforce 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/fanforce/version.rb +1 -1
  2. data/lib/ff_globals.rb +21 -20
  3. metadata +1 -1
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
data/lib/ff_globals.rb CHANGED
@@ -1,14 +1,15 @@
1
1
  if !ENV['RACK_ENV'] or ENV['RACK_ENV'] == 'development'
2
- $BASE_DOMAIN = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.gg'
3
- $APP_DOMAIN = ENV['FANFORCE_GEM_APP_DOMAIN'] || 'app.' + $BASE_DOMAIN
4
- $API_DOMAIN = ENV['FANFORCE_GEM_API_DOMAIN'] || 'api.' + $BASE_DOMAIN
5
- $I_DOMAIN = ENV['FANFORCE_GEM_I_DOMAIN'] || 'i.' + $BASE_DOMAIN
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.gg'
9
- $FF_PLUGIN_DOMAIN = 'ffplugin.gg'
10
- $FF_APP_DOMAIN = 'ffapp.gg'
11
- $FF_WIDGET_DOMAIN = 'ffwidget.gg'
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 = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.gg'
21
- $APP_DOMAIN = ENV['FANFORCE_GEM_APP_DOMAIN'] || 'app.' + $BASE_DOMAIN
22
- $API_DOMAIN = ENV['FANFORCE_GEM_API_DOMAIN'] || 'api.' + $BASE_DOMAIN
23
- $I_DOMAIN = ENV['FANFORCE_GEM_I_DOMAIN'] || 'i.' + $BASE_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 = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce-qa.com'
39
- $APP_DOMAIN = ENV['FANFORCE_GEM_APP_DOMAIN'] || 'app.' + $BASE_DOMAIN
40
- $API_DOMAIN = ENV['FANFORCE_GEM_API_DOMAIN'] || 'api.' + $BASE_DOMAIN
41
- $I_DOMAIN = ENV['FANFORCE_GEM_I_DOMAIN'] || 'i.' + $BASE_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 = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.com'
57
- $APP_DOMAIN = ENV['FANFORCE_GEM_APP_DOMAIN'] || 'app.' + $BASE_DOMAIN
58
- $API_DOMAIN = ENV['FANFORCE_GEM_API_DOMAIN'] || 'api.' + $BASE_DOMAIN
59
- $I_DOMAIN = ENV['FANFORCE_GEM_I_DOMAIN'] || 'i.' + $BASE_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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: