rubypress 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypress/client.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b8136ffdfc8e1739c8083bd405a58ee3878725b
|
4
|
+
data.tar.gz: b5de51c79fa7ddc02f59429ddb387383957685a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece6dda2f5127295c57ee43be57c81c3efd1f13ed0a4a2c2e091a4a8bbafbbc3c029ccfd317ddf8853af4b3e7262a5237cb6537ccb9d969e23e14c36a4afeb4b
|
7
|
+
data.tar.gz: e3373b571479de95d57490588ab940183aaf1049717359d4848b363d50275c91a453f16e2f6933be6fd4064801823818fa6c397784c4613202879a942b504e67
|
data/lib/rubypress/client.rb
CHANGED
@@ -15,12 +15,13 @@ module Rubypress
|
|
15
15
|
class Client
|
16
16
|
|
17
17
|
attr_reader :connection
|
18
|
-
attr_accessor :port, :host, :path, :username, :password, :use_ssl, :default_post_fields,
|
18
|
+
attr_accessor :port, :ssl_port, :host, :path, :username, :password, :use_ssl, :default_post_fields,
|
19
19
|
:debug, :http_user, :http_password, :retry_timeouts
|
20
20
|
|
21
21
|
def initialize(options = {})
|
22
22
|
{
|
23
23
|
:port => 80,
|
24
|
+
:ssl_port => 443,
|
24
25
|
:use_ssl => false,
|
25
26
|
:host => nil,
|
26
27
|
:path => '/xmlrpc.php',
|
@@ -36,7 +37,7 @@ module Rubypress
|
|
36
37
|
end
|
37
38
|
|
38
39
|
def connection
|
39
|
-
server = XMLRPC::Client.new(self.host, self.path, self.port,nil,nil,self.http_user,self.http_password,self.use_ssl,nil)
|
40
|
+
server = XMLRPC::Client.new(self.host, self.path, (self.use_ssl ? self.ssl_port : self.port),nil,nil,self.http_user,self.http_password,self.use_ssl,nil)
|
40
41
|
server.http_header_extra = {'accept-encoding' => 'identity'}
|
41
42
|
server.extend(XMLRPCRetryable) if retry_timeouts
|
42
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubypress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Feldman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: retryable-rb
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.2.2
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: Easily access WordPress installations through the WordPress XML-RPC API.
|