blogpost 0.1.1 → 0.1.2

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: d17bfb7d00c41735071ec00344e1bb5ea465308c
4
- data.tar.gz: a9e318eb100afe72b93fe0d3b58bcafdb2a5086e
3
+ metadata.gz: b8fa38407f37d49fd25dfacf3a8f9e5d41f39f03
4
+ data.tar.gz: 8ebef8376f8cf7335292cbfa3ad9666555e56f7c
5
5
  SHA512:
6
- metadata.gz: 94e5d4be36f5d5b548374d5ad52824b37e3adfd58b801305f8a42eaf3438a40b0fe772959a53070c14b6be73ec648ff01464337eaee8ea58fddb1aaadd8a50f5
7
- data.tar.gz: 407016a39299fab8abc91345b2c1844027a2dc831ba12f31f8d18a90920bf8209140b7b94d5d62eb730ecb1c171455d1832891d024c3b2c19eb90de9d3494cc4
6
+ metadata.gz: 8585f40085fe4fbce1d26388dc3132eafa49e796c15d288c805e0c8cc6fc80486296d51451146cf8e9831d54314837c6e9ec5aec520e1cf7ebda722cab8302e8
7
+ data.tar.gz: 913c1c5df6a82a454fa1eb6cad0db0cd86b795e0f5d331937f7b951c4706d9a1a3318d869992c4f64ca1f0257d066cf8f9112a58d8eef9750b69a30d500e4115
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Blogpost
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/blogpost.png)](http://badge.fury.io/rb/blogpost)
4
- Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail)
4
+ Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail,sonet)
5
5
 
6
6
  ## Installation
7
7
 
@@ -47,10 +47,10 @@ Blogpost::Livedoor.post({:user =>"user id", :pass => "api key",
47
47
  Blogpost::Goo.post({:user =>"user id", :pass => "password",
48
48
  :title => "title" , :content => "content"})
49
49
  # seesaa
50
- Blogpost::Seesaa.post({:user =>"email", :pass => "password",
50
+ Blogpost::Seesaa.post({:user =>"your@example.com", :pass => "password",
51
51
  :title => "title" , :content => "content"})
52
52
  # webry
53
- Blogpost::Webry.post({:user =>"email", :pass => "passowrd",
53
+ Blogpost::Webry.post({:user =>"your@example.com", :pass => "passowrd",
54
54
  :title => "title" , :content => "content"})
55
55
  # jugem
56
56
  Blogpost::Jugem.post({:domain => "example", :user =>"user id",
@@ -63,11 +63,14 @@ Blogpost::Blogg.post({:user =>"api id", :pass => "api password",
63
63
  :title => "title" , :content => "content"})
64
64
  # gmail
65
65
  Blogpost::Gmail.post({:address =>"to@example.com",
66
- :user =>"from@example.com", :pass => "password",
66
+ :user =>"your@example.com", :pass => "password",
67
67
  :title => "title" , :content => "content"})
68
68
  # sendmail
69
69
  Blogpost::Sendmail.post({:address =>"to@example.com",
70
70
  :title => "title" , :content => "content"})
71
+ # sonet
72
+ Blogpost::Sonet.post({:user =>"xml-rpc id", :pass => "xml-rpc pass",
73
+ :title => "title" , :content => "content"})
71
74
  ```
72
75
 
73
76
  ## Contributing
data/blogpost.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Blogpost::VERSION
9
9
  spec.authors = ["shoprev"]
10
10
  spec.email = ["admin@shoprev.net"]
11
- spec.description = %q{Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail)}
12
- spec.summary = %q{Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail)}
11
+ spec.description = %q{Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail,sonet)}
12
+ spec.summary = %q{Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail,sonet)}
13
13
  spec.homepage = "https://github.com/shoprev/blogpost"
14
14
  spec.license = "MIT"
15
15
 
@@ -0,0 +1,10 @@
1
+ module Blogpost
2
+ class Sonet
3
+ def self.post(opts={})
4
+ opts = Blogpost.options.merge(opts)
5
+ host="http://blog.so-net.ne.jp/_rpc"
6
+ XMLRPC::Client.new2(host).call("metaWeblog.newPost", "", opts[:user], opts[:pass],
7
+ {"title" => opts[:title],"description" => opts[:content]}, true)
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Blogpost
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/blogpost.rb CHANGED
@@ -18,6 +18,7 @@ require "blogpost/cocolog"
18
18
  require "blogpost/blogg"
19
19
  require "blogpost/gmail"
20
20
  require "blogpost/sendmail"
21
+ require "blogpost/sonet"
21
22
 
22
23
  module XMLRPC::ParseContentType
23
24
  def parse_content_type(str)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shoprev
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail)
69
+ description: Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail,sonet)
70
70
  email:
71
71
  - admin@shoprev.net
72
72
  executables: []
@@ -93,6 +93,7 @@ files:
93
93
  - lib/blogpost/maruta.rb
94
94
  - lib/blogpost/seesaa.rb
95
95
  - lib/blogpost/sendmail.rb
96
+ - lib/blogpost/sonet.rb
96
97
  - lib/blogpost/version.rb
97
98
  - lib/blogpost/webry.rb
98
99
  - lib/blogpost/wordpress.rb
@@ -119,5 +120,5 @@ rubyforge_project:
119
120
  rubygems_version: 2.0.3
120
121
  signing_key:
121
122
  specification_version: 4
122
- summary: Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail)
123
+ summary: Ruby Blog Post (hatena,athera,269g,cocolog,fc2,goo,jugem,livedoor,maruta,seesaa,webry,wordpress,gmail,sendmail,sonet)
123
124
  test_files: []