Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:samsymons/RedditKit.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Symons committed Jan 9, 2014
2 parents 22d8624 + 892d1d2 commit a5dd439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

RedditKit.rb is a [reddit API](http://www.reddit.com/dev/api) wrapper, written in Ruby.

[![Gem Version](https://badge.fury.io/rb/redditkit.png)][rubygem]
[![Build Status](https://travis-ci.org/samsymons/RedditKit.rb.png?branch=master)][travis]
[![Code Climate](https://codeclimate.com/github/samsymons/RedditKit.rb.png)][codeclimate]
[![Coverage Status](https://coveralls.io/repos/samsymons/RedditKit.rb/badge.png?branch=master)][coveralls]

[travis]: http://travis-ci.org/samsymons/RedditKit.rb
[rubygem]: https://rubygems.org/gems/redditkit
[travis]: https://travis-ci.org/samsymons/RedditKit.rb
[codeclimate]: https://codeclimate.com/github/samsymons/RedditKit.rb
[coveralls]: https://coveralls.io/r/samsymons/RedditKit.rb

Expand Down
2 changes: 1 addition & 1 deletion lib/redditkit/client/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def username_available?(username)
# @option options [String] captcha The user's response to the CAPTCHA challenge.
# @option options [Boolean] remember Whether to keep the user's session cookie beyond the current session.
def register(username, password, options = {})
parameters = { :user => username, :passwd => password, :passwd2 => password, :captcha => options[:captcha], :iden => options[:captcha_identifier] }
parameters = { :user => username, :passwd => password, :passwd2 => password, :email => options[:email], :captcha => options[:captcha], :iden => options[:captcha_identifier] }
post('api/register', parameters)
end

Expand Down

0 comments on commit a5dd439

Please sign in to comment.