blogpost 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blogpost/livedoor.rb +1 -1
- data/lib/blogpost/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92373d5d37c490897dfc1415e736ffd53537d21f
|
4
|
+
data.tar.gz: c361e5d9cc3e979c1e4b3e22b433012a4786284f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1911e2f3a088c4811fe8e0f04ed1e46d2f2ce6b1c3046b757dfa56a6e60cf25c610364e56e5cbf1282dfa7066efd311571d39d5b4f31aca2ad44d7e4963d57cd
|
7
|
+
data.tar.gz: 6bd9b8adc9e4e63662cd437a0a6a3fd5c34dd751c941c8852d755a2ab722e703846a9d346c49edb5618a215ad04ccee9450ad2ae550fe846f6bb3852ba9314f2
|
data/lib/blogpost/livedoor.rb
CHANGED
@@ -4,7 +4,7 @@ module Blogpost
|
|
4
4
|
opts = Blogpost.options.merge(opts)
|
5
5
|
auth = Atompub::Auth::Wsse.new(username: opts[:user],password: opts[:pass])
|
6
6
|
client = Atompub::Client.new(auth: auth)
|
7
|
-
entry = Atom::Entry.new(title: opts[:title],content: opts[:content])
|
7
|
+
entry = Atom::Entry.new(title: opts[:title].encode("BINARY", "BINARY"),content: opts[:content].encode("BINARY", "BINARY"))
|
8
8
|
service = client.get_service "http://livedoor.blogcms.jp/atom/"
|
9
9
|
collection_uri = service.workspace.collections[0].href
|
10
10
|
client.create_entry(collection_uri, entry)
|
data/lib/blogpost/version.rb
CHANGED