tilia-dav 3.1.0.pre.alpha3 → 3.1.0.pre.alpha4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a677db274f1d62147837fd7f2ff17d17c0816ed2
4
- data.tar.gz: 0dd96d3187ede1af4941c66afd06225f2de1f2f3
3
+ metadata.gz: 36d340816a386a03d2fd0d379aad4645f3ee7dab
4
+ data.tar.gz: f0e62916517751349ab5d671cb1cf36f504212c0
5
5
  SHA512:
6
- metadata.gz: 0de422961ca67c2e2da3dbf5841d3c70faf0f49dd7a541c0947bb813e3dfc289e17694f12b49ad8c41812d9c9750623b70838994842b3dd2a346e9f1f894980d
7
- data.tar.gz: 416a357477b3092fd0c88dd77ce74f71b4c38d46b58a8b71c829c34cd6a0b8703f9f3a3db2b876c36b9a933eb1eed3adaa619d635aa367e8e230167b420c1373
6
+ metadata.gz: c03c8b130a67c9eb7d12af88058624ef60ab6ca85b8e8fc7ff67c7f20374a0623f073e740dcd311ff6bac95e50906de411d03512d838c6528d5665cc7922c895
7
+ data.tar.gz: 9509b9b79230dbe5c8ae0ea9d81752b78dd4ab4475fc62868998d33fdff8cc07b5a89b94e9e1c26ef3fae25d4df61a7be9671d7f62979e6554f1443620ccaa0f
@@ -201,7 +201,7 @@ module Tilia
201
201
  # Setting the base url
202
202
  @http_request.base_url = base_uri
203
203
  invoke_method(@http_request, @http_response)
204
- rescue Exception => e # use Exception (without ::) for easier debugging
204
+ rescue ::Exception => e # use Exception (without ::) for easier debugging
205
205
  begin
206
206
  emit('exception', [e])
207
207
  rescue
@@ -224,25 +224,13 @@ module Tilia
224
224
 
225
225
  error << LibXML::XML::Node.new('s:exception', h.call(e.class.to_s))
226
226
  error << LibXML::XML::Node.new('s:message', h.call(e.message))
227
- if @debug_exceptions
228
- # writer.write_element('s:file', h.call(e.get_file))
229
- # writer.write_element('s:line', h.call(e.get_line))
230
- # writer.write_element('s:code', h.call(e.get_code))
231
- # writer.write_element('s:stacktrace', h.call(e.get_trace_as_string))
232
- end
233
227
 
234
228
  if @debug_exceptions
235
- # previous = e
236
- # while previous = previous.get_previous
237
- # x_previous = $DOM.create_element('s:previous-exception')
238
- # x_previous.append_child($DOM.create_element('s:exception', h.call(get_class(previous))))
239
- # x_previous.append_child($DOM.create_element('s:message', h.call(previous.get_message)))
240
- # x_previous.append_child($DOM.create_element('s:file', h.call(previous.get_file)))
241
- # x_previous.append_child($DOM.create_element('s:line', h.call(previous.get_line)))
242
- # x_previous.append_child($DOM.create_element('s:code', h.call(previous.get_code)))
243
- # x_previous.append_child($DOM.create_element('s:stacktrace', h.call(previous.get_trace_as_string)))
244
- # error.append_child(x_previous)
245
- # end
229
+ backtrace_node = LibXML::XML::Node.new('s:backtrace')
230
+ e.backtrace.each do |entry|
231
+ backtrace_node << LibXML::XML::Node.new('s:entry', entry)
232
+ end
233
+ error << backtrace_node
246
234
  end
247
235
 
248
236
  if e.is_a?(Exception)
@@ -3,7 +3,7 @@ module Tilia
3
3
  # This class contains the SabreDAV version constants.
4
4
  class Version
5
5
  # Full version number
6
- VERSION = '3.1.0-alpha3'
6
+ VERSION = '3.1.0-alpha4'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilia-dav
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.pre.alpha3
4
+ version: 3.1.0.pre.alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Sack