Permalink
Browse files

Client 开放一些属性

  • Loading branch information...
1 parent 13b407d commit 15ded56fcb6d21b06ff4332932d00d9cd03fd6cd @huacnlee huacnlee committed Jul 4, 2011
Showing with 34 additions and 61 deletions.
  1. +0 −28 README
  2. +0 −27 README.markdown
  3. +26 −0 README.textile
  4. +1 −0 lib/top4r/client.rb
  5. +2 −2 lib/top4r/client/base.rb
  6. +2 −1 lib/top4r/model.rb
  7. +1 −1 lib/top4r/version.rb
  8. +2 −2 top4r.gemspec
View
@@ -1,28 +0,0 @@
-= TOP4R
-
-* http://top4r.labs.nowa.me
-* Thanks Twitter4R <http://twitter4r.rubyforge.org>.
-
-== DESCRIPTION:
-
-TOP4R封装了淘宝开发平台的接口,帮助你快速构建基于TOP的应用程序。
-
-== FEATURES/PROBLEMS:
-
-* [09/25/10] TOP API 2.0支持
-* 商品
-* 物流
-* 店铺
-* 收费
-* 淘宝客
-* 交易
-* 用户
-
-== REQUIREMENTS:
-
-* rubygems
-* json
-
-== INSTALL:
-
-sudo gem install top4r
View
@@ -1,27 +0,0 @@
-### TOP4R ###
-
-[http://top4r.labs.nowa.me](http://top4r.labs.nowa.me)
-Thanks Twitter4R <[http://twitter4r.rubyforge.org](http://twitter4r.rubyforge.org)>.
-
-### DESCRIPTION ###
-
-TOP4R封装了淘宝开发平台的接口,帮助你快速构建基于TOP的应用程序。
-
-### FEATURES ###
-
-* [09/25/10] TOP API 2.0支持
-* 商品
-* 物流
-* 店铺
-* 收费
-* 淘宝客
-* 交易
-* 用户
-
-### BY ###
-
-Nowa Zhu (nowazhu[at]gmail[dot]com)
-
-[http://nowa.me](http://nowa.me)
-
-2009-06-22
View
@@ -0,0 +1,26 @@
+h1. Top4R
+
+Top4R 封装了 "淘宝开发平台":http://open.taobao.com 的 Ruby 接口,帮助你快速构建基于TOP的应用程序。
+
+h2. 功能
+
+* [09/25/10] TOP API 2.0支持
+* 商品
+* 物流
+* 店铺
+* 收费
+* 淘宝客
+* 交易
+* 用户
+
+h2. 安装
+
+ $ gem install top4r
+
+h2. Authors
+
+* "Nowa Zhu":http://nowa.me <nowazhu[at]gmail[dot]com>
+
+h3. Thanks
+
+* Twitter4R <"http://twitter4r.rubyforge.org":http://twitter4r.rubyforge.org>.
View
@@ -31,4 +31,5 @@ class Top4R::Client
require 'top4r/client/suite'
require 'top4r/client/item'
require 'top4r/client/shop'
+require 'top4r/client/collect_item'
require 'top4r/client/taobaokeitem'
@@ -2,10 +2,11 @@ class Top4R::Client
alias :old_inspect :inspect
attr_accessor :total_results
attr_reader :login
+ attr_accessor :app_key, :app_secret, :parameters, :session
def inspect
s = old_inspect
- s.gsub!(/@app_secret=".*?"/, '@app_secret="XXXX"')
+ s.gsub!(/@app_secret=".*?"/, '@app_secret="******"')
end
def init
@@ -19,7 +20,6 @@ def init
end
protected
- attr_accessor :app_key, :app_secret, :parameters, :session
def login_required(model, method)
return if logged_in?
View
@@ -111,4 +111,5 @@ def self.included(receiver)
require 'top4r/model/suite'
require 'top4r/model/item'
require 'top4r/model/shop'
-require 'top4r/model/taobaokeitem'
+require 'top4r/model/taobaokeitem'
+require 'top4r/model/collect_item'
@@ -1,7 +1,7 @@
module Top4R::Version
MAJOR = 0
MINOR = 1
- REVISION = 2
+ REVISION = 4
class << self
# Returns X.Y.Z formatted version string
View
@@ -1,14 +1,14 @@
# Generated: Tue Sep 28 09:05:01 UTC 2010
Gem::Specification.new do |s|
s.name = "top4r"
- s.version = "0.1.2"
+ s.version = "0.1.4"
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README","CHANGES","TODO","MIT-LICENSE",]
s.summary = "TOP4R is a library that can help you build plugin for TaoBao.com quickly in pure Ruby."
s.author = "Nowa Zhu"
s.email = "nowazhu@gmail.com"
- s.homepage = "http://top4r.labs.nowa.me"
+ s.homepage = "https://github.com/nowa/top4r"
s.rubyforge_project = "top4r"
s.add_dependency("json", ">=1.1.1")
# s.require_path = "lib"

0 comments on commit 15ded56

Please sign in to comment.