confluence-soap 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/confluence-soap.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2764dfcb327101f95a5add4d63b972c8e88b1a25
|
4
|
+
data.tar.gz: 562eb62fdca0d1513918dbfb1735af9a65794418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e1e94eca44a3693e562cb4e196cc8afb0c1ba7e8b41b7b2cbc5d9391084ea1e095b749b1095e1baa18b781cdc489d9b1fc3fe45228e3057b1ec2d274291e4c
|
7
|
+
data.tar.gz: d8dbef33ef3c01c00c30a9674ba498eda501c3d25cb93e9b744faab2c50f69ba920da0810d510dcb0c106b5e8ba8db772e1e977f4c36e5a09d57c07043ae9ad2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/lib/confluence-soap.rb
CHANGED
@@ -6,7 +6,7 @@ class ConfluenceSoap
|
|
6
6
|
Page = Struct.new(:content, :content_status, :created, :creator, :current, :home_page, :id,
|
7
7
|
:modified, :modifier, :parent_id, :permissions, :space, :title, :url, :version) do
|
8
8
|
def self.from_hash h
|
9
|
-
values = h.values_at(*Page.members.map {|m|m.to_sym}).map {|v| v.is_a?(Hash) ? v[
|
9
|
+
values = h.values_at(*Page.members.map {|m|m.to_sym}).map {|v| v.is_a?(Hash) ? v[:value]||'' : v}
|
10
10
|
self.new *values
|
11
11
|
end
|
12
12
|
|
@@ -101,8 +101,12 @@ class ConfluenceSoap
|
|
101
101
|
def execute &block
|
102
102
|
yield self
|
103
103
|
rescue Savon::SOAPFault => e
|
104
|
-
|
105
|
-
|
104
|
+
if e.to_hash[:fault][:faultstring] =~ /InvalidSessionException/
|
105
|
+
reconnect
|
106
|
+
yield e
|
107
|
+
else
|
108
|
+
raise e
|
109
|
+
end
|
106
110
|
end
|
107
111
|
|
108
112
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confluence-soap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ping Yu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|