simplest_auth 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module SimplestAuth
14
14
  end
15
15
  elsif base.data_mapper?
16
16
  base.class_eval do
17
- before :save, :hash_password, :if => :password_required?
17
+ before(:save) {hash_password if password_required?}
18
18
  end
19
19
  end
20
20
  end
@@ -3,7 +3,7 @@ module SimplestAuth
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
@@ -9,7 +9,7 @@ class DMUserTest < Test::Unit::TestCase
9
9
  setup do
10
10
  DMUser.stubs(:active_record?).returns(false)
11
11
  DMUser.stubs(:data_mapper?).returns(true)
12
- DMUser.expects(:before).with(:save, :hash_password, :if => :password_required?)
12
+ DMUser.stubs(:before)
13
13
  DMUser.send(:include, SimplestAuth::Model)
14
14
  end
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplest_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-03 00:00:00 -04:00
12
+ date: 2009-05-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency