ruby_aem 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/conf/spec.yaml +48 -5
- data/lib/ruby_aem/resources/path.rb +12 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5a7530cb1a55ffc4580e7b72078e859cdc95835
|
4
|
+
data.tar.gz: 8a730e0be55e5d7a427755cb7989ac04eec50b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f29a78656d0da493757bcade4a1165cb4f5632fe1be1b2311df6f7f94cc91c15c468fa8bbab2c869022cebe546b16b8b9193391c4bae605770e0ea55c4e944dc
|
7
|
+
data.tar.gz: 1607001cff49c1ce720edc0e7be09f5d832ac575a04a43df1761d2b51e77b684da46ec0907016898fe216a3bf2716050f4f82cafa3907eea76af6ccb82bee405
|
data/conf/spec.yaml
CHANGED
@@ -207,15 +207,23 @@ group:
|
|
207
207
|
message: 'Group %{name} not found'
|
208
208
|
delete:
|
209
209
|
api: sling
|
210
|
-
operation:
|
210
|
+
operation: postNode
|
211
211
|
params:
|
212
212
|
required:
|
213
213
|
path: '%{path}'
|
214
214
|
name: '%{authorizable_id}'
|
215
|
+
optional:
|
216
|
+
delete_authorizable: ''
|
215
217
|
responses:
|
218
|
+
200:
|
219
|
+
handler: simple
|
220
|
+
message: 'Group %{name} deleted at %{path}/%{authorizable_id}'
|
221
|
+
201:
|
222
|
+
handler: simple
|
223
|
+
message: 'Group %{name} deleted at %{path}/%{authorizable_id}'
|
216
224
|
204:
|
217
225
|
handler: simple
|
218
|
-
message: 'Group %{name} deleted at
|
226
|
+
message: 'Group %{name} deleted at %{path}/%{authorizable_id}'
|
219
227
|
exists:
|
220
228
|
api: sling
|
221
229
|
operation: getNode
|
@@ -277,12 +285,20 @@ node:
|
|
277
285
|
message: 'Node %{path}/%{name} created'
|
278
286
|
delete:
|
279
287
|
api: sling
|
280
|
-
operation:
|
288
|
+
operation: postNode
|
281
289
|
params:
|
282
290
|
required:
|
283
291
|
path: '%{path}'
|
284
292
|
name: '%{name}'
|
293
|
+
optional:
|
294
|
+
operation: delete
|
285
295
|
responses:
|
296
|
+
200:
|
297
|
+
handler: simple
|
298
|
+
message: 'Node %{path}/%{name} deleted'
|
299
|
+
201:
|
300
|
+
handler: simple
|
301
|
+
message: 'Node %{path}/%{name} deleted'
|
286
302
|
204:
|
287
303
|
handler: simple
|
288
304
|
message: 'Node %{path}/%{name} deleted'
|
@@ -450,6 +466,25 @@ path:
|
|
450
466
|
200:
|
451
467
|
handler: simple
|
452
468
|
message: 'Path %{name} activated'
|
469
|
+
delete:
|
470
|
+
api: sling
|
471
|
+
operation: postNode
|
472
|
+
params:
|
473
|
+
required:
|
474
|
+
path: '%{path}'
|
475
|
+
name: '%{name}'
|
476
|
+
optional:
|
477
|
+
operation: delete
|
478
|
+
responses:
|
479
|
+
200:
|
480
|
+
handler: simple
|
481
|
+
message: 'Path %{path} deleted'
|
482
|
+
201:
|
483
|
+
handler: simple
|
484
|
+
message: 'Path %{path} deleted'
|
485
|
+
204:
|
486
|
+
handler: simple
|
487
|
+
message: 'Path %{path} deleted'
|
453
488
|
configproperty:
|
454
489
|
actions:
|
455
490
|
createapachefelixjettybasedhttpservice:
|
@@ -852,15 +887,23 @@ user:
|
|
852
887
|
message: 'User %{name} not found'
|
853
888
|
delete:
|
854
889
|
api: sling
|
855
|
-
operation:
|
890
|
+
operation: postNode
|
856
891
|
params:
|
857
892
|
required:
|
858
893
|
path: '%{path}'
|
859
894
|
name: '%{authorizable_id}'
|
895
|
+
optional:
|
896
|
+
delete_authorizable: ''
|
860
897
|
responses:
|
898
|
+
200:
|
899
|
+
handler: simple
|
900
|
+
message: 'User %{name} deleted at %{path}/%{authorizable_id}'
|
901
|
+
201:
|
902
|
+
handler: simple
|
903
|
+
message: 'User %{name} deleted at %{path}/%{authorizable_id}'
|
861
904
|
204:
|
862
905
|
handler: simple
|
863
|
-
message: 'User %{name} deleted at
|
906
|
+
message: 'User %{name} deleted at %{path}/%{authorizable_id}'
|
864
907
|
exists:
|
865
908
|
api: sling
|
866
909
|
operation: getNode
|
@@ -39,6 +39,18 @@ module RubyAem
|
|
39
39
|
|
40
40
|
@client.call(self.class, __callee__.to_s, @call_params)
|
41
41
|
end
|
42
|
+
|
43
|
+
# Delete a path.
|
44
|
+
#
|
45
|
+
# @param path Define the path which contains the node to delete
|
46
|
+
# @return RubyAem::Result
|
47
|
+
def delete
|
48
|
+
# The path parameter will be combined with the name parameter
|
49
|
+
# in order to delete the full path.
|
50
|
+
@call_params[:path] = @call_params[:name]
|
51
|
+
|
52
|
+
@client.call(self.class, __callee__.to_s, @call_params)
|
53
|
+
end
|
42
54
|
end
|
43
55
|
end
|
44
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_aem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.
|
62
|
+
version: 1.3.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
69
|
+
version: 1.3.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '2.
|
144
|
+
version: '2.2'
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.6.14
|
152
|
+
rubygems_version: 2.6.14.1
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: AEM API Ruby client
|