Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.4 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/top4r/client/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def init
@@logger = Top4R::Logger.new(@@config.logger, @@config.trace)
if @parameters and @session
@parameters = Base64.decode64(@parameters).split('&').inject({}) do |hsh, i| kv = i.split('='); hsh[kv[0]] = kv[1]; hsh end
@login = user(@parameters['visitor_nick'])
@login = user(eval(@parameters['visitor_nick'].to_utf8)[0])
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/top4r/model/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def bless(client)
end

def is_me?
@nick == @client.instance_eval("@parameters['visitor_nick']")
@nick == eval(@client.instance_eval("@parameters['visitor_nick']").to_utf8)[0]
end

def unmarshal_other_attrs
Expand Down
Binary file added top4r-0.2.4.gem
Binary file not shown.
4 changes: 2 additions & 2 deletions top4r.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated: 2011-12-28 02:43:59 UTC
Gem::Specification.new do |s|
s.name = "top4r"
s.version = "0.2.3"
s.version = "0.2.4"
s.platform = Gem::Platform::RUBY
s.extra_rdoc_files = ["README.textile","CHANGES","TODO","MIT-LICENSE",]
s.extra_rdoc_files = ["README.md","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 = "[email protected]"
Expand Down