infopark_cloud_connector 6.8.0.539.93842523 → 6.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  Infopark Cloud Connector integrates the {https://rubygems.org/gems/infopark_rails_connector Infopark Rails Connector} with the Infopark Cloud Express CMS.
4
4
 
5
- For more information about Infopark Rails and Cloud Connector, please visit {http://kb.infopark.de/ Infopark’s Knowledge Base}.
5
+ For more information about Infopark Rails and Cloud Connector, please visit {http://kb.infopark.de/ Infopark’s Knowledge Base}. Details about recent changes to Infopark Cloud Express CMS and the Cloud Connector can be found in the {https://kb.infopark.de/cms-news Latest CMS News}.
@@ -62,7 +62,7 @@ module RailsConnector
62
62
  :and => [
63
63
  {:not => {:term => {:obj_type => :image}}},
64
64
  {:not => {:term => {:suppress_export => true}}},
65
- {:not => {:range => {:valid_from => {:from => now.succ.to_iso, :to => '*'}}}},
65
+ {:not => {:range => {:valid_from => {:from => (now + 1.second).to_iso, :to => '*'}}}},
66
66
  {:not => {:range => {:valid_until => {:from => '*', :to => now.to_iso}}}}
67
67
  ]
68
68
  }
@@ -267,15 +267,15 @@ module RailsConnector
267
267
  # @return [Integer]
268
268
  # @api public
269
269
  def size
270
- if @size.blank?
271
- @size = CmsRestApi.get(resource_path, {:query => query, :size => 0})['total'].to_i
272
- end
273
- @size
270
+ @size ||= CmsRestApi.get(resource_path, {:query => query, :size => 0})['total'].to_i
274
271
  end
275
272
 
276
273
  # @api public
277
274
  alias_method :length, :size
278
275
 
276
+ # @api public
277
+ alias_method :count, :size
278
+
279
279
  private
280
280
 
281
281
  def convert_value(value)
@@ -48,7 +48,7 @@ module RailsConnector
48
48
 
49
49
  # connects the cloud connector to the connector service
50
50
  class ServiceCmsBackend < CmsBackend
51
- CACHE_PREFIX = 'v1'
51
+ VERSION = "v1".freeze
52
52
  BLOB_DATA_CACHE_PREFIX = 'blob_data'.freeze
53
53
 
54
54
  def initialize
@@ -108,8 +108,14 @@ module RailsConnector
108
108
 
109
109
  private
110
110
 
111
+ def encoding_aware_cache_prefix
112
+ prefix = VERSION.dup
113
+ prefix.concat('-utf8') if String.new.encoding_aware?
114
+ prefix
115
+ end
116
+
111
117
  def persistent_cache
112
- Cache.new(:fallback_backend => Rails.cache, :cache_prefix => CACHE_PREFIX)
118
+ Cache.new(:fallback_backend => Rails.cache, :cache_prefix => encoding_aware_cache_prefix)
113
119
  end
114
120
 
115
121
  def find_raw_data_from_cache_or_database_by(workspace_data, index, keys)
@@ -159,7 +165,10 @@ module RailsConnector
159
165
  def store_raw_data_list_in_cache(workspace_data, index, key, raw_data_list)
160
166
  raw_data_list.each do |values|
161
167
  UNIQUE_INDICES.each do |unique_index|
162
- store_item_in_cache(workspace_data, unique_index, values["_#{unique_index}"], [values])
168
+ unique_index_values = values["_#{unique_index}"]
169
+ if unique_index_values.present?
170
+ store_item_in_cache(workspace_data, unique_index, unique_index_values.first, [values])
171
+ end
163
172
  end
164
173
  end
165
174
  unless UNIQUE_INDICES.include?(index)
metadata CHANGED
@@ -1,83 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: infopark_cloud_connector
3
- version: !ruby/object:Gem::Version
4
- hash: 187682853
3
+ version: !ruby/object:Gem::Version
4
+ version: 6.8.1
5
5
  prerelease:
6
- segments:
7
- - 6
8
- - 8
9
- - 0
10
- - 539
11
- - 93842523
12
- version: 6.8.0.539.93842523
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Infopark AG
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
-
20
- date: 2013-01-11 00:00:00 +01:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2013-01-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: aws-sdk
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 3
33
- - 6
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.3.6
35
- version_requirements: *id001
36
- name: aws-sdk
37
- prerelease: false
38
22
  type: :runtime
39
- - !ruby/object:Gem::Dependency
40
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
41
25
  none: false
42
- requirements:
26
+ requirements:
43
27
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 1
48
- - 6
49
- version: "1.6"
50
- version_requirements: *id002
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.6
30
+ - !ruby/object:Gem::Dependency
51
31
  name: rest-client
52
- prerelease: false
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.6'
53
38
  type: :runtime
54
- - !ruby/object:Gem::Dependency
55
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
56
41
  none: false
57
- requirements:
58
- - - "="
59
- - !ruby/object:Gem::Version
60
- hash: 187682853
61
- segments:
62
- - 6
63
- - 8
64
- - 0
65
- - 539
66
- - 93842523
67
- version: 6.8.0.539.93842523
68
- version_requirements: *id003
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.6'
46
+ - !ruby/object:Gem::Dependency
69
47
  name: kvom
70
- prerelease: false
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 6.8.1
71
54
  type: :runtime
72
- description: The Cloud Connector for Infopark CMS Fiona enables you to develop modern, dynamic Web 2.0 applications using Ruby on Rails and at the same time display CMS managed content.
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 6.8.1
62
+ description: The Cloud Connector for Infopark CMS Fiona enables you to develop modern,
63
+ dynamic Web 2.0 applications using Ruby on Rails and at the same time display CMS
64
+ managed content.
73
65
  email: info@infopark.de
74
66
  executables: []
75
-
76
67
  extensions: []
77
-
78
68
  extra_rdoc_files: []
79
-
80
- files:
69
+ files:
81
70
  - .yardopts
82
71
  - README
83
72
  - app/controllers/rails_connector/objs_controller.rb
@@ -127,41 +116,32 @@ files:
127
116
  - lib/rails_connector/workspace_data_from_database.rb
128
117
  - lib/rails_connector/workspace_data_from_service.rb
129
118
  - lib/rails_connector/workspace_selection_middleware.rb
130
- has_rdoc: yard
131
119
  homepage: http://www.infopark.de
132
120
  licenses: []
133
-
134
121
  post_install_message:
135
122
  rdoc_options: []
136
-
137
- require_paths:
123
+ require_paths:
138
124
  - lib
139
- required_ruby_version: !ruby/object:Gem::Requirement
125
+ required_ruby_version: !ruby/object:Gem::Requirement
140
126
  none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ segments:
146
132
  - 0
147
- version: "0"
148
- required_rubygems_version: !ruby/object:Gem::Requirement
133
+ hash: -881163793
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
135
  none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 17
154
- segments:
155
- - 1
156
- - 3
157
- - 5
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
158
139
  version: 1.3.5
159
140
  requirements: []
160
-
161
141
  rubyforge_project:
162
- rubygems_version: 1.6.2
142
+ rubygems_version: 1.8.23
163
143
  signing_key:
164
144
  specification_version: 3
165
145
  summary: Infopark Cloud Connector
166
146
  test_files: []
167
-
147
+ has_rdoc: yard