lib/githubchart.rb in githubchart-0.0.2 vs lib/githubchart.rb in githubchart-0.0.3

- old
+ new

@@ -55,10 +55,10 @@ # Passes the username through to GithubStats # Uses colors rather than default, if provided def initialize(params = {}) params = { username: params } unless params.is_a? Hash - @stats = GithubStats.new(params['username']) + @stats = GithubStats.new(params[:username]) @colors = params['colors'] || GithubChart::COLORS end private