Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX rails-3.1 compatibility

  • Loading branch information...
commit a047019f19a954103138aec1626a61fc2188a9de 1 parent 6cd0252
@oelmekki oelmekki authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 Rakefile
  2. +1 −1  lib/authlogic_connect/common/variables.rb
View
8 Rakefile
@@ -1,6 +1,6 @@
require 'rake'
-require "rake/rdoctask"
-require 'rake/gempackagetask'
+require "rdoc/task"
+require 'rubygems/package_task'
# http://docs.rubygems.org/read/chapter/20
spec = Gem::Specification.new do |s|
@@ -52,7 +52,7 @@ task :manifest do
end
end
-Rake::GemPackageTask.new(spec) do |pkg|
+Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
pkg.package_dir = "pkg"
end
@@ -82,4 +82,4 @@ task :test do
next if File.basename(file) =~ /test_helper/
system "ruby #{file}"
end
-end
+end
View
2  lib/authlogic_connect/common/variables.rb
@@ -70,7 +70,7 @@ def authenticate_via_protocol(block_given = false, options = {}, &block)
# returns boolean
def authentication_protocol(with, phase)
- returning(send("#{phase.to_s}_#{with.to_s}?")) do |ready|
+ send("#{phase.to_s}_#{with.to_s}?").tap do |ready|
send("#{phase.to_s}_#{with.to_s}") if ready
end if send("using_#{with.to_s}?")
end
Please sign in to comment.
Something went wrong with that request. Please try again.