fanforce 0.11.2 → 0.12.0.test1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTcyODU0NzE0MjQxODdjNjcyMGZmOWY4NjIxZmI3MjcyYmIxYmFlNw==
4
+ MzY0MDhhNjc0MmI0MDFkMjVkMzA0ZmQ3NTQ0M2M1YmI3Njc2MGE0Zg==
5
5
  data.tar.gz: !binary |-
6
- NzY2YmQ4YTFhMWY1N2ZmZjQ5ZDY3NjMyYzY0YmUwNTYyOTg2OGZjYg==
6
+ ODJiODZmZDNlMDFmNjhmMDllNzg0MzdlZmRjZmVlN2NiMmQ2MWVkNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWY1ZGY2YWM4N2FhN2Q1YjY2ZTQ5M2Q1NTVjMTk0ZDY3NmI3NGIwZWZmMjgz
10
- ODJiMDM4YTRhOTRkMmViMDZlN2I4YzkwNzJiYzkxOTRiZjEwMDQzNTMzOTlm
11
- NjM3ZDEzNmVkMjEzNTNhNzE1ODlmYmVhNDhjZWQyZGUzZjc3OGQ=
9
+ NDgxOTM2Njk5ZmM2NDA1NjcxYWM5ZjkxMDJkYjUxYjcyMTE4ZGEzZjIyMzQw
10
+ ZmVlMmJjZTRkZmVkYjUyMzY0NDhkZWFjMjUwNjY1ZWY0MjExMGFjNTUxNjlj
11
+ MGRlMDc3ZTQ4NmIwNmYwMjk5MjEzMmI2NzNiYzg4YTg3MDFjMDM=
12
12
  data.tar.gz: !binary |-
13
- MTRmZjlhMmNjNmIzYjhmZGYzYzUwOTc2MjBjYzhiMDA1NzIzZjJkNDJiYmIx
14
- MzhlMTdhNjk2YzBkMTdkMGRmMmIxMmY2ODkyYjJjYWUyNDNkYTIyZTNlNDgw
15
- MWNkYmJjYzIxYjA0YWQ4NjcxZDU5NDE0YWEwNTk2ODUyZWU4NjY=
13
+ MjUzYTYwY2ZjNTYzNzhlZDc4NDdlZTgxZTQyOGJmZTM5ODVmYzYzM2FjZDZk
14
+ NzRlZDU0OWEwOGE0OTA2ZGMwZWQ1MDFlODM4ZGRhZTRmNWU5NTU1ZjRmODQ2
15
+ OGQxMjNlOWE1MGQwMmVkMmY3M2RmOWQ3MGNlZTA0NWVhYjY2MjY=
data/lib/fanforce.rb CHANGED
@@ -1,2 +1,2 @@
1
- require_relative 'fanforce/domains'
1
+ require_relative 'fanforce/_base'
2
2
  require_relative 'fanforce/version'
@@ -0,0 +1,62 @@
1
+ class Fanforce
2
+ require_relative 'domains'
3
+
4
+ def self.base_domain
5
+ Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:base]
6
+ end
7
+
8
+ def self.default_smarturl_domain
9
+ Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:default_smarturl]
10
+ end
11
+
12
+ def self.apps_base_domain
13
+ Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:apps_base]
14
+ end
15
+
16
+ def self.plugins_base_domain
17
+ Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:plugins_base]
18
+ end
19
+
20
+ def self.widgets_base_domain
21
+ Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:widgets_base]
22
+ end
23
+
24
+ def self.api_domain
25
+ 'api.' + base_domain
26
+ end
27
+
28
+ def self.i_domain
29
+ 'i.' + base_domain
30
+ end
31
+
32
+ def self.website_domain
33
+ 'www.' + base_domain
34
+ end
35
+
36
+ def self.developers_domain
37
+ 'developers.' + base_domain
38
+ end
39
+
40
+ def self.controller_domain
41
+ 'controller.' + base_domain
42
+ end
43
+
44
+ def self.addon_management_url
45
+ controller_domain + '/db'
46
+ end
47
+
48
+ # these should be moved to edition
49
+
50
+ def self.app_domain
51
+ 'app.' + base_domain
52
+ end
53
+
54
+ def self.signup_domain
55
+ 'signup.' + base_domain
56
+ end
57
+
58
+ def self.marketplace_domain
59
+ 'marketplace.' + base_domain
60
+ end
61
+
62
+ end
@@ -1,46 +1,44 @@
1
- class Fanforce
2
-
3
- if ENV['RACK_ENV'] == 'production'
4
- BASE_DOMAIN = 'fanforce.com'
5
- DEFAULT_SMARTURL_DOMAIN = 'fanforce.io'
6
- APPS_BASE_DOMAIN = 'ffapp.io'
7
- PLUGINS_BASE_DOMAIN = 'ffplugin.io'
8
- WIDGETS_BASE_DOMAIN = 'ffwidget.io'
9
-
10
- elsif ENV['RACK_ENV'] == 'test'
11
- BASE_DOMAIN = 'fanforce.gg'
12
- DEFAULT_SMARTURL_DOMAIN = 'fanforc.gg'
13
- APPS_BASE_DOMAIN = 'ffapp.gg'
14
- PLUGINS_BASE_DOMAIN = 'ffplugin.gg'
15
- WIDGETS_BASE_DOMAIN = 'ffwidget.gg'
16
-
17
- elsif ENV['RACK_ENV'] == 'staging'
18
- BASE_DOMAIN = 'fanforce-staging.com'
19
- DEFAULT_SMARTURL_DOMAIN = 'fanforc.us'
20
- APPS_BASE_DOMAIN = 'ffapp.us'
21
- PLUGINS_BASE_DOMAIN = 'ffplugin.us'
22
- WIDGETS_BASE_DOMAIN = 'ffwidget.us'
23
-
24
- else
25
- TOP_LEVEL_DOMAIN = ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg'
26
- BASE_DOMAIN = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.' + TOP_LEVEL_DOMAIN
27
- DEFAULT_SMARTURL_DOMAIN = 'fanforc.gg'
28
- APPS_BASE_DOMAIN = 'ffapp.gg'
29
- PLUGINS_BASE_DOMAIN = 'ffplugin.gg'
30
- WIDGETS_BASE_DOMAIN = 'ffwidget.gg'
1
+ module Fanforce::Domains
2
+
3
+ def self.development
4
+ puts "top-level-domain: #{ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN']}"
5
+ {
6
+ :base => 'fanforce.gg',
7
+ :default_smarturl => ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.' + (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg'),
8
+ :apps_base => 'ffapp.gg',
9
+ :plugins_base => 'ffplugin.gg',
10
+ :widgets_base => 'ffwidget.gg'
11
+ }
12
+ end
31
13
 
14
+ def self.test
15
+ {
16
+ :base => 'fanforce.gg',
17
+ :default_smarturl => 'fanforc.gg',
18
+ :apps_base => 'ffapp.gg',
19
+ :plugins_base => 'ffplugin.gg',
20
+ :widgets_base => 'ffwidget.gg'
21
+ }
32
22
  end
33
23
 
34
- API_DOMAIN = 'api.' + BASE_DOMAIN
35
- I_DOMAIN = 'i.' + BASE_DOMAIN
36
- WEBSITE_DOMAIN = BASE_DOMAIN
37
- DEVELOPERS_DOMAIN = 'developers.' + BASE_DOMAIN
38
- CONTROLLER_DOMAIN = 'controller.' + BASE_DOMAIN
39
- ADDON_MANAGEMENT_URL = CONTROLLER_DOMAIN + '/db'
24
+ def self.staging
25
+ {
26
+ :base => 'fanforce-staging.com',
27
+ :default_smarturl => 'fanforc.us',
28
+ :apps_base => 'ffapp.us',
29
+ :plugins_base => 'ffplugin.us',
30
+ :widgets_base => 'ffwidget.us'
31
+ }
32
+ end
40
33
 
41
- # these should be moved to edition
42
- APP_DOMAIN = 'app.' + BASE_DOMAIN
43
- SIGNUP_DOMAIN = 'signup.' + BASE_DOMAIN
44
- MARKETPLACE_DOMAIN = 'appstore.' + BASE_DOMAIN
34
+ def self.production
35
+ {
36
+ :base => 'fanforce.com',
37
+ :default_smarturl => 'fanforce.io',
38
+ :apps_base => 'ffapp.io',
39
+ :plugins_base => 'ffplugin.io',
40
+ :widgets_base => 'ffwidget.io'
41
+ }
42
+ end
45
43
 
46
44
  end
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = '0.11.2'
2
+ VERSION = '0.12.0.test1'
3
3
  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.11.2
4
+ version: 0.12.0.test1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
@@ -24,6 +24,7 @@ files:
24
24
  - Rakefile
25
25
  - fanforce.gemspec
26
26
  - lib/fanforce.rb
27
+ - lib/fanforce/_base.rb
27
28
  - lib/fanforce/domains.rb
28
29
  - lib/fanforce/version.rb
29
30
  homepage: http://github.com/fanforce/fanforce
@@ -40,9 +41,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
41
  version: '0'
41
42
  required_rubygems_version: !ruby/object:Gem::Requirement
42
43
  requirements:
43
- - - ! '>='
44
+ - - ! '>'
44
45
  - !ruby/object:Gem::Version
45
- version: '0'
46
+ version: 1.3.1
46
47
  requirements: []
47
48
  rubyforge_project:
48
49
  rubygems_version: 2.0.3