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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/confluence-soap.rb +7 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da9c06cb6c1d680e251c0c66deb529c415cc8d37
4
- data.tar.gz: 6abd27edc506edfcee2827087fb76ded07c3b8af
3
+ metadata.gz: 2764dfcb327101f95a5add4d63b972c8e88b1a25
4
+ data.tar.gz: 562eb62fdca0d1513918dbfb1735af9a65794418
5
5
  SHA512:
6
- metadata.gz: 323b6d8380eee9304da83e715d28e7e5d5ced9696b22a0aa03d6700aa84bec3390e038f00d8e145fd2ca29b4d1e7b3edb96e6edc181952342107a040efeef5de
7
- data.tar.gz: d381dbb10432d4c83c9e1fa02e291f7fbffb13b77ba00bd753ca81bba1148f21a802831bfe4c03b5e424b48e393c5ac77fc366b491202cfbd81f51c9a2f01c24
6
+ metadata.gz: c4e1e94eca44a3693e562cb4e196cc8afb0c1ba7e8b41b7b2cbc5d9391084ea1e095b749b1095e1baa18b781cdc489d9b1fc3fe45228e3057b1ec2d274291e4c
7
+ data.tar.gz: d8dbef33ef3c01c00c30a9674ba498eda501c3d25cb93e9b744faab2c50f69ba920da0810d510dcb0c106b5e8ba8db772e1e977f4c36e5a09d57c07043ae9ad2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -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['value']||'' : 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
- reconnect if e.to_hash[:fault][:faultstring] =~ /InvalidSessionException/
105
- yield e
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.6
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-28 00:00:00.000000000 Z
12
+ date: 2014-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon