infopark_rails_connector 6.8.3.115.227021242 → 6.8.3.174.51542603
Sign up to get free protection for your applications and to get access to all the features.
data/config/ca-bundle.crt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##
|
2
|
-
## /Network/Servers/xs2.infopark/Users/develop/dcc/tmp/
|
2
|
+
## /Network/Servers/xs2.infopark/Users/develop/dcc/tmp/Rails_Connector__Kostia__split_256/repos/rails_connector/config/ca-bundle.crt -- Bundle of CA Root Certificates
|
3
3
|
##
|
4
|
-
## Converted at:
|
4
|
+
## Converted at: Tue Mar 5 15:39:05 2013 UTC
|
5
5
|
##
|
6
6
|
## This is a bundle of X.509 certificates of public Certificate Authorities
|
7
7
|
## (CA). These were automatically extracted from Mozilla's root certificates
|
@@ -2,6 +2,9 @@ require 'rails_connector/core_extensions'
|
|
2
2
|
|
3
3
|
# @api public
|
4
4
|
module ::RailsConnector
|
5
|
+
PLATFORM_CLOUD = :cloud.freeze
|
6
|
+
PLATFORM_FIONA = :fiona.freeze
|
7
|
+
|
5
8
|
def self.load_platform_gem_if_present(name)
|
6
9
|
if Gem.loaded_specs["infopark_#{name}_connector"]
|
7
10
|
gem_name = "infopark_#{name}_connector"
|
@@ -20,10 +23,18 @@ module ::RailsConnector
|
|
20
23
|
def self.platform
|
21
24
|
@platform
|
22
25
|
end
|
26
|
+
|
27
|
+
def self.platform_cloud?
|
28
|
+
@platform == PLATFORM_CLOUD
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.platform_fiona?
|
32
|
+
@platform == PLATFORM_FIONA
|
33
|
+
end
|
23
34
|
end
|
24
35
|
|
25
|
-
RailsConnector::load_platform_gem_if_present(
|
26
|
-
RailsConnector::load_platform_gem_if_present(
|
36
|
+
RailsConnector::load_platform_gem_if_present(RailsConnector::PLATFORM_CLOUD)
|
37
|
+
RailsConnector::load_platform_gem_if_present(RailsConnector::PLATFORM_FIONA)
|
27
38
|
|
28
39
|
unless RailsConnector::platform
|
29
40
|
raise "The infopark_rails_connector gem requires "\
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require "helpful_configuration"
|
2
|
-
|
3
|
-
require "rails_connector/cms_base_model"
|
2
|
+
require 'rails_connector/cms_base_model' if RailsConnector.platform_fiona?
|
4
3
|
require "rails_connector/blob"
|
5
4
|
|
6
5
|
module RailsConnector
|
@@ -42,12 +41,6 @@ module RailsConnector
|
|
42
41
|
# @api public
|
43
42
|
attr_writer :search_options
|
44
43
|
|
45
|
-
# Cache also editable workspaces.
|
46
|
-
# Editable workspaces will be cached until the cache is cleared manually.
|
47
|
-
# Should never be used in a production environment.
|
48
|
-
# @api public
|
49
|
-
attr_accessor :cache_editable_workspaces
|
50
|
-
|
51
44
|
# Include ReCaptcha tags in user registration form and validate the captcha
|
52
45
|
# when creating a new user registration (default: true).
|
53
46
|
# @api public
|
@@ -184,7 +177,7 @@ module RailsConnector
|
|
184
177
|
# RailsConnector::Configuration.instance_name = 'internet'
|
185
178
|
# @api public
|
186
179
|
def instance_name=(name)
|
187
|
-
RailsConnector::CmsBaseModel.instance_name = name
|
180
|
+
RailsConnector::CmsBaseModel.instance_name = name if RailsConnector.platform_fiona?
|
188
181
|
end
|
189
182
|
|
190
183
|
def after_initialize
|
@@ -206,26 +199,10 @@ module RailsConnector
|
|
206
199
|
end
|
207
200
|
|
208
201
|
def configure_cms_database
|
209
|
-
if RailsConnector
|
210
|
-
CmsBaseModel.configure_database("cms")
|
211
|
-
|
212
|
-
|
213
|
-
@content_service = local_config_file['content_service']
|
214
|
-
Blob.configure(:type => 'service')
|
215
|
-
else
|
216
|
-
CmsBaseModel.configure_database(local_config_file["cms_database"])
|
217
|
-
blob_storage_config = local_config_file["cms_blob_storage"]
|
218
|
-
Blob.configure(blob_storage_config)
|
219
|
-
|
220
|
-
dict_storage_config =
|
221
|
-
if blob_storage_config["type"] == "s3"
|
222
|
-
cms_dict_storage = local_config_file.with_default({}, "cms_dict_storage")
|
223
|
-
blob_storage_config.merge(cms_dict_storage)
|
224
|
-
else
|
225
|
-
local_config_file["cms_dict_storage"]
|
226
|
-
end
|
227
|
-
DictStorage.configure(dict_storage_config)
|
228
|
-
end
|
202
|
+
if RailsConnector.platform_fiona?
|
203
|
+
RailsConnector::CmsBaseModel.configure_database("cms")
|
204
|
+
elsif local_config_file.configured?('content_service')
|
205
|
+
@content_service = local_config_file['content_service']
|
229
206
|
RailsConnector::CmsRestApi.credentials = local_config_file["cms_api"].symbolize_keys
|
230
207
|
end
|
231
208
|
end
|
@@ -327,7 +304,6 @@ module RailsConnector
|
|
327
304
|
|
328
305
|
# defaults
|
329
306
|
self.auto_liquid_editmarkers = true
|
330
|
-
self.cache_editable_workspaces = false
|
331
307
|
self.use_recaptcha_on_user_registration = true
|
332
308
|
self.ca_file = DEFAULT_CA_FILE
|
333
309
|
self.editing_auth{ |env| false }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_rails_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.8.3.
|
4
|
+
version: 6.8.3.174.51542603
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -331,7 +331,6 @@ files:
|
|
331
331
|
- lib/rails_connector/engine.rb
|
332
332
|
- lib/rails_connector/googlebot_checker.rb
|
333
333
|
- lib/rails_connector/html_string.rb
|
334
|
-
- lib/rails_connector/infopark_base.rb
|
335
334
|
- lib/rails_connector/link_resolvable.rb
|
336
335
|
- lib/rails_connector/liquid_support.rb
|
337
336
|
- lib/rails_connector/liquid_support/field_value_drop.rb
|
@@ -363,7 +362,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
363
362
|
version: '0'
|
364
363
|
segments:
|
365
364
|
- 0
|
366
|
-
hash:
|
365
|
+
hash: 797911731
|
367
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
368
367
|
none: false
|
369
368
|
requirements:
|