blogpost 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c09845730d15328d3813fd3c97a364df560210ab
4
- data.tar.gz: c6b4b3e252218b68c4697eaa57ebedfc59ae7bde
3
+ metadata.gz: 5ce2280f7eadc12fd09957eb346ad2941a04f3f6
4
+ data.tar.gz: 2cabc9c1361fc8cf84188f6b287a261a06178176
5
5
  SHA512:
6
- metadata.gz: d5d6f99792dba9addc9719ce08c837b7cfd4d0df938d440a853d022e041c6dfa742a6fb1ce9eb28d334ad56d3b7b1434e3ffe46bde1f919faf4f04cc006a513e
7
- data.tar.gz: 58e9e4f2db87d6e0d7eb7596ba3e6f8e138d52efbb75b572b0d867cf6904680d4034455c45051fa38226a7604c01c3b7c64485c4f6d6ca8e7b84cc2f757917e5
6
+ metadata.gz: 3806a0433c8142720da0bfd7008e4be558f0240ccc1a861448bdf6df2f4ece21e66ef92a263a3676ebf6b67d8ae8dca996b18424edf99f26537c1525538ee959
7
+ data.tar.gz: 93a926d5c1af7a2861fecaf90ed2f819a8302ff4b58d208d5e2a4d514af5e9773fec2e7c82b6acd5ab18553b5d406ee1e9997af7ee4a0860d03a13f0e9fb890b
@@ -3,7 +3,8 @@ module Blogpost
3
3
  def self.post(opts={})
4
4
  opts = Blogpost.options.merge(opts)
5
5
  host="http://blog.so-net.ne.jp/_rpc"
6
- XMLRPC::Client.new2(host).call("metaWeblog.newPost", "", opts[:user], opts[:pass],
6
+ id = XMLRPC::Client.new2(host).call("blogger.getUsersBlogs", "",opts[:user], opts[:pass])[0]["blogid"]
7
+ XMLRPC::Client.new2(host).call("metaWeblog.newPost", id, opts[:user], opts[:pass],
7
8
  {"title" => opts[:title],"description" => opts[:content]}, true)
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module Blogpost
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - shoprev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-29 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomutil