wordpress-client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,9 +28,14 @@ Request Dump
28
28
  if options.delete(:bearer_token_request) && !access_token.nil?
29
29
  http.headers['Authorization'] = bearer_auth_header
30
30
  end
31
+ http.headers['Accept-Encoding'] = 'gzip,deflate'
31
32
  http.timeout = 10
32
33
  end
33
- res = http.body_str
34
+ begin
35
+ res = Zlib::GzipReader.new(StringIO.new(http.body_str)).read
36
+ rescue Zlib::GzipFile::Error
37
+ res = http.body_str
38
+ end
34
39
 
35
40
  debug <<-EOS
36
41
  Response Dump
@@ -2,7 +2,7 @@ module Wordpress
2
2
  class Version
3
3
  MAJOR = 0 unless defined? Wordpress::Version::MAJOR
4
4
  MINOR = 0 unless defined? Wordpress::Version::MINOR
5
- PATCH = 4 unless defined? Wordpress::Version::PATCH
5
+ PATCH = 5 unless defined? Wordpress::Version::PATCH
6
6
  PRE = nil unless defined? Wordpress::Version::PRE
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordpress-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-01 00:00:00.000000000 Z
12
+ date: 2013-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb