rubypress 1.0.8 → 1.0.9

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubypress/client.rb +3 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92d9dcd05d676fdb8d0eeb73a3b3454fb63f38bd
4
- data.tar.gz: 83f41f7848dc19580f53a2e21409154e16e61467
3
+ metadata.gz: 5b8136ffdfc8e1739c8083bd405a58ee3878725b
4
+ data.tar.gz: b5de51c79fa7ddc02f59429ddb387383957685a2
5
5
  SHA512:
6
- metadata.gz: 799edfe3bb44c9d5a136d857cee6fcead0406c7298a471da035e2a6715c5a80db2233e1895581ee756f1cf25441e3b1c75171f7551758e929b61f4dace37d000
7
- data.tar.gz: c50c44b1eb88360c40a41786c53b3c7ee5ed4d695e8ef6e7df6fb176bfab873b07da245609451900b8084f578e6d955bbc8c8bff7218b27fed4e309ba7fea7b9
6
+ metadata.gz: ece6dda2f5127295c57ee43be57c81c3efd1f13ed0a4a2c2e091a4a8bbafbbc3c029ccfd317ddf8853af4b3e7262a5237cb6537ccb9d969e23e14c36a4afeb4b
7
+ data.tar.gz: e3373b571479de95d57490588ab940183aaf1049717359d4848b363d50275c91a453f16e2f6933be6fd4064801823818fa6c397784c4613202879a942b504e67
@@ -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.8
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-09-04 00:00:00.000000000 Z
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.1.0
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.