locomotivecms_mounter 1.5.5 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d0993deeb9662962e86db335f5b178a44481c3f
4
- data.tar.gz: 3b1ed4367b988e8b1ae394155fd858a5ce90f5a7
3
+ metadata.gz: 5f1de144689d250c6e2a5229c1c4b6b82a75a343
4
+ data.tar.gz: 78b521a58828f661452c14e370f1f06d3e49e526
5
5
  SHA512:
6
- metadata.gz: fc533c661fde90530c868aebcd818fbf735c030a43b254a5343501c6108ed0c17389c0b89ee6c26692ac11632f3bd753592a27d85891e9c659f12f64189e83de
7
- data.tar.gz: e52ddf0c11b993b0ca7e4f93cbfc56150caf585a2b10754d74f3edc4d17d36e3410ac97c48ec6534f60cfad4cba557582cfe1fd6aa3fedc232e53037781fa1ac
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.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.8)
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.2)
70
+ json (1.8.3)
71
71
  less (2.2.2)
72
72
  commonjs (~> 0.2.6)
73
73
  libv8 (3.16.14.3)
@@ -2,7 +2,7 @@
2
2
  module Locomotive
3
3
  module Mounter #:nodoc
4
4
 
5
- VERSION = '1.5.5'
5
+ VERSION = '1.5.6'
6
6
 
7
7
  end
8
8
  end
@@ -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
 
@@ -114,6 +114,8 @@ module Locomotive
114
114
 
115
115
  return unless page.translated_in?(locale)
116
116
 
117
+ return if filtered?(page.fullpath, page.handle)
118
+
117
119
  self.output_resource_op page
118
120
 
119
121
  success = page.persisted? ? self.update_page(page) : self.create_page(page)
@@ -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.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-06-05 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt