Skip to content

Commit

Permalink
[#6] change post params hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecirulli committed Sep 9, 2013
1 parent 1af04ca commit 3787a7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cleverbot-api (0.0.1)
cleverbot-api (0.0.4)

GEM
specs:
Expand Down
2 changes: 1 addition & 1 deletion cleverbot-api.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "cleverbot-api"
s.version = "0.0.3"
s.version = "0.0.4"
s.summary = "A simple API to interface with CleverBot"
s.description = "You can use this API to send messages and receive responses from CleverBot. You can create multiple instances of a connection with CleverBot and sessions are handled automatically for you."
s.author = "Gabriele Cirulli"
Expand Down
2 changes: 1 addition & 1 deletion lib/cleverbot-api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def backlog
private
def build_query
current_query = @post_params.to_querystring
@post_params['icognocheck'] = Digest::MD5.hexdigest current_query[9..28] # 20 characters
@post_params['icognocheck'] = Digest::MD5.hexdigest current_query[9..34]
@post_params.to_querystring
end

Expand Down

0 comments on commit 3787a7b

Please sign in to comment.