weibo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,12 +19,16 @@ This gem was made in the process of creating {叽叽喳喳.de}[http://jjzz.de],
19
19
 
20
20
  == Sites using the Weibo gem
21
21
  * {叽叽喳喳.de}[http://jjzz.de]
22
+ * {http://weibopi.com/}[http://weibopi.com/]
22
23
 
23
24
  (Please let me know if your site is using the gem so I can list you here)
24
25
 
25
26
  == Contributors
26
27
  * {Feixiong Li}[http://github.com/feixionglee]
27
28
  * {Aaron Qian}[http://github.com/aq1018]
29
+ * {panfu}[https://github.com/panfu]
30
+ * {loushizan}[https://github.com/loushizan]
31
+ * {numbcoder}[https://github.com/numbcoder]
28
32
 
29
33
  == Note on Patches/Pull Requests
30
34
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -107,6 +107,11 @@ module Weibo
107
107
  def unread
108
108
  perform_get('/statuses/unread.json')
109
109
  end
110
+
111
+ # statuses/reset_count 未读消息数清零
112
+ def reset_count(query={})
113
+ perform_get('/statuses/reset_count.json', :query => query)
114
+ end
110
115
 
111
116
  def comments_timeline(query={})
112
117
  perform_get('/statuses/comments_timeline.json', :query => query)
@@ -116,6 +121,11 @@ module Weibo
116
121
  perform_get('/statuses/comments_by_me.json', :query => query)
117
122
  end
118
123
 
124
+ # statuses/comments_to_me 当前用户收到的评论
125
+ def comments_to_me(query={})
126
+ perform_get('/statuses/comments_to_me.json', :query => query)
127
+ end
128
+
119
129
  def comments(query={})
120
130
  perform_get('/statuses/comments.json', :query => query)
121
131
  end
@@ -268,9 +278,45 @@ module Weibo
268
278
  perform_get('/help/test.json')
269
279
  end
270
280
 
271
- # Trends/daily
272
- def trends_daily(query={})
281
+ # Trends/hourly
282
+ def trends_hourly(query={})
283
+ perform_get("/trends/hourly.json", :query => query)
284
+ end
285
+
286
+ # Trends/daily
287
+ def trends_daily(query={})
273
288
  perform_get("/trends/daily.json", :query => query)
289
+ end
290
+
291
+ # Trends/weekly
292
+ def trends_weekly(query={})
293
+ perform_get("/trends/weekly.json", :query => query)
294
+ end
295
+
296
+ # Tags
297
+ def tags(query={})
298
+ perform_get("/tags.json", :query => query)
299
+ end
300
+
301
+ # Tags/create
302
+ # params: tags should be a string split with ","
303
+ def tags_create(tags)
304
+ perform_post("/tags/create.json", :body => {:tags => tags})
305
+ end
306
+
307
+ # Tags/suggestions
308
+ def tags_suggestions(query={})
309
+ perform_get("/tags/suggestions.json", :query => query)
310
+ end
311
+
312
+ # Tags/destroy
313
+ def tags_destroy(tag_id)
314
+ perform_delete("/tags/destroy.json", :body => {:tag_id => tag_id})
315
+ end
316
+
317
+ # Tags/destroy_batch
318
+ def tags_destroy_batch(ids)
319
+ perform_delete("/tags/destroy_batch.json", :body => {:ids => ids})
274
320
  end
275
321
 
276
322
  protected
@@ -1,5 +1,4 @@
1
1
  # This hack is used for Weibo upload
2
- # as Sina Weibo doesn't follow the god damned OAuth specifications!!!
3
2
 
4
3
  unless {}.respond_to?(:stringify_keys)
5
4
  class Hash
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{weibo}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Ballantyne"]
12
- s.date = %q{2010-12-31}
12
+ s.date = %q{2011-01-11}
13
13
  s.description = %q{this gem is an adaptation of John Nunemaker's Twitter gem. I modified it to make api integration for 新浪微博 (t.sina.com.cn) easier.}
14
14
  s.email = %q{ussballantyne@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weibo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Ballantyne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-31 00:00:00 +08:00
18
+ date: 2011-01-11 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency