rubypress 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypress/media.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c033de3ea337463cb254a011c304d5e85831de8d
|
4
|
+
data.tar.gz: 844de59c45cb30249e964786ef0da3e52eee70d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 118832d064d8a11f51d3f47276037ab0318bfbf6cd29ac5f20833c1664d91725a72d5f48eb45d6b0b7536a8fb846082802d2c1fbd0bf119a6500bfc458a81d2e
|
7
|
+
data.tar.gz: 986efa5d670b360ec864b8fad57a46dea07e472833ab914436cec49b4f17ee3c465c8b2a52bfa607796267b287801de5768c388c59bdd700c1c4a557f586cf69
|
data/lib/rubypress/media.rb
CHANGED
@@ -18,6 +18,7 @@ module Media
|
|
18
18
|
default_options = {
|
19
19
|
:data => {}
|
20
20
|
}.deep_merge!(options)
|
21
|
+
default_options[:data][:bits] = XMLRPC::Base64.new(File.read(default_options.delete(:filename))) if options.include?(:filename) and File.readable?(options[:filename])
|
21
22
|
execute('uploadFile', default_options)
|
22
23
|
end
|
23
24
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Feldman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Easily access WordPress installations through the WordPress XML-RPC API.
|
14
14
|
This gem exactly mirrors the functionality provided by the WordPress XML-RPC API
|
@@ -28,7 +28,8 @@ files:
|
|
28
28
|
- lib/rubypress/taxonomies.rb
|
29
29
|
- lib/rubypress/users.rb
|
30
30
|
homepage: https://github.com/zachfeldman/rubypress
|
31
|
-
licenses:
|
31
|
+
licenses:
|
32
|
+
- GPLv2
|
32
33
|
metadata: {}
|
33
34
|
post_install_message:
|
34
35
|
rdoc_options: []
|