fanforce 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8feda290205056cc8deb63ae2c9bd4e5c6740597
4
- data.tar.gz: 0dcf8b48b2a78856d0b96fffeb5587dfebc8a013
3
+ metadata.gz: 766ff65f14a064c01b61b2c4570f07db021e41f2
4
+ data.tar.gz: dab8a2ee1a12e26deae3489c7104230396f4bd31
5
5
  SHA512:
6
- metadata.gz: 1020ea56d670ca4df787a6657b7fdafd7bea7db3cce202ece5b2f065f26719e49d0aa317623c24b07fcde10a42b8bb6c923ceb7bfe93040c3e5e44511d625f87
7
- data.tar.gz: cccc2973a91e9b38482b1c63df6a07362fe9a52e86109ba5c8de3c8a13e1e2bef6a8dfbda12ae2fcf3c4e842e6ee3783915036bfe6f48ee76de846bf2242a88f
6
+ metadata.gz: 4228b62981f5bafbbcdd3ef7b9bc49b9d7c658ab031be511eafd6ddcdbfd6d151fa1ae94e00586bad32ade2eb39661491becdb98c04339fb7cd4aafdc5386fec
7
+ data.tar.gz: 71fb25705dc8ca6ef48fa591b4ef479b97f30783baccc162d002d5ea065232e6c9abc819ba3ddae1dbe0d96620abfee5faba79c0d32e68932fa3f526637a3acf
@@ -1,11 +1,11 @@
1
1
  module Fanforce::DomainEnvironments
2
2
 
3
3
  def self.development
4
- base_domain = (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg')
4
+ root_domain = (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg')
5
5
  {
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}",
6
+ :base => ENV['FANFORCE_GEM_BASE_DOMAIN'] || "fanforce.#{root_domain}",
7
+ :default_short_domain => ENV['FANFORCE_GEM_DEFAULT_SHORT_DOMAIN'] || "fanforc.#{root_domain}",
8
+ :apps_base => ENV['FANFORCE_GEM_APPS_BASE_DOMAIN'] || "ffapp.#{root_domain}",
9
9
  }
10
10
  end
11
11
 
@@ -45,14 +45,6 @@ module Fanforce::Domains
45
45
  'i.' + base_domain
46
46
  end
47
47
 
48
- def assets_domain
49
- 'assets.' + base_domain
50
- end
51
-
52
- def assets_domain_ssl
53
- environment == 'development' ? assets_domain : "#{environ.to_s.downcase}-supercore-assets.herokuapp.com"
54
- end
55
-
56
48
  def controller_domain
57
49
  'controller.' + base_domain
58
50
  end
@@ -79,8 +71,4 @@ module Fanforce::Domains
79
71
  'signup.' + base_domain
80
72
  end
81
73
 
82
- def marketplace_domain
83
- 'marketplace.' + base_domain
84
- end
85
-
86
74
  end
@@ -71,24 +71,6 @@ module Fanforce::Utils
71
71
  MultiJson.load(str, :symbolize_keys => symbolize_keys)
72
72
  end
73
73
 
74
- # Creates a string representation of a javascript object for $.tmpl
75
- def compile_jquery_tmpls(options={}, &block)
76
- begin require 'haml' rescue LoadError raise 'You must have the haml gem installed to use Fanforce.compile_jquery_templates.' end
77
- context = Object.new
78
- class << context
79
- include Haml::Helpers
80
- end
81
- context.init_haml_helpers
82
-
83
- format = options[:format] == 'html' ? :html : :json
84
-
85
- return context.capture_haml(&block) if format == :html
86
- single_line_html = context.capture_haml(&block).split(/\r?\n/).inject('') {|sl, l| sl += l.strip + ' ' }
87
- matches = single_line_html.scan(/<script id=[\"'](.*?)[\"'](?:.*?)>(.*?)(?:<\/script>)/mi)
88
-
89
- matches.inject({}) {|t,m| t[m[0]] = m[1]; t }.to_json
90
- end
91
-
92
74
  end
93
75
 
94
76
  module Fanforce::InternalUtils
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = '0.20.0'
2
+ VERSION = '0.21.0'
3
3
  end
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.20.0
4
+ version: 0.21.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: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2014-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -76,8 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.0.3
79
+ rubygems_version: 2.0.14
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Core Fanforce gem
83
83
  test_files: []
84
+ has_rdoc: