fanforce 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = "0.3.13"
2
+ VERSION = "0.3.14"
3
3
  end
data/lib/fanforce.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  class Fanforce
2
2
  end
3
+ require 'ff_globals'
3
4
  require 'fanforce/version'
4
5
  require 'fanforce/config'
5
6
  require 'fanforce/main'
data/lib/ff_globals.rb ADDED
@@ -0,0 +1,76 @@
1
+ if !ENV['RACK_ENV'] or ENV['RACK_ENV'] == 'development'
2
+ $BASE_DOMAIN = 'fanforce.gg'
3
+ $APP_DOMAIN = 'app.' + $BASE_DOMAIN
4
+ $API_DOMAIN = 'api.' + $BASE_DOMAIN
5
+ $I_DOMAIN = 'i.' + $BASE_DOMAIN
6
+ $WEBSITE_DOMAIN = $BASE_DOMAIN
7
+
8
+ $SMARTURL_DOMAIN = 'fanforc.gg'
9
+ $FF_MODULE_DOMAIN = 'ffmodule.gg'
10
+ $FF_BEHAVIOR_DOMAIN = 'ffbehavior.gg'
11
+ $FF_APP_DOMAIN = 'ffapp.gg'
12
+ $FF_WIDGET_DOMAIN = 'ffwidget.gg'
13
+
14
+ $DEVS_DOMAIN = 'technical%40mobilizationlabs.com:zE27fdevelopers@developers-fanforce.dotcloud.com' # or localhost:3000'
15
+
16
+ $PUSHER_APP_ID = '23240'
17
+ $PUSHER_KEY = '029caf227a64c8e82e99'
18
+ $PUSHER_SECRET = '3169163d2e27de9a2291'
19
+
20
+ elsif ENV['RACK_ENV'] == 'test'
21
+ $BASE_DOMAIN = 'fanforce.gg'
22
+ $APP_DOMAIN = 'app.' + $BASE_DOMAIN
23
+ $API_DOMAIN = 'api.' + $BASE_DOMAIN
24
+ $I_DOMAIN = 'i.' + $BASE_DOMAIN
25
+ $WEBSITE_DOMAIN = $BASE_DOMAIN
26
+
27
+ $SMARTURL_DOMAIN = 'fanforc.gg'
28
+ $FF_MODULE_DOMAIN = 'ffmodule.gg'
29
+ $FF_BEHAVIOR_DOMAIN = 'ffbehavior.gg'
30
+ $FF_WIDGET_DOMAIN = 'ffwidget.gg'
31
+ $FF_APP_DOMAIN = 'ffapp.gg'
32
+
33
+ $DEVS_DOMAIN = 'technical%40mobilizationlabs.com:zE27fdevelopers@developers-fanforce.dotcloud.com'
34
+
35
+ $PUSHER_APP_ID = '23243'
36
+ $PUSHER_KEY = '7bcc87b3c55301f687b9'
37
+ $PUSHER_SECRET = '61c760c05430e68d7e8d'
38
+
39
+ elsif ENV['RACK_ENV'] == 'qa'
40
+ $BASE_DOMAIN = 'fanforce-qa.com'
41
+ $APP_DOMAIN = 'app.' + $BASE_DOMAIN
42
+ $API_DOMAIN = 'api.' + $BASE_DOMAIN
43
+ $I_DOMAIN = 'i.' + $BASE_DOMAIN
44
+ $WEBSITE_DOMAIN = $BASE_DOMAIN
45
+
46
+ $SMARTURL_DOMAIN = 'fanforc.us'
47
+ $FF_MODULE_DOMAIN = 'ffmodule.us'
48
+ $FF_BEHAVIOR_DOMAIN = 'ffbehavior.us'
49
+ $FF_APP_DOMAIN = 'ffapp.us'
50
+ $FF_WIDGET_DOMAIN = 'ffwidget.us'
51
+
52
+ $DEVS_DOMAIN = 'technical%40mobilizationlabs.com:zE27fdevelopers@developers-fanforce.dotcloud.com'
53
+
54
+ $PUSHER_APP_ID = '14778'
55
+ $PUSHER_KEY = 'b5e2e23fb9542798ef38'
56
+ $PUSHER_SECRET = '7bfba2003df078ca64e9'
57
+
58
+ elsif ENV['RACK_ENV'] == 'production'
59
+ $BASE_DOMAIN = 'fanforce.com'
60
+ $APP_DOMAIN = 'app.' + $BASE_DOMAIN
61
+ $API_DOMAIN = 'api.' + $BASE_DOMAIN
62
+ $I_DOMAIN = 'i.' + $BASE_DOMAIN
63
+ $WEBSITE_DOMAIN = $BASE_DOMAIN
64
+
65
+ $SMARTURL_DOMAIN = 'fanforce.io'
66
+ $FF_MODULE_DOMAIN = 'ffmodule.io'
67
+ $FF_BEHAVIOR_DOMAIN = 'ffbehavior.io'
68
+ $FF_APP_DOMAIN = 'ffapp.io'
69
+ $FF_WIDGET_DOMAIN = 'ffwidget.io'
70
+
71
+ $DEVS_DOMAIN = 'technical%40mobilizationlabs.com:zE27fdevelopers@developers-fanforce.dotcloud.com'
72
+
73
+ $PUSHER_APP_ID = '14778'
74
+ $PUSHER_KEY = 'b5e2e23fb9542798ef38'
75
+ $PUSHER_SECRET = '7bfba2003df078ca64e9'
76
+ end
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.3.13
4
+ version: 0.3.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,6 +97,7 @@ files:
97
97
  - lib/fanforce/main.rb
98
98
  - lib/fanforce/utils.rb
99
99
  - lib/fanforce/version.rb
100
+ - lib/ff_globals.rb
100
101
  - test/fanforce_test.rb
101
102
  homepage: http://github.com/mlabs/fanforce-ruby
102
103
  licenses: []