miby 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/Readme.rd +5 -0
  2. data/etc/pagestruct.yaml +3 -2
  3. data/lib/mixi.rb +2 -2
  4. metadata +2 -2
data/Readme.rd CHANGED
@@ -32,8 +32,13 @@ Mixiとやり取りするバックエンド部分をライブラリ化しまし
32
32
  * その他 諸々
33
33
 
34
34
  == 更新情報
35
+ * 2008/01/28: miby-0.0.2
36
+ - bug: Mixi.friend_diary(page_count) の page_count が Fixnum でも受け付けるように修正
37
+ - bug: Mixy.list_friend で2件目以降の表示がおかしかったのを修正
38
+ - change: Mixi.list_diary の variables に owner_id を追加
35
39
  * 2008/01/25: miby-0.0.1
36
40
 
41
+
37
42
  == 必要なソフトウェア
38
43
  * [Ruby 1.8.x 以上](http://ruby-lang.org)
39
44
  * [Hpricot](http://code.whytheluckystiff.net/hpricot/)
@@ -47,9 +47,10 @@ list_diary:
47
47
  css_selectors:
48
48
  - div.listDiaryTitle
49
49
  - dl.clearfix
50
- regexp: <a.*?id=(\d+?)&.*?>(.*?)<.*?<dd>(.*?)<
50
+ regexp: <a.*?id=(\d+?)&owner_id=(\d+?)">(.*?)<.*?<dd>(.*?)<
51
51
  variables:
52
52
  - id
53
+ - owner_id
53
54
  - title
54
55
  - date
55
56
 
@@ -153,7 +154,7 @@ list_friend:
153
154
  css_selectors:
154
155
  - div.iconList03
155
156
  - li
156
- regexp: <a.*?id=(.*?)".*?title="(.*?)"
157
+ regexp: <a.*?show_friend.pl\?id=(.*?)".*?title="(.*?)さん"
157
158
  variables:
158
159
  - id
159
160
  - name
@@ -87,8 +87,8 @@ module Miby
87
87
  # マイミク日記リスト
88
88
  # page_count: ページ番号
89
89
  def friend_diary(page_count = nil)
90
- unless page_count.nil? or page_count.empty?
91
- params = get_next_page_param("new_friend_diary_next_page_param", page_count)
90
+ unless page_count.nil?
91
+ params = get_next_page_param("new_friend_diary_next_page_param", page_count.to_i)
92
92
  end
93
93
  get_page("new_friend_diary", params)#.format_items
94
94
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: miby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2008-01-25 00:00:00 +09:00
6
+ version: 0.0.2
7
+ date: 2008-01-28 00:00:00 +09:00
8
8
  summary: mixi navigator for ruby
9
9
  require_paths:
10
10
  - lib