authlogic 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of authlogic might be problematic. Click here for more details.

@@ -1,3 +1,7 @@
1
+ == 1.1.2 released 2008-11-13
2
+
3
+ * Added check for database set up in acts_as_authentic to prevent errors during migrations.
4
+
1
5
  == 1.1.1 released 2008-11-13
2
6
 
3
7
  * Removed ActiveRecord dependency.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{authlogic}
3
- s.version = "1.1.1"
3
+ s.version = "1.1.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Ben Johnson of Binary Logic"]
@@ -82,6 +82,13 @@ module Authlogic
82
82
  end
83
83
 
84
84
  def acts_as_authentic_with_config(options = {})
85
+ # Stop all configuration if the DB is not set up
86
+ begin
87
+ column_names
88
+ rescue Exception
89
+ return
90
+ end
91
+
85
92
  options[:session_class] ||= "#{name}Session"
86
93
  options[:crypto_provider] ||= CryptoProviders::Sha512
87
94
  options[:login_field] ||= first_column_to_exist(:login, :username, :email)
@@ -44,7 +44,7 @@ module Authlogic # :nodoc:
44
44
 
45
45
  MAJOR = 1
46
46
  MINOR = 1
47
- TINY = 1
47
+ TINY = 2
48
48
 
49
49
  # The current version as a Version instance
50
50
  CURRENT = new(MAJOR, MINOR, TINY)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic