locomotivecms_mounter 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/locomotive/mounter/reader/api/content_entries_reader.rb +1 -1
- data/lib/locomotive/mounter/reader/api/pages_reader.rb +2 -2
- data/lib/locomotive/mounter/reader/file_system/content_entries_reader.rb +3 -3
- data/lib/locomotive/mounter/reader/file_system.rb +1 -0
- data/lib/locomotive/mounter/version.rb +1 -1
- data/lib/locomotive/mounter/writer/api/content_entries_writer.rb +1 -1
- data/lib/locomotive/mounter/writer/api/pages_writer.rb +91 -57
- data/lib/locomotive/mounter.rb +4 -0
- metadata +64 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bc126f035df0912f914258192ed40e207f0b500
|
4
|
+
data.tar.gz: 83f1f579f8ec9f6e00f9bd934261944ee8538785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e40834801eb4e0d81f23b476f6be7ad20697c32be1bcbb17a7647d1642bed4ce42af4d507cb3074ca65a13b32c261d71f8de3d5893d242bbd420156f116caf32
|
7
|
+
data.tar.gz: 230ac8773c3a0524ccd3516db6a3fc4f3ac6621b2d1b14d711af67bf4df5cfae54e50e33893e12c68c9591d5c0dba7248c20bca33d8b4aed5ca7728b16123426
|
@@ -74,7 +74,7 @@ module Locomotive
|
|
74
74
|
# @return [ Object] The attributes understandable by the content entry
|
75
75
|
#
|
76
76
|
def filter_attributes(content_type, original_attributes)
|
77
|
-
attributes = original_attributes.clone.keep_if { |k, v| %w(_id _slug seo_title meta_keywords meta_description _position created_at updated_at).include?(k) }
|
77
|
+
attributes = original_attributes.clone.keep_if { |k, v| %w(_id _slug seo_title meta_keywords meta_description _position _visible created_at updated_at).include?(k) }
|
78
78
|
|
79
79
|
content_type.fields.each do |field|
|
80
80
|
value = (case field.type
|
@@ -153,7 +153,7 @@ module Locomotive
|
|
153
153
|
hash['content'] = self.add_content_asset(hash['content'], '/samples/pages')
|
154
154
|
else
|
155
155
|
self.mounting_point.content_assets.each do |path, asset|
|
156
|
-
hash['content'].gsub!(path
|
156
|
+
hash['content'].gsub!(/(http:\/\/[^\/]*)?#{path}/, asset.local_filepath)
|
157
157
|
end
|
158
158
|
end
|
159
159
|
end
|
@@ -189,4 +189,4 @@ module Locomotive
|
|
189
189
|
end
|
190
190
|
end
|
191
191
|
end
|
192
|
-
end
|
192
|
+
end
|
@@ -27,7 +27,7 @@ module Locomotive
|
|
27
27
|
|
28
28
|
attributes.each_with_index do |_attributes, index|
|
29
29
|
self.add(content_type, _attributes, index)
|
30
|
-
end
|
30
|
+
end unless attributes == false
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -57,7 +57,7 @@ module Locomotive
|
|
57
57
|
if attributes.is_a?(String)
|
58
58
|
label, _attributes = attributes, {}
|
59
59
|
else
|
60
|
-
label, _attributes = attributes.keys.first, attributes.values.first
|
60
|
+
label, _attributes = attributes.keys.first, attributes.values.first || {}
|
61
61
|
end
|
62
62
|
|
63
63
|
# check if the label_field is localized or not
|
@@ -94,4 +94,4 @@ module Locomotive
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
97
|
-
end
|
97
|
+
end
|
@@ -176,7 +176,7 @@ module Locomotive
|
|
176
176
|
when :string, :text
|
177
177
|
params[field.name] = self.replace_content_assets!(value)
|
178
178
|
when :file
|
179
|
-
if value =~ %r(
|
179
|
+
if value =~ %r(^http://)
|
180
180
|
params[field.name] = value
|
181
181
|
elsif value && self.mounting_point.path
|
182
182
|
path = File.join(self.mounting_point.path, 'public', value)
|
@@ -13,6 +13,8 @@ module Locomotive
|
|
13
13
|
#
|
14
14
|
class PagesWriter < Base
|
15
15
|
|
16
|
+
MAX_ATTEMPTS = 5
|
17
|
+
|
16
18
|
attr_accessor :new_pages
|
17
19
|
attr_accessor :remote_translations
|
18
20
|
|
@@ -43,16 +45,46 @@ module Locomotive
|
|
43
45
|
self.each_locale do |locale|
|
44
46
|
self.output_locale
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
+
done, attempts = {}, 0
|
49
|
+
while done.size < pages.length - 1 && attempts < MAX_ATTEMPTS
|
50
|
+
_write(pages['index'], done, done.size > 0)
|
51
|
+
|
52
|
+
# keep track of the attempts because we don't want to get an infinite loop.
|
53
|
+
attempts += 1
|
54
|
+
end
|
48
55
|
|
49
|
-
|
50
|
-
|
56
|
+
write_page(pages['404'])
|
57
|
+
|
58
|
+
if done.size < pages.length - 1
|
59
|
+
self.log %{Warning: NOT all the pages were pushed.\n\tCheck that the pages inheritance was done right OR that you translated all your pages.\n}.colorize(color: :red)
|
60
|
+
end
|
51
61
|
end
|
52
62
|
end
|
53
63
|
|
54
64
|
protected
|
55
65
|
|
66
|
+
def _write(page, done, already_done = false)
|
67
|
+
if self.safely_translated?(page)
|
68
|
+
write_page(page) unless already_done
|
69
|
+
else
|
70
|
+
self.output_resource_op page
|
71
|
+
self.output_resource_op_status page, :not_translated
|
72
|
+
end
|
73
|
+
|
74
|
+
# mark it as done
|
75
|
+
done[page.fullpath] = true
|
76
|
+
|
77
|
+
# loop over its children
|
78
|
+
(page.children || []).sort_by(&:depth_and_position).each do |child|
|
79
|
+
layout = child.layout
|
80
|
+
layout = page.fullpath if layout && layout == 'parent'
|
81
|
+
|
82
|
+
if done[child.fullpath].nil? && (!layout || done[layout])
|
83
|
+
_write(child, done)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
56
88
|
def write_page(page)
|
57
89
|
locale = Locomotive::Mounter.locale
|
58
90
|
|
@@ -121,39 +153,39 @@ module Locomotive
|
|
121
153
|
self.mounting_point.pages
|
122
154
|
end
|
123
155
|
|
124
|
-
# Return the pages which are layouts for others.
|
125
|
-
# They are sorted by the depth.
|
126
|
-
#
|
127
|
-
# @return [ Array ] The list of layouts
|
128
|
-
#
|
129
|
-
def layouts
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
end
|
134
|
-
|
135
|
-
# Return the pages wich are not layouts for others.
|
136
|
-
# They are sorted by both the depth and the position.
|
137
|
-
#
|
138
|
-
# @return [ Array ] The list of non-layout pages
|
139
|
-
#
|
140
|
-
def other_than_layouts
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
end
|
156
|
+
# # Return the pages which are layouts for others.
|
157
|
+
# # They are sorted by the depth.
|
158
|
+
# #
|
159
|
+
# # @return [ Array ] The list of layouts
|
160
|
+
# #
|
161
|
+
# def layouts
|
162
|
+
# self.pages.values.find_all do |page|
|
163
|
+
# self.safely_translated?(page) && self.is_layout?(page)
|
164
|
+
# end.sort { |a, b| a.depth <=> b.depth }
|
165
|
+
# end
|
166
|
+
|
167
|
+
# # Return the pages wich are not layouts for others.
|
168
|
+
# # They are sorted by both the depth and the position.
|
169
|
+
# #
|
170
|
+
# # @return [ Array ] The list of non-layout pages
|
171
|
+
# #
|
172
|
+
# def other_than_layouts
|
173
|
+
# list = (self.pages.values - self.layouts)
|
174
|
+
|
175
|
+
# # get only the translated ones in the current locale
|
176
|
+
# list.delete_if do |page|
|
177
|
+
# # if (!page.parent.nil? && !page.translated_in?(self.mounting_point.default_locale)) ||
|
178
|
+
# # !page.translated_in?(Locomotive::Mounter.locale)
|
179
|
+
# if !self.safely_translated?(page)
|
180
|
+
# self.output_resource_op page
|
181
|
+
# self.output_resource_op_status page, :not_translated
|
182
|
+
# true
|
183
|
+
# end
|
184
|
+
# end
|
185
|
+
|
186
|
+
# # sort them
|
187
|
+
# list.sort { |a, b| a.depth_and_position <=> b.depth_and_position }
|
188
|
+
# end
|
157
189
|
|
158
190
|
# Tell if the page passed in parameter has already been
|
159
191
|
# translated on the remote engine for the locale passed
|
@@ -186,26 +218,26 @@ module Locomotive
|
|
186
218
|
end
|
187
219
|
end
|
188
220
|
|
189
|
-
# Tell if the page is a real layout, which means no extends tag inside
|
190
|
-
# and that at least one of the other pages reference it as a parent template.
|
191
|
-
#
|
192
|
-
# @param [ Object ] page The page
|
193
|
-
#
|
194
|
-
# @return [ Boolean] True if it is a real layout.
|
195
|
-
#
|
196
|
-
def is_layout?(page)
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
end
|
221
|
+
# # Tell if the page is a real layout, which means no extends tag inside
|
222
|
+
# # and that at least one of the other pages reference it as a parent template.
|
223
|
+
# #
|
224
|
+
# # @param [ Object ] page The page
|
225
|
+
# #
|
226
|
+
# # @return [ Boolean] True if it is a real layout.
|
227
|
+
# #
|
228
|
+
# def is_layout?(page)
|
229
|
+
# if page.is_layout?
|
230
|
+
# # has child(ren) extending the page itself ?
|
231
|
+
# return true if (page.children || []).any? { |child| child.layout == 'parent' }
|
232
|
+
|
233
|
+
# fullpath = page.fullpath_in_default_locale
|
234
|
+
|
235
|
+
# # among all the pages, is there a page extending the page itself ?
|
236
|
+
# self.pages.values.any? { |_page| _page.fullpath_in_default_locale != fullpath && _page.layout == fullpath }
|
237
|
+
# else
|
238
|
+
# false # extends not present
|
239
|
+
# end
|
240
|
+
# end
|
209
241
|
|
210
242
|
# Return the parameters of a page sent by the API.
|
211
243
|
# It includes the editable_elements if the data option is enabled or
|
@@ -223,6 +255,8 @@ module Locomotive
|
|
223
255
|
|
224
256
|
if self.data? || self.new_pages.include?(page._id)
|
225
257
|
params[:editable_elements] = (page.editable_elements || []).map(&:to_params)
|
258
|
+
else
|
259
|
+
params.delete(:editable_elements)
|
226
260
|
end
|
227
261
|
|
228
262
|
# editable elements
|
data/lib/locomotive/mounter.rb
CHANGED
@@ -3,6 +3,10 @@ $:.unshift File.expand_path(File.dirname(__FILE__))
|
|
3
3
|
# Force encoding to UTF-8
|
4
4
|
Encoding.default_internal = Encoding.default_external = 'UTF-8'
|
5
5
|
|
6
|
+
# Remove I18n warnings
|
7
|
+
require 'i18n'
|
8
|
+
I18n.config.enforce_available_locales = true
|
9
|
+
|
6
10
|
require 'logger'
|
7
11
|
require 'colorize'
|
8
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_mounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|
@@ -28,198 +28,198 @@ dependencies:
|
|
28
28
|
name: sprockets
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sprockets-sass
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: haml
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.0.
|
61
|
+
version: 4.0.5
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.0.
|
68
|
+
version: 4.0.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sass
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.2.12
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.2.12
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: compass
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.12.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.12.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: coffee-script
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 2.2.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 2.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: less
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 2.2.1
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 2.2.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: RedCloth
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 4.2.3
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 4.2.3
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: tzinfo
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 0.3.29
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.3.29
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: chronic
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 0.10.2
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - ~>
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 0.10.2
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: activesupport
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - ~>
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 3.2.
|
173
|
+
version: 3.2.18
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - ~>
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 3.2.
|
180
|
+
version: 3.2.18
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: i18n
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - ~>
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: 0.6.0
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - ~>
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.6.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: stringex
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - ~>
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: 2.0.3
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - ~>
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 2.0.3
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: multi_json
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - ~>
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 1.
|
215
|
+
version: 1.8.4
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - ~>
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.
|
222
|
+
version: 1.8.4
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: httmultiparty
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,70 +238,70 @@ dependencies:
|
|
238
238
|
name: json
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- - ~>
|
241
|
+
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: 1.8.0
|
244
244
|
type: :runtime
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- - ~>
|
248
|
+
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: 1.8.0
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
252
|
name: mime-types
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
|
-
- - ~>
|
255
|
+
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '1.19'
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
|
-
- - ~>
|
262
|
+
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '1.19'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: zip
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
|
-
- - ~>
|
269
|
+
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: 2.0.2
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- - ~>
|
276
|
+
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: 2.0.2
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: colorize
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
|
-
- - ~>
|
283
|
+
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: 0.5.8
|
286
286
|
type: :runtime
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- - ~>
|
290
|
+
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: 0.5.8
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: logger
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- -
|
297
|
+
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
type: :runtime
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
|
-
- -
|
304
|
+
- - ">="
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
307
|
- !ruby/object:Gem::Dependency
|
@@ -322,56 +322,42 @@ dependencies:
|
|
322
322
|
name: rspec
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
324
324
|
requirements:
|
325
|
-
- - ~>
|
325
|
+
- - "~>"
|
326
326
|
- !ruby/object:Gem::Version
|
327
|
-
version: 2.
|
327
|
+
version: 2.14.1
|
328
328
|
type: :development
|
329
329
|
prerelease: false
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
331
331
|
requirements:
|
332
|
-
- - ~>
|
332
|
+
- - "~>"
|
333
333
|
- !ruby/object:Gem::Version
|
334
|
-
version: 2.
|
335
|
-
- !ruby/object:Gem::Dependency
|
336
|
-
name: mocha
|
337
|
-
requirement: !ruby/object:Gem::Requirement
|
338
|
-
requirements:
|
339
|
-
- - '='
|
340
|
-
- !ruby/object:Gem::Version
|
341
|
-
version: 0.9.12
|
342
|
-
type: :development
|
343
|
-
prerelease: false
|
344
|
-
version_requirements: !ruby/object:Gem::Requirement
|
345
|
-
requirements:
|
346
|
-
- - '='
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
version: 0.9.12
|
334
|
+
version: 2.14.1
|
349
335
|
- !ruby/object:Gem::Dependency
|
350
336
|
name: rack-test
|
351
337
|
requirement: !ruby/object:Gem::Requirement
|
352
338
|
requirements:
|
353
|
-
- - ~>
|
339
|
+
- - "~>"
|
354
340
|
- !ruby/object:Gem::Version
|
355
341
|
version: 0.6.1
|
356
342
|
type: :development
|
357
343
|
prerelease: false
|
358
344
|
version_requirements: !ruby/object:Gem::Requirement
|
359
345
|
requirements:
|
360
|
-
- - ~>
|
346
|
+
- - "~>"
|
361
347
|
- !ruby/object:Gem::Version
|
362
348
|
version: 0.6.1
|
363
349
|
- !ruby/object:Gem::Dependency
|
364
350
|
name: ruby-debug-wrapper
|
365
351
|
requirement: !ruby/object:Gem::Requirement
|
366
352
|
requirements:
|
367
|
-
- - ~>
|
353
|
+
- - "~>"
|
368
354
|
- !ruby/object:Gem::Version
|
369
355
|
version: 0.0.1
|
370
356
|
type: :development
|
371
357
|
prerelease: false
|
372
358
|
version_requirements: !ruby/object:Gem::Requirement
|
373
359
|
requirements:
|
374
|
-
- - ~>
|
360
|
+
- - "~>"
|
375
361
|
- !ruby/object:Gem::Version
|
376
362
|
version: 0.0.1
|
377
363
|
- !ruby/object:Gem::Dependency
|
@@ -392,14 +378,14 @@ dependencies:
|
|
392
378
|
name: therubyracer
|
393
379
|
requirement: !ruby/object:Gem::Requirement
|
394
380
|
requirements:
|
395
|
-
- - ~>
|
381
|
+
- - "~>"
|
396
382
|
- !ruby/object:Gem::Version
|
397
383
|
version: 0.11.4
|
398
384
|
type: :development
|
399
385
|
prerelease: false
|
400
386
|
version_requirements: !ruby/object:Gem::Requirement
|
401
387
|
requirements:
|
402
|
-
- - ~>
|
388
|
+
- - "~>"
|
403
389
|
- !ruby/object:Gem::Version
|
404
390
|
version: 0.11.4
|
405
391
|
- !ruby/object:Gem::Dependency
|
@@ -424,6 +410,7 @@ executables: []
|
|
424
410
|
extensions: []
|
425
411
|
extra_rdoc_files: []
|
426
412
|
files:
|
413
|
+
- lib/locomotive/mounter.rb
|
427
414
|
- lib/locomotive/mounter/config.rb
|
428
415
|
- lib/locomotive/mounter/engine_api.rb
|
429
416
|
- lib/locomotive/mounter/exceptions.rb
|
@@ -445,6 +432,7 @@ files:
|
|
445
432
|
- lib/locomotive/mounter/models/theme_asset.rb
|
446
433
|
- lib/locomotive/mounter/models/translation.rb
|
447
434
|
- lib/locomotive/mounter/mounting_point.rb
|
435
|
+
- lib/locomotive/mounter/reader/api.rb
|
448
436
|
- lib/locomotive/mounter/reader/api/base.rb
|
449
437
|
- lib/locomotive/mounter/reader/api/content_assets_reader.rb
|
450
438
|
- lib/locomotive/mounter/reader/api/content_entries_reader.rb
|
@@ -454,7 +442,7 @@ files:
|
|
454
442
|
- lib/locomotive/mounter/reader/api/snippets_reader.rb
|
455
443
|
- lib/locomotive/mounter/reader/api/theme_assets_reader.rb
|
456
444
|
- lib/locomotive/mounter/reader/api/translations_reader.rb
|
457
|
-
- lib/locomotive/mounter/reader/
|
445
|
+
- lib/locomotive/mounter/reader/file_system.rb
|
458
446
|
- lib/locomotive/mounter/reader/file_system/base.rb
|
459
447
|
- lib/locomotive/mounter/reader/file_system/content_assets_reader.rb
|
460
448
|
- lib/locomotive/mounter/reader/file_system/content_entries_reader.rb
|
@@ -464,7 +452,6 @@ files:
|
|
464
452
|
- lib/locomotive/mounter/reader/file_system/snippets_reader.rb
|
465
453
|
- lib/locomotive/mounter/reader/file_system/theme_assets_reader.rb
|
466
454
|
- lib/locomotive/mounter/reader/file_system/translations_reader.rb
|
467
|
-
- lib/locomotive/mounter/reader/file_system.rb
|
468
455
|
- lib/locomotive/mounter/reader/runner.rb
|
469
456
|
- lib/locomotive/mounter/utils/hash.rb
|
470
457
|
- lib/locomotive/mounter/utils/output.rb
|
@@ -472,6 +459,7 @@ files:
|
|
472
459
|
- lib/locomotive/mounter/utils/yaml.rb
|
473
460
|
- lib/locomotive/mounter/utils/yaml_front_matters_template.rb
|
474
461
|
- lib/locomotive/mounter/version.rb
|
462
|
+
- lib/locomotive/mounter/writer/api.rb
|
475
463
|
- lib/locomotive/mounter/writer/api/base.rb
|
476
464
|
- lib/locomotive/mounter/writer/api/content_assets_writer.rb
|
477
465
|
- lib/locomotive/mounter/writer/api/content_entries_writer.rb
|
@@ -481,7 +469,7 @@ files:
|
|
481
469
|
- lib/locomotive/mounter/writer/api/snippets_writer.rb
|
482
470
|
- lib/locomotive/mounter/writer/api/theme_assets_writer.rb
|
483
471
|
- lib/locomotive/mounter/writer/api/translations_writer.rb
|
484
|
-
- lib/locomotive/mounter/writer/
|
472
|
+
- lib/locomotive/mounter/writer/file_system.rb
|
485
473
|
- lib/locomotive/mounter/writer/file_system/base.rb
|
486
474
|
- lib/locomotive/mounter/writer/file_system/content_assets_writer.rb
|
487
475
|
- lib/locomotive/mounter/writer/file_system/content_entries_writer.rb
|
@@ -491,9 +479,7 @@ files:
|
|
491
479
|
- lib/locomotive/mounter/writer/file_system/snippets_writer.rb
|
492
480
|
- lib/locomotive/mounter/writer/file_system/theme_assets_writer.rb
|
493
481
|
- lib/locomotive/mounter/writer/file_system/translations_writer.rb
|
494
|
-
- lib/locomotive/mounter/writer/file_system.rb
|
495
482
|
- lib/locomotive/mounter/writer/runner.rb
|
496
|
-
- lib/locomotive/mounter.rb
|
497
483
|
homepage: http://www.locomotivecms.com
|
498
484
|
licenses: []
|
499
485
|
metadata: {}
|
@@ -503,17 +489,17 @@ require_paths:
|
|
503
489
|
- lib
|
504
490
|
required_ruby_version: !ruby/object:Gem::Requirement
|
505
491
|
requirements:
|
506
|
-
- -
|
492
|
+
- - ">="
|
507
493
|
- !ruby/object:Gem::Version
|
508
494
|
version: '0'
|
509
495
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
510
496
|
requirements:
|
511
|
-
- -
|
497
|
+
- - ">="
|
512
498
|
- !ruby/object:Gem::Version
|
513
499
|
version: 1.3.6
|
514
500
|
requirements: []
|
515
501
|
rubyforge_project: locomotivecms_mounter
|
516
|
-
rubygems_version: 2.
|
502
|
+
rubygems_version: 2.2.2
|
517
503
|
signing_key:
|
518
504
|
specification_version: 4
|
519
505
|
summary: LocomotiveCMS Mounter
|