handsoap 1.2.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTNkNjE1YWQyODkwOWU5Y2M2Y2MyNTdjNDkzNWQ2Y2I3ODJiMGQ2OQ==
4
+ Zjg4MmMzOTQ1YWMzZWEwMDQwMDBiYmY2MjM1M2NiMGQxMGM2YTBkMQ==
5
5
  data.tar.gz: !binary |-
6
- NmZlOTFmMWQ4OTRlMzE0ZjZiNzU2ZjI1OGEzODY2NTFiOWUzNDU0Ng==
6
+ ODdhNDYwNmM5N2I0ZWEzZmVjNTNhMDNmN2M4NTgzYTk2ODZhODI3OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjhmODJhNDg3MTAwNjQwOTBiODQ4OTlhNzk5YjdhNDkwNzFhZWMzZWUxMmJm
10
- NmIxZGYxZjI3MzU5ZGVkYTIzY2Q5ZTRjY2I3NjhjN2U4MTNiNDI1NzIzYmRk
11
- NjcxM2IzODczZDYzZTMxYTU3ODgzYTE5ODc1OWFlZDAwODk2NzI=
9
+ NGRhNmU4ZThlYTljY2E2NjE1NGJlOWVjZTcxOTVjZjRmM2M4NTZmYmM4MzRj
10
+ OWYzM2ZjZDllZmE2N2U2M2EzMzRiMzQwYjQ4OWMxNDRkMzdlOGQyY2NhYmZh
11
+ ZGQ1MjZmNzNkODVjMWE4MWEzNWE4ZTkxMDA5MjIzOWVjMDM4MTc=
12
12
  data.tar.gz: !binary |-
13
- NDg4OTM3NjJkZmUwY2YzNTk0Nzk5MTE1OWEyZTNmOWFkMzMyMmQwYTZjNWQy
14
- ZDY4YmVhNWQzZjVlMzBiZjJkZTc4OGU4YmU3MjQ3YmI1NzZkOGVlNzk4YTUw
15
- OTVkYTg5MTQwZmVmYjViNzQ0ZjljYjQwYmJhNWE0YTVjZDAxZTM=
13
+ NjI5MTY2Nzk2N2RjM2M2MTU4MjU1ODIzNDJjM2YyYmJmYmYyZjZmNDA4ZWFj
14
+ ZTQ3OWYyOGZjMGE0MjI0YzZlYzM5OGIyOTExZjViODE4ZDMxNGNmNmRlZGVk
15
+ ZTkwMGFmMjc4NTQ5YjUyYTc3OTFkYjdlNDU3ODkwNDYxYzAyZDc=
@@ -1,10 +1,8 @@
1
- This is mostly a not to my self, so I don't forget it.
1
+ This is mostly a note to my self, so I don't forget it.
2
2
 
3
3
  To make a release, do:
4
4
 
5
5
  rake version:bump:patch
6
6
  rake release
7
- rake build
8
- gem push pkg/handsoap-*.gem
9
7
 
10
8
  You need `jeweler` and `gemcutter`, as well as login credentials for gemcutter.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 2
4
- :patch: 2
3
+ :minor: 3
4
+ :patch: 0
5
5
  :build:
@@ -52,6 +52,8 @@ module Handsoap
52
52
  # debug_output = StringIO.new
53
53
  # http_client.set_debug_output debug_output
54
54
  http_response = http_client.start do |client|
55
+ # requesting gzipped response if server can provide it
56
+ http_request['Accept-Encoding'] = 'gzip'
55
57
  client.request(http_request)
56
58
  end
57
59
  # puts debug_output.string
@@ -69,7 +71,15 @@ module Handsoap
69
71
  raise "Authentication type #{auth_type} is unsupported by net/http"
70
72
  end
71
73
  end
72
- parse_http_part(http_response.get_headers, http_response.body, http_response.code)
74
+
75
+ # http://stackoverflow.com/questions/13397119/ruby-nethttp-not-decoding-gzip
76
+ body =\
77
+ begin
78
+ Zlib::GzipReader.new(StringIO.new(http_response.body)).read
79
+ rescue Zlib::GzipFile::Error, Zlib::Error # Not gzipped
80
+ http_response.body
81
+ end
82
+ parse_http_part(http_response.get_headers, body, http_response.code)
73
83
  end
74
84
  end
75
85
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handsoap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Troels Knak-Nielsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2013-09-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Handsoap is a library for creating SOAP clients in Ruby
15
15
  email:
@@ -66,7 +66,7 @@ requirements:
66
66
  install curb\n gem install httpclient"
67
67
  - It is recommended that you install either "nokogiri" or "libxml-ruby"
68
68
  rubyforge_project:
69
- rubygems_version: 2.0.3
69
+ rubygems_version: 2.0.7
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Handsoap is a library for creating SOAP clients in Ruby