ruby_aem 1.0.14 → 1.0.15
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 +16 -0
- data/lib/ruby_aem/swagger.rb +2 -0
- data/lib/ruby_aem.rb +10 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: affd400287f2582c3628d74c27a1660dc40b8fcf
|
4
|
+
data.tar.gz: 9e7aeccfb93cd83de25d8c479d8f63f8bec5f1d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24cb1caeb841b1d0e29354ae6ceca45f7101d22dbf6afdec2f55c4545b6c87440b798ffd2fff69baea4f7122486ba3b865e06c43e3c115f59d3d1975cd43d9b7
|
7
|
+
data.tar.gz: 6c2e3cc1329ce0a65aff29b18a3c38fd02a9617f69e77d471ea9094cfcc21d319460b425c911c1e14b537bb3320ed086a1f43df6a98efa3c6a0a0e7abd3ea87d
|
data/conf/spec.yaml
CHANGED
@@ -482,6 +482,22 @@ configproperty:
|
|
482
482
|
201:
|
483
483
|
handler: simple
|
484
484
|
message: 'Set %{run_mode} %{config_node_name} config %{type} property %{name}=%{value}'
|
485
|
+
createaempasswordresetactivator:
|
486
|
+
api: custom
|
487
|
+
operation: postConfigAemPasswordReset
|
488
|
+
params:
|
489
|
+
required:
|
490
|
+
runmode: '%{run_mode}'
|
491
|
+
optional:
|
492
|
+
- pwdreset_authorizables
|
493
|
+
- pwdreset_authorizables_type_hint
|
494
|
+
responses:
|
495
|
+
200:
|
496
|
+
handler: simple
|
497
|
+
message: 'Set %{run_mode} %{config_node_name} config %{type} property %{name}=%{value}'
|
498
|
+
201:
|
499
|
+
handler: simple
|
500
|
+
message: 'Set %{run_mode} %{config_node_name} config %{type} property %{name}=%{value}'
|
485
501
|
replicationagent:
|
486
502
|
responses:
|
487
503
|
404:
|
data/lib/ruby_aem/swagger.rb
CHANGED
@@ -62,6 +62,8 @@ module RubyAem
|
|
62
62
|
'Apache Sling Referrer Filter'
|
63
63
|
when 'org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet'
|
64
64
|
'Apache Sling DavEx Servlet'
|
65
|
+
when 'com.shinesolutions.aem.passwordreset.Activator'
|
66
|
+
'AEM Password Reset Activator'
|
65
67
|
else
|
66
68
|
nil
|
67
69
|
end
|
data/lib/ruby_aem.rb
CHANGED
@@ -38,12 +38,13 @@ module RubyAem
|
|
38
38
|
# Initialise a Ruby AEM instance.
|
39
39
|
#
|
40
40
|
# @param conf configuration hash of the following configuration values:
|
41
|
-
# - username: username used to authenticate to AEM instance
|
42
|
-
# - password: password used to authenticate to AEM instance
|
43
|
-
# - protocol: AEM instance protocol (http or https)
|
44
|
-
# - host: AEM instance host name
|
45
|
-
# - port: AEM instance port
|
46
|
-
# -
|
41
|
+
# - username: username used to authenticate to AEM instance, default: 'admin'
|
42
|
+
# - password: password used to authenticate to AEM instance, default: 'admin'
|
43
|
+
# - protocol: AEM instance protocol (http or https), default: 'http'
|
44
|
+
# - host: AEM instance host name, default: 'localhost'
|
45
|
+
# - port: AEM instance port, default: 4502
|
46
|
+
# - timeout: connection timeout in seconds, default: 300 seconds
|
47
|
+
# - debug: if true, then additional debug messages will be included, default: false
|
47
48
|
# @return new RubyAem::Aem instance
|
48
49
|
def initialize(conf = {})
|
49
50
|
|
@@ -52,18 +53,21 @@ module RubyAem
|
|
52
53
|
conf[:protocol] ||= 'http'
|
53
54
|
conf[:host] ||= 'localhost'
|
54
55
|
conf[:port] ||= 4502
|
56
|
+
conf[:timeout] ||= 300
|
55
57
|
conf[:debug] ||= false
|
56
58
|
|
57
59
|
SwaggerAemClient.configure { |swagger_conf| [
|
58
60
|
swagger_conf.host = "#{conf[:protocol]}://#{conf[:host]}:#{conf[:port]}",
|
59
61
|
swagger_conf.username = conf[:username],
|
60
62
|
swagger_conf.password = conf[:password],
|
63
|
+
swagger_conf.timeout = conf[:timeout],
|
61
64
|
swagger_conf.debugging = conf[:debug],
|
62
65
|
swagger_conf.params_encoding = :multi
|
63
66
|
]}
|
64
67
|
|
65
68
|
apis = {
|
66
69
|
:console => SwaggerAemClient::ConsoleApi.new,
|
70
|
+
:custom => SwaggerAemClient::CustomApi.new,
|
67
71
|
:cq => SwaggerAemClient::CqApi.new,
|
68
72
|
:crx => SwaggerAemClient::CrxApi.new,
|
69
73
|
:sling => SwaggerAemClient::SlingApi.new
|
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.0.
|
4
|
+
version: 1.0.15
|
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: 2017-
|
12
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -51,14 +51,14 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.9.
|
54
|
+
version: 0.9.11
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.9.
|
61
|
+
version: 0.9.11
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rspec
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|