Revision | 8baa0be7c193b86596e89090234e7b6f755e708b (tree) |
---|---|
Zeit | 2009-01-14 23:48:46 |
Autor | ikeji <ikeji@f836...> |
Commiter | ikeji |
update to new design.
git-svn-id: http://dev.ikejima.org/src/svn/pragger/trunk@394 f8368ae4-1e99-dc11-9799-0018f35ab5fa
@@ -1,24 +1,23 @@ | ||
1 | 1 | ## author "emergent" |
2 | 2 | ## descr "post feed(s) to mixi diary" |
3 | 3 | ## |
4 | +## Need username and password to regist.yaml | |
5 | +## mixi: | |
6 | +## username: ********* | |
7 | +## password: ######### | |
8 | +## | |
9 | +## | |
4 | 10 | ## example <<EOE |
5 | 11 | ## when posting one diary per one feed |
6 | 12 | ## - module: publish::mixi_diary_writer |
7 | -## config: | |
8 | -## username: test@test.com | |
9 | -## password: ******** | |
10 | 13 | ## |
11 | 14 | ## when posting merged feeds to one diary |
12 | 15 | ## - module: publish::mixi_diary_writer |
13 | 16 | ## config: |
14 | -## username: test@test.com | |
15 | -## password: ******** | |
16 | 17 | ## title: "フィード一覧" |
17 | 18 | ## merge_feeds: 1 |
18 | 19 | ## EOE |
19 | -## config({ :username => Field.new("username to login", String, true), | |
20 | -## :password => Field.new("password to login", String, true), | |
21 | -## :merge_feeds => Field.new("aggregate feeds to one diary", String), | |
20 | +## config({ :merge_feeds => Field.new("aggregate feeds to one diary", String), | |
22 | 21 | ## :title => Field.new("title when merge_feeds is on", String) }) |
23 | 22 | |
24 | 23 | require 'rubygems' |
@@ -93,7 +92,7 @@ def mixi_diary_writer(config, data) | ||
93 | 92 | } |
94 | 93 | end |
95 | 94 | |
96 | - mdw = MixiDiaryWriter.new(config['username'], config['password']) | |
95 | + mdw = MixiDiaryWriter.new( $reg['mixi']['username'], $reg['mixi']['password']) | |
97 | 96 | |
98 | 97 | content.each {|entry| |
99 | 98 | mdw.login |