rubypress 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubypress/media.rb +1 -0
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca70bc44abc4943798aefac711fdc08dfeffa4be
4
- data.tar.gz: 1abae76f9dcfe1ced638c4a696863eef3e5bae91
3
+ metadata.gz: c033de3ea337463cb254a011c304d5e85831de8d
4
+ data.tar.gz: 844de59c45cb30249e964786ef0da3e52eee70d1
5
5
  SHA512:
6
- metadata.gz: ce9caff1c6ed052027d0f952938d5bb30b67e3d3e67049afd3c5c48c9302050c48b29897f6be3cadae365dcfed0b6bc79fa52aa2972d9b88d93617c0ed44498d
7
- data.tar.gz: 2e3b934793950856d8c4df83856740334f7fc780066e008c0a183ffa0b1677c569d0afb6dd015520b38f08925079fe1af54e988abdcde69e267446a4e6de96b0
6
+ metadata.gz: 118832d064d8a11f51d3f47276037ab0318bfbf6cd29ac5f20833c1664d91725a72d5f48eb45d6b0b7536a8fb846082802d2c1fbd0bf119a6500bfc458a81d2e
7
+ data.tar.gz: 986efa5d670b360ec864b8fad57a46dea07e472833ab914436cec49b4f17ee3c465c8b2a52bfa607796267b287801de5768c388c59bdd700c1c4a557f586cf69
@@ -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.2
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: 2013-10-05 00:00:00.000000000 Z
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: []