ruby_aem 2.0.0 → 2.1.0

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: 12894ae583c726105705a9190528e65ac1809bc7
4
- data.tar.gz: ccd3494f0e7f7243163e76a1cb06ee06944c8e44
3
+ metadata.gz: 2603c82cd2ec0808f1153a92230a2c228b5d6fa9
4
+ data.tar.gz: 9edf06b032769cb9378bed54e68006e50dd23e96
5
5
  SHA512:
6
- metadata.gz: 1f38f4fd0c187018aaa4be433045feb27a6303fb8023000fd293e37dcd7d3fa0a05dbb2e7e2ae10c04608c1f538c1e09f2a382e6235023e908f6b794649f9a4d
7
- data.tar.gz: 619b61917d88a135f30da318cbda0af5183b8f9d96ba96494e3cfb0a61b7b0741bda2c526ab1b1e1efe5e968550499dd1e1110ecb468d80b3b95f6a7a84c9c52
6
+ metadata.gz: 5ef1da3b8e4f6ee8ebb105d9d9c638a66d03071c29dee24b077d195c057104489c1e2a9b1561c2f9115b8a3e4860f9c7ff779127fd2174047885fe581416c3d1
7
+ data.tar.gz: 25f03e2d4f9d77b3cb53882da9b1d2f8ed1a2aef6f2952fbdbef7bacdf07b2901c91908df370d8e8e77064dbcf9f21fa533eeaf947baee6c4e706c6d274d2210
@@ -207,15 +207,23 @@ group:
207
207
  message: 'Group %{name} not found'
208
208
  delete:
209
209
  api: sling
210
- operation: deleteNode
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 /%{path}/%{authorizable_id}'
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: deleteNode
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: deleteNode
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 /%{path}/%{authorizable_id}'
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: 2.0.0
4
+ version: 2.1.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-06-23 00:00:00.000000000 Z
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: 2.0.0
62
+ version: 2.1.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: 2.0.0
69
+ version: 2.1.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.1'
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