wordpress-client 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/wordpress/client.rb +6 -1
- data/lib/wordpress/version.rb +1 -1
- metadata +2 -2
data/lib/wordpress/client.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
data/lib/wordpress/version.rb
CHANGED
|
@@ -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 =
|
|
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
|
+
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-
|
|
12
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: curb
|