weibo_2 0.0.6 → 0.0.7

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.
@@ -11,20 +11,16 @@ module WeiboOAuth2
11
11
  hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
12
12
  end
13
13
 
14
- def expand(url_short, opt={})
15
- hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
16
- end
17
-
18
14
  def clicks(url_short, opt={})
19
- hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
15
+ hashie get("short_url/clicks.json", :params => {:url_short => url_short}.merge(opt))
20
16
  end
21
17
 
22
18
  def referers(url_short, opt={})
23
- hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
19
+ hashie get("short_url/referers.json", :params => {:url_short => url_short}.merge(opt))
24
20
  end
25
21
 
26
22
  def locations(url_short, opt={})
27
- hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
23
+ hashie get("short_url/locations.json", :params => {:url_short => url_short}.merge(opt))
28
24
  end
29
25
 
30
26
  def share_counts(url_short, opt={})
@@ -82,6 +82,10 @@ module WeiboOAuth2
82
82
  @search ||= WeiboOAuth2::Api::V2::Search.new(@access_token) if @access_token
83
83
  end
84
84
 
85
+ def short_url
86
+ @short_url ||= WeiboOAuth2::Api::V2::ShortUrl.new(@access_token) if @access_token
87
+ end
88
+
85
89
  def suggestions
86
90
  @suggestions ||= WeiboOAuth2::Api::V2::Suggestions.new(@access_token) if @access_token
87
91
  end
@@ -1,3 +1,3 @@
1
1
  module WeiboOAuth2
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/weibo_2.rb CHANGED
@@ -14,6 +14,7 @@ require "weibo_2/api/v2/trends"
14
14
  require "weibo_2/api/v2/tags"
15
15
  require "weibo_2/api/v2/register"
16
16
  require "weibo_2/api/v2/search"
17
+ require "weibo_2/api/v2/short_url"
17
18
  require "weibo_2/api/v2/suggestions"
18
19
  require "weibo_2/api/v2/remind"
19
20
  require "weibo_2/strategy/auth_code"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weibo_2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-07 00:00:00.000000000 Z
12
+ date: 2012-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -147,3 +147,4 @@ signing_key:
147
147
  specification_version: 3
148
148
  summary: A oauth2 gem for weibo
149
149
  test_files: []
150
+ has_rdoc: