ruby_aem 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_aem/handlers/html.rb +8 -0
- metadata +19 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f980c9fe9b3d931d8e8a75ed021fdb5cdcab50
|
4
|
+
data.tar.gz: 3acd91dfbeae100286df90bd1529b3c081f2446b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ae0fc6cc72e93f3d667308ab062e5cc1f66ba5e1887f198a2cbf2644792e7f3141b07046f991f19d2c44a2233cd7291aa8bf32b074583cd1fb38c88c55f9fc1
|
7
|
+
data.tar.gz: 9c8927c9ae5b41514ea1d4e666769fd2f0f2e7aa5063e4aa023d1399aab3feda1e2cbd91661a3db63ab4feaa3d02fe1f71c99a0cd295c18ebf690bfb02cb48a4
|
@@ -60,12 +60,20 @@ module RubyAem
|
|
60
60
|
end
|
61
61
|
|
62
62
|
# Check response body for indicator of change password failure.
|
63
|
+
# If response body is empty, that indicates that there's an error due to inexisting user.
|
64
|
+
# Successful action produces a HTML page as response body.
|
63
65
|
#
|
64
66
|
# @param response HTTP response containing status_code, body, and headers
|
65
67
|
# @param response_spec response specification as configured in conf/spec.yaml
|
66
68
|
# @param call_params API call parameters
|
67
69
|
# @return RubyAem::Result
|
68
70
|
def self.html_change_password(response, response_spec, call_params)
|
71
|
+
if response.body.to_s.empty?
|
72
|
+
message = 'Failed to change password: Response body is empty, user likely does not exist.'
|
73
|
+
result = RubyAem::Result.new(message, response)
|
74
|
+
raise RubyAem::Error.new(message, result)
|
75
|
+
end
|
76
|
+
|
69
77
|
html = Nokogiri::HTML(response.body)
|
70
78
|
user = html.xpath('//body/div/table/tr/td/b/text()').to_s
|
71
79
|
desc = html.xpath('//body/div/table/tr/td/font/text()').to_s
|
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.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
@@ -9,84 +9,78 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
- - <
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: '1.7'
|
20
|
+
version: 1.8.1
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
|
-
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '1.6'
|
31
|
-
- - <
|
25
|
+
- - "~>"
|
32
26
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
27
|
+
version: 1.8.1
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: retries
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
|
-
- - ~>
|
32
|
+
- - "~>"
|
39
33
|
- !ruby/object:Gem::Version
|
40
34
|
version: 0.0.5
|
41
35
|
type: :runtime
|
42
36
|
prerelease: false
|
43
37
|
version_requirements: !ruby/object:Gem::Requirement
|
44
38
|
requirements:
|
45
|
-
- - ~>
|
39
|
+
- - "~>"
|
46
40
|
- !ruby/object:Gem::Version
|
47
41
|
version: 0.0.5
|
48
42
|
- !ruby/object:Gem::Dependency
|
49
43
|
name: swagger_aem
|
50
44
|
requirement: !ruby/object:Gem::Requirement
|
51
45
|
requirements:
|
52
|
-
- - ~>
|
46
|
+
- - "~>"
|
53
47
|
- !ruby/object:Gem::Version
|
54
48
|
version: 1.2.0
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
52
|
requirements:
|
59
|
-
- - ~>
|
53
|
+
- - "~>"
|
60
54
|
- !ruby/object:Gem::Version
|
61
55
|
version: 1.2.0
|
62
56
|
- !ruby/object:Gem::Dependency
|
63
57
|
name: rspec
|
64
58
|
requirement: !ruby/object:Gem::Requirement
|
65
59
|
requirements:
|
66
|
-
- - ~>
|
60
|
+
- - "~>"
|
67
61
|
- !ruby/object:Gem::Version
|
68
62
|
version: '3.4'
|
69
63
|
type: :development
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
66
|
requirements:
|
73
|
-
- - ~>
|
67
|
+
- - "~>"
|
74
68
|
- !ruby/object:Gem::Version
|
75
69
|
version: '3.4'
|
76
70
|
- !ruby/object:Gem::Dependency
|
77
71
|
name: yard
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|
79
73
|
requirements:
|
80
|
-
- - ~>
|
74
|
+
- - "~>"
|
81
75
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.9.
|
76
|
+
version: 0.9.11
|
83
77
|
type: :development
|
84
78
|
prerelease: false
|
85
79
|
version_requirements: !ruby/object:Gem::Requirement
|
86
80
|
requirements:
|
87
|
-
- - ~>
|
81
|
+
- - "~>"
|
88
82
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.9.
|
83
|
+
version: 0.9.11
|
90
84
|
description: ruby_aem is a Ruby client for Adobe Experience Manager (AEM) API, written
|
91
85
|
on top of swagger_aem
|
92
86
|
email:
|
@@ -131,12 +125,12 @@ require_paths:
|
|
131
125
|
- lib
|
132
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
|
-
- -
|
128
|
+
- - ">="
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version: '2.
|
130
|
+
version: '2.1'
|
137
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
132
|
requirements:
|
139
|
-
- -
|
133
|
+
- - ">="
|
140
134
|
- !ruby/object:Gem::Version
|
141
135
|
version: '0'
|
142
136
|
requirements: []
|