ruby_aem 1.0.14 → 1.0.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b45d098721852515e8615685d3ee203f1a35a7a5
4
- data.tar.gz: 514b59f46fc1afa79b49caf1adbc71b3ed9b1429
3
+ metadata.gz: affd400287f2582c3628d74c27a1660dc40b8fcf
4
+ data.tar.gz: 9e7aeccfb93cd83de25d8c479d8f63f8bec5f1d0
5
5
  SHA512:
6
- metadata.gz: 45a8e3997e255d7f83d0e36d400bdf7465a0f8351464218c3f80d462dc9339b2d797118531771e7034891b22c1156d482970dbe48858981b562d80a744e1ef01
7
- data.tar.gz: 218ea27d0607f86791dea71c51f3d3c0522c49a050b9373f59ce8fcb3590e32de902f8192247650fe515c9bfa91affaa82920b8a0180ad6b0ced6cc15bafee0c
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:
@@ -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
- # - debug: if true, then additional debug messages will be included
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.14
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-03-24 00:00:00.000000000 Z
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.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.9
61
+ version: 0.9.11
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec
64
64
  requirement: !ruby/object:Gem::Requirement