locomotivecms_mounter 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/locomotive/mounter/version.rb +1 -1
- data/lib/locomotive/mounter/writer/api/base.rb +8 -0
- data/lib/locomotive/mounter/writer/api/content_types_writer.rb +4 -0
- data/lib/locomotive/mounter/writer/api/pages_writer.rb +2 -0
- data/lib/locomotive/mounter/writer/api/snippets_writer.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f1de144689d250c6e2a5229c1c4b6b82a75a343
|
|
4
|
+
data.tar.gz: 78b521a58828f661452c14e370f1f06d3e49e526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b38ae450fff2924965a8c2761fc84be63c666af5cc7dbd7cc2a5dadfcbe36d6e642262b7a4e719144e644fba4f89491bf7dd9eab94a4400f84f09a1663b90b2
|
|
7
|
+
data.tar.gz: ae89bc14a8010175aebcec29fe059489b0ec1b415519a3569f3380103fc9326bf6eda58df25b11fd924b6b49b8e1b5ec02dd7676aa78f47de4f6efeb441c9417
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
locomotivecms_mounter (1.5.
|
|
4
|
+
locomotivecms_mounter (1.5.6)
|
|
5
5
|
RedCloth (~> 4.2.3)
|
|
6
6
|
activesupport (~> 3.2.21)
|
|
7
7
|
chronic (~> 0.10.2)
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
safe_yaml (~> 1.0.0)
|
|
57
57
|
diff-lcs (1.2.5)
|
|
58
58
|
execjs (2.5.2)
|
|
59
|
-
ffi (1.9.
|
|
59
|
+
ffi (1.9.9)
|
|
60
60
|
haml (4.0.6)
|
|
61
61
|
tilt
|
|
62
62
|
hike (1.2.3)
|
|
@@ -67,7 +67,7 @@ GEM
|
|
|
67
67
|
json (~> 1.8)
|
|
68
68
|
multi_xml (>= 0.5.2)
|
|
69
69
|
i18n (0.6.11)
|
|
70
|
-
json (1.8.
|
|
70
|
+
json (1.8.3)
|
|
71
71
|
less (2.2.2)
|
|
72
72
|
commonjs (~> 0.2.6)
|
|
73
73
|
libv8 (3.16.14.3)
|
|
@@ -164,6 +164,14 @@ module Locomotive
|
|
|
164
164
|
response ? :success : :error
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
+
def filtered?(*identifiers)
|
|
168
|
+
return false if runner.parameters[:only_resource].blank?
|
|
169
|
+
|
|
170
|
+
!identifiers.any? do |identifier|
|
|
171
|
+
runner.parameters[:only_resource].include?(identifier.to_s)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
167
175
|
end
|
|
168
176
|
|
|
169
177
|
end
|
|
@@ -31,6 +31,8 @@ module Locomotive
|
|
|
31
31
|
|
|
32
32
|
# first new content types
|
|
33
33
|
self.not_persisted.each do |content_type|
|
|
34
|
+
next if filtered?(content_type.slug)
|
|
35
|
+
|
|
34
36
|
self.create_content_type(content_type)
|
|
35
37
|
|
|
36
38
|
done[content_type.slug] = content_type.with_relationships? ? :todo : :done
|
|
@@ -40,6 +42,8 @@ module Locomotive
|
|
|
40
42
|
self.content_types.values.each do |content_type|
|
|
41
43
|
next unless done[content_type.slug].nil?
|
|
42
44
|
|
|
45
|
+
next if filtered?(content_type.slug)
|
|
46
|
+
|
|
43
47
|
self.update_content_type(content_type)
|
|
44
48
|
end
|
|
45
49
|
|
|
@@ -40,6 +40,8 @@ module Locomotive
|
|
|
40
40
|
|
|
41
41
|
return unless snippet.translated_in?(locale)
|
|
42
42
|
|
|
43
|
+
return if filtered?(snippet.slug)
|
|
44
|
+
|
|
43
45
|
self.output_resource_op snippet
|
|
44
46
|
|
|
45
47
|
success = snippet.persisted? ? self.update_snippet(snippet) : self.create_snippet(snippet)
|
|
@@ -108,4 +110,4 @@ module Locomotive
|
|
|
108
110
|
end
|
|
109
111
|
end
|
|
110
112
|
end
|
|
111
|
-
end
|
|
113
|
+
end
|
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.5.
|
|
4
|
+
version: 1.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Didier Lafforgue
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tilt
|