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 +4 -4
- data/lib/blogpost/sonet.rb +2 -1
- data/lib/blogpost/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce2280f7eadc12fd09957eb346ad2941a04f3f6
|
4
|
+
data.tar.gz: 2cabc9c1361fc8cf84188f6b287a261a06178176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3806a0433c8142720da0bfd7008e4be558f0240ccc1a861448bdf6df2f4ece21e66ef92a263a3676ebf6b67d8ae8dca996b18424edf99f26537c1525538ee959
|
7
|
+
data.tar.gz: 93a926d5c1af7a2861fecaf90ed2f819a8302ff4b58d208d5e2a4d514af5e9773fec2e7c82b6acd5ab18553b5d406ee1e9997af7ee4a0860d03a13f0e9fb890b
|
data/lib/blogpost/sonet.rb
CHANGED
@@ -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("
|
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
|
data/lib/blogpost/version.rb
CHANGED
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.
|
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
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: atomutil
|