fanforce 0.12.3 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/fanforce.gemspec +1 -1
- data/lib/fanforce/_base.rb +2 -2
- data/lib/fanforce/domains.rb +20 -20
- data/lib/fanforce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWIyYmIzOTU4N2M0ZDdkOGI5YWE2Nzk3NTYzZTc2ZGYwOTU5NjM1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzMwMjI4NDM0MTczODcxMTNkZmI4Y2UyZjMxYWMxYTY1MTZiZTVlZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTEzYWI1NDUxZGEyNjY0Yzk2MzhkMzU3NmI1MzIyMTg3YzJjZmZmM2ZmMWE2
|
10
|
+
NWI1NjgwZDJmZGRiYWViMjJmZDZlMjNhNWY5OGYyNmMzYTY4ZmUyZjc2Nzhh
|
11
|
+
NDkxODk4OTliYjYyNTQ4MTI4YmU1ZDRiYmJmOTJlMWQ4NmU5ZTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yzc3MTYyNzJlMzZlNWIzNTk4NWE5MzY3NzhhMWQzMWUwN2YzMzU0MzMyNmM5
|
14
|
+
YTQwZTc1YTA3MGZjMzZiMjJjZDU5YTllZGE5MjJkZTVlMDc0Nzc3OGQyNzg3
|
15
|
+
OTRlNDhhYzY2OWNlYWRhNDk1YTM5Yjk0OGUyZDI5YmExZTRlNTM=
|
data/fanforce.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'fanforce/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = 'fanforce'
|
8
8
|
gem.version = Fanforce::VERSION
|
9
|
-
gem.date = '
|
9
|
+
gem.date = Time.now.utc.strftime('%Y-%m-%d')
|
10
10
|
gem.summary = %q{Core Fanforce gem}
|
11
11
|
gem.description = %q{Core gem used internally by other Fanforce gems}
|
12
12
|
gem.authors = ['Caleb Clark']
|
data/lib/fanforce/_base.rb
CHANGED
@@ -5,8 +5,8 @@ class Fanforce
|
|
5
5
|
Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:base]
|
6
6
|
end
|
7
7
|
|
8
|
-
def self.
|
9
|
-
Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:
|
8
|
+
def self.default_short_domain
|
9
|
+
Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:default_short_domain]
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.apps_base_domain
|
data/lib/fanforce/domains.rb
CHANGED
@@ -3,41 +3,41 @@ module Fanforce::Domains
|
|
3
3
|
def self.development
|
4
4
|
base_domain = (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg')
|
5
5
|
{
|
6
|
-
:base
|
7
|
-
:
|
8
|
-
:apps_base
|
9
|
-
:plugins_base
|
10
|
-
:widgets_base
|
6
|
+
:base => ENV['FANFORCE_GEM_BASE_DOMAIN'] || "fanforce.#{base_domain}",
|
7
|
+
:default_short_domain => ENV['FANFORCE_GEM_DEFAULT_SHORT_DOMAIN'] || "fanforc.#{base_domain}",
|
8
|
+
:apps_base => ENV['FANFORCE_GEM_APPS_BASE_DOMAIN'] || "ffapp.#{base_domain}",
|
9
|
+
:plugins_base => ENV['FANFORCE_GEM_PLUGINS_BASE_DOMAIN'] || "ffplugin.#{base_domain}",
|
10
|
+
:widgets_base => ENV['FANFORCE_GEM_WIDGETS_BASE_DOMAIN'] || "ffwidget.#{base_domain}"
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.test
|
15
15
|
{
|
16
|
-
:base
|
17
|
-
:
|
18
|
-
:apps_base
|
19
|
-
:plugins_base
|
20
|
-
:widgets_base
|
16
|
+
:base => 'fanforce.gg',
|
17
|
+
:default_short_domain => 'fanforc.gg',
|
18
|
+
:apps_base => 'ffapp.gg',
|
19
|
+
:plugins_base => 'ffplugin.gg',
|
20
|
+
:widgets_base => 'ffwidget.gg'
|
21
21
|
}
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.staging
|
25
25
|
{
|
26
|
-
:base
|
27
|
-
:
|
28
|
-
:apps_base
|
29
|
-
:plugins_base
|
30
|
-
:widgets_base
|
26
|
+
:base => 'fanforce-staging.com',
|
27
|
+
:default_short_domain => 'fanforc.us',
|
28
|
+
:apps_base => 'ffapp.us',
|
29
|
+
:plugins_base => 'ffplugin.us',
|
30
|
+
:widgets_base => 'ffwidget.us'
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.production
|
35
35
|
{
|
36
|
-
:base
|
37
|
-
:
|
38
|
-
:apps_base
|
39
|
-
:plugins_base
|
40
|
-
:widgets_base
|
36
|
+
:base => 'fanforce.com',
|
37
|
+
:default_short_domain => 'fanforce.io',
|
38
|
+
:apps_base => 'ffapp.io',
|
39
|
+
:plugins_base => 'ffplugin.io',
|
40
|
+
:widgets_base => 'ffwidget.io'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
data/lib/fanforce/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Core gem used internally by other Fanforce gems
|
14
14
|
email:
|