authlogic_wind 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/authlogic_wind.gemspec +5 -2
- data/lib/authlogic_wind.rb +7 -0
- data/test/test_helper.rb +33 -3
- metadata +12 -2
data/Rakefile
CHANGED
@@ -10,6 +10,7 @@ begin
|
|
10
10
|
gem.email = "tastyhat@jamesstuart.org"
|
11
11
|
gem.homepage = "http://github.com/tastyhat/authlogic_wind"
|
12
12
|
gem.authors = ["James Stuart"]
|
13
|
+
gem.add_dependency "authlogic"
|
13
14
|
gem.add_development_dependency "thoughtbot-shoulda"
|
14
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/authlogic_wind.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{authlogic_wind}
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Stuart"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-11-03}
|
13
13
|
s.description = %q{Authlogic plugin for WIND}
|
14
14
|
s.email = %q{tastyhat@jamesstuart.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -43,11 +43,14 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.specification_version = 3
|
44
44
|
|
45
45
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_runtime_dependency(%q<authlogic>, [">= 0"])
|
46
47
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
47
48
|
else
|
49
|
+
s.add_dependency(%q<authlogic>, [">= 0"])
|
48
50
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
49
51
|
end
|
50
52
|
else
|
53
|
+
s.add_dependency(%q<authlogic>, [">= 0"])
|
51
54
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
52
55
|
end
|
53
56
|
end
|
data/lib/authlogic_wind.rb
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/authlogic_wind/acts_as_authentic"
|
2
|
+
require File.dirname(__FILE__) + "/authlogic_wind/session"
|
3
|
+
require File.dirname(__FILE__) + "/authlogic_wind/helper"
|
4
|
+
|
5
|
+
ActiveRecord::Base.send(:include, AuthlogicWind::ActsAsAuthentic)
|
6
|
+
Authlogic::Session::Base.send(:include, AuthlogicWind::Session)
|
7
|
+
ActionController::Base.helper AuthlogicWind::Helper
|
data/test/test_helper.rb
CHANGED
@@ -1,10 +1,40 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "test/unit"
|
2
|
+
require "rubygems"
|
3
|
+
require "ruby-debug"
|
4
|
+
require "active_record"
|
3
5
|
require 'shoulda'
|
6
|
+
require 'authlogic'
|
7
|
+
|
8
|
+
ActiveRecord::Schema.verbose = false
|
9
|
+
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:")
|
10
|
+
ActiveRecord::Base.configurations = true
|
11
|
+
ActiveRecord::Schema.define(:version => 1) do
|
12
|
+
create_table :users do |t|
|
13
|
+
t.datetime :created_at
|
14
|
+
t.datetime :updated_at
|
15
|
+
t.integer :lock_version, :default => 0
|
16
|
+
t.string :login
|
17
|
+
t.string :crypted_password
|
18
|
+
t.string :password_salt
|
19
|
+
t.string :persistence_token
|
20
|
+
t.string :single_access_token
|
21
|
+
t.string :perishable_token
|
22
|
+
t.string :wind_login
|
23
|
+
t.string :email
|
24
|
+
t.integer :login_count, :default => 0, :null => false
|
25
|
+
t.integer :failed_login_count, :default => 0, :null => false
|
26
|
+
t.datetime :last_request_at
|
27
|
+
t.datetime :current_login_at
|
28
|
+
t.datetime :last_login_at
|
29
|
+
t.string :current_login_ip
|
30
|
+
t.string :last_login_ip
|
31
|
+
end
|
32
|
+
end
|
4
33
|
|
5
34
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
35
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
7
|
-
require 'authlogic_wind'
|
36
|
+
# require 'authlogic_wind'
|
37
|
+
|
8
38
|
|
9
39
|
class Test::Unit::TestCase
|
10
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic_wind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Stuart
|
@@ -9,9 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-03 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: authlogic
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: thoughtbot-shoulda
|
17
27
|
type: :development
|