infopark_rails_connector 6.8.0.356.19698103 → 6.8.0.406.131718077

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -7,7 +7,7 @@ It connects either to Infopark Cloud Express CMS via {https://rubygems.org/gems/
7
7
  For more information about Infopark Rails Connector, please visit {http://kb.infopark.de/ Infopark’s Knowledge Base}.
8
8
 
9
9
  == Configuration
10
- Here is how all available addons can be enabled in the <tt>rails_connector.rb</tt> initializer file of your application:
10
+ Here is how the available addons can be enabled in the <tt>rails_connector.rb</tt> initializer file of your application:
11
11
 
12
12
  RailsConnector::Configuration.enable(
13
13
  :google_analytics,
@@ -21,28 +21,26 @@ Here is how all available addons can be enabled in the <tt>rails_connector.rb</t
21
21
  )
22
22
 
23
23
  == Layout Helpers
24
- Some of those functions depend on html or javascript code being included in the application layout.
25
- For example, Google Analytics does only track pageviews if their javascript snippet is included
26
- at the bottom of the html body.
24
+ Some of these functions require HTML or Javascript code to be included in the application layout.
25
+ For example, Google Analytics only tracks pageviews if their JavaScript snippet is included at the bottom of the HTML body.
27
26
 
28
- Rails Connector provides two helpers which manage that kind of layout code,
29
- switching on or off parts depending on what features are enabled or not:
27
+ The Rails Connector provides two helpers for managing this kind of layout code, switching on or off parts depending on whether features are enabled or not:
30
28
 
31
29
  rails_connector_header_tags
32
30
 
33
- This helper needs to be called inside the html head tag.
31
+ This helper needs to be called inside the HTML head tag.
34
32
 
35
33
  rails_connector_after_content_tags
36
34
 
37
- That helper is to be put right before the closing body tag.
35
+ This helper needs to be placed right before the closing body tag.
38
36
 
39
37
  == Generators
40
38
  Infopark Rails Connector comes with three generators to help you get up and running quickly:
41
39
 
42
40
  > rails generate rails_connector:install
43
41
 
44
- Adds Time machine assets, a +rails_connector.rb+ initializer and rake tasks specific to the gem to your application.
42
+ Adds to your application the Time Machine assets, a +rails_connector.rb+ initializer and rake tasks specific to the gem.
45
43
 
46
44
  == Seo Sitemap
47
45
 
48
- The default implementation for the seo sitemap will feature all files from your CMS in the generated <tt>sitemap.xml</tt>. For a large number of files, this can slow down your server. Please refer to {RailsConnector::SEO::ClassMethods#find_all_for_sitemap} for advise on optimization.
46
+ The default implementation of the SEO sitemap will reference all the files from your CMS in the generated <tt>sitemap.xml</tt>. For a large number of files, this can slow down your server. Please refer to {RailsConnector::SEO::ClassMethods#find_all_for_sitemap} for advice on optimization.
@@ -36,10 +36,6 @@ module RailsConnector
36
36
  # @api public
37
37
  attr_writer :search_options
38
38
 
39
- # default options for CMS API
40
- # @api public
41
- attr_writer :cms_api_options
42
-
43
39
  # Cache also editable workspaces.
44
40
  # Editable workspaces will be cached until the cache is cleared manually.
45
41
  # Should never be used in a production environment.
@@ -66,12 +62,6 @@ module RailsConnector
66
62
  @search_options || local_config_file["search"].symbolize_keys
67
63
  end
68
64
 
69
- # default options for CMS API
70
- # @api public
71
- def cms_api_options
72
- @cms_api_options || local_config_file["cms_api"].symbolize_keys
73
- end
74
-
75
65
  # @api public
76
66
  def mode=(new_mode)
77
67
  new_mode = new_mode.to_sym
@@ -177,22 +167,25 @@ module RailsConnector
177
167
  def configure_cms_database
178
168
  if RailsConnector::CmsBaseModel.superclass.to_s == "ActiveRecord::Base"
179
169
  CmsBaseModel.configure_database("cms")
180
- elsif local_config_file.configured? 'content_service'
181
- @content_service = local_config_file['content_service']
182
- Blob.configure(:type => 'service')
183
170
  else
184
- CmsBaseModel.configure_database(local_config_file["cms_database"])
185
- blob_storage_config = local_config_file["cms_blob_storage"]
186
- Blob.configure(blob_storage_config)
187
-
188
- dict_storage_config =
189
- if blob_storage_config["type"] == "s3"
190
- cms_dict_storage = local_config_file.with_default({}, "cms_dict_storage")
191
- blob_storage_config.merge(cms_dict_storage)
192
- else
193
- local_config_file["cms_dict_storage"]
194
- end
195
- DictStorage.configure(dict_storage_config)
171
+ if local_config_file.configured? 'content_service'
172
+ @content_service = local_config_file['content_service']
173
+ Blob.configure(:type => 'service')
174
+ else
175
+ CmsBaseModel.configure_database(local_config_file["cms_database"])
176
+ blob_storage_config = local_config_file["cms_blob_storage"]
177
+ Blob.configure(blob_storage_config)
178
+
179
+ dict_storage_config =
180
+ if blob_storage_config["type"] == "s3"
181
+ cms_dict_storage = local_config_file.with_default({}, "cms_dict_storage")
182
+ blob_storage_config.merge(cms_dict_storage)
183
+ else
184
+ local_config_file["cms_dict_storage"]
185
+ end
186
+ DictStorage.configure(dict_storage_config)
187
+ end
188
+ RailsConnector::CmsRestApi.credentials = local_config_file["cms_api"].symbolize_keys
196
189
  end
197
190
  end
198
191
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39396865
4
+ hash: 263434717
5
5
  prerelease:
6
6
  segments:
7
7
  - 6
8
8
  - 8
9
9
  - 0
10
- - 356
11
- - 19698103
12
- version: 6.8.0.356.19698103
10
+ - 406
11
+ - 131718077
12
+ version: 6.8.0.406.131718077
13
13
  platform: ruby
14
14
  authors:
15
15
  - Infopark AG
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-11-27 00:00:00 +01:00
20
+ date: 2012-12-04 00:00:00 +01:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency