Skip to content

Commit

Permalink
Merge pull request #27 from fbandrey/master
Browse files Browse the repository at this point in the history
fix callback issue #25
  • Loading branch information
samdunne committed Nov 26, 2015
2 parents 3217887 + 3df2bcf commit 57c5978
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ EmptyLinesAroundAccessModifier:
EndAlignment:
AlignWith: variable

Metrics/AbcSize:
Max: 20

# Indentation of when/else
CaseIndentation:
IndentWhenRelativeTo: end
Expand All @@ -75,4 +78,4 @@ Lambda:

FileName:
Exclude:
- 'lib/omniauth-gplus.rb'
- 'lib/omniauth-gplus.rb'
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ before_install:
- gem --version
language: ruby
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
Expand All @@ -23,4 +22,4 @@ matrix:
- rvm: jruby-head
- rvm: ruby-head
- rvm: rbx
fast_finish: true
fast_finish: true
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ end

begin
require 'rubocop/rake_task'
Rubocop::RakeTask.new
RuboCop::RakeTask.new
rescue LoadError
task :rubocop do
$stderr.puts 'Rubocop is disabled'
$stderr.puts 'RuboCop is disabled'
end
end

Expand Down
6 changes: 5 additions & 1 deletion lib/omniauth/strategies/gplus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def authorize_params
end
end

def callback_url
full_host + script_name + callback_path
end

private

def format_actions(actions)
Expand Down Expand Up @@ -82,7 +86,7 @@ def add_key_to_params(params, key)

def add_openid_realm_if_present(params)
realm = options.send(:openid_realm)
params['openid.realm'] = realm if realm.present?
params['openid.realm'] = realm if realm
end

def raw_info
Expand Down
1 change: 1 addition & 0 deletions omniauth-gplus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'pry'
s.add_development_dependency 'coveralls'
s.add_development_dependency 'rubocop'
s.add_development_dependency 'minitest'

if RUBY_PLATFORM == 'rbx'
s.add_development_dependency 'racc'
Expand Down

0 comments on commit 57c5978

Please sign in to comment.