muck-users 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/views/user_sessions/new.html.erb +3 -3
- data/db/migrate/20090327231918_create_users.rb +40 -0
- data/muck-users.gemspec +5 -5
- metadata +7 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
@@ -2,9 +2,9 @@
|
|
2
2
|
<% custom_form_for @user_session, :url => user_session_path do |f| -%>
|
3
3
|
<h1><%= I18n.t('muck.users.login_title') %></h1>
|
4
4
|
<%= output_errors(t('muck.users.login_fail'), {:class => 'help-box'}) %>
|
5
|
-
<%= f.text_field :login, { :label => I18n.t('muck.users.username'), :hide_required => true, :hide_control_error => true } -%>
|
6
|
-
<%= f.password_field :password, { :label => I18n.t('muck.users.password'), :hide_required => true, :hide_control_error => true } -%>
|
7
|
-
<%= f.check_box :remember_me, { :label => I18n.t('muck.users.remember_me'), :hide_required => true, :hide_control_error => true } %>
|
5
|
+
<%= f.text_field :login, { :label => I18n.t('muck.users.username'), :class => 'login', :hide_required => true, :hide_control_error => true } -%>
|
6
|
+
<%= f.password_field :password, { :label => I18n.t('muck.users.password'), :class => 'password', :hide_required => true, :hide_control_error => true } -%>
|
7
|
+
<%= f.check_box :remember_me, { :label => I18n.t('muck.users.remember_me'), :class => 'checkbox', :hide_required => true, :hide_control_error => true } %>
|
8
8
|
<div class="button form-row">
|
9
9
|
<%= submit_tag I18n.t('muck.users.sign_in') %>
|
10
10
|
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
class CreateUsers < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :users, :force => true do |t|
|
4
|
+
t.string :login
|
5
|
+
t.string :email
|
6
|
+
t.string :first_name
|
7
|
+
t.string :last_name
|
8
|
+
t.string :crypted_password
|
9
|
+
t.string :password_salt
|
10
|
+
t.string :persistence_token, :null => false
|
11
|
+
t.string :single_access_token, :null => false
|
12
|
+
t.string :perishable_token, :null => false
|
13
|
+
t.integer :login_count, :null => false, :default => 0
|
14
|
+
t.integer :failed_login_count, :null => false, :default => 0
|
15
|
+
t.datetime :last_request_at
|
16
|
+
t.datetime :current_login_at
|
17
|
+
t.datetime :last_login_at
|
18
|
+
t.string :current_login_ip
|
19
|
+
t.string :last_login_ip
|
20
|
+
t.boolean :terms_of_service, :default => false, :null => false
|
21
|
+
t.string :time_zone, :default => "UTC"
|
22
|
+
t.datetime :disabled_at
|
23
|
+
t.datetime :created_at
|
24
|
+
t.datetime :activated_at
|
25
|
+
t.datetime :updated_at
|
26
|
+
t.string :identity_url
|
27
|
+
t.string :url_key
|
28
|
+
end
|
29
|
+
|
30
|
+
add_index :users, :login
|
31
|
+
add_index :users, :email
|
32
|
+
add_index :users, :persistence_token
|
33
|
+
add_index :users, :last_request_at
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.down
|
38
|
+
drop_table :users
|
39
|
+
end
|
40
|
+
end
|
data/muck-users.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-users}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball"]
|
12
|
-
s.date = %q{2009-08
|
12
|
+
s.date = %q{2009-09-08}
|
13
13
|
s.description = %q{Easily add user signup, login and other features to your application}
|
14
14
|
s.email = %q{justinball@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -592,6 +592,7 @@ Gem::Specification.new do |s|
|
|
592
592
|
"app/views/users/welcome.html.erb",
|
593
593
|
"config/muck_users_routes.rb",
|
594
594
|
"db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
|
595
|
+
"db/migrate/20090327231918_create_users.rb",
|
595
596
|
"install.rb",
|
596
597
|
"lib/action_controller/authentic_application.rb",
|
597
598
|
"lib/active_record/acts/muck_user.rb",
|
@@ -872,12 +873,11 @@ Gem::Specification.new do |s|
|
|
872
873
|
"test/rails_root/vendor/plugins/validation_reflection/test/validation_reflection_test.rb",
|
873
874
|
"uninstall.rb"
|
874
875
|
]
|
875
|
-
s.has_rdoc = true
|
876
876
|
s.homepage = %q{http://github.com/jbasdf/muck_users}
|
877
877
|
s.rdoc_options = ["--charset=UTF-8"]
|
878
878
|
s.require_paths = ["lib"]
|
879
879
|
s.rubyforge_project = %q{muck-users}
|
880
|
-
s.rubygems_version = %q{1.3.
|
880
|
+
s.rubygems_version = %q{1.3.5}
|
881
881
|
s.summary = %q{Easy to use user engine for Rails}
|
882
882
|
s.test_files = [
|
883
883
|
"test/rails_root/app/controllers/application_controller.rb",
|
@@ -930,7 +930,7 @@ Gem::Specification.new do |s|
|
|
930
930
|
|
931
931
|
if s.respond_to? :specification_version then
|
932
932
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
933
|
-
s.specification_version =
|
933
|
+
s.specification_version = 3
|
934
934
|
|
935
935
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
936
936
|
s.add_runtime_dependency(%q<authlogic>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-users
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08
|
12
|
+
date: 2009-09-08 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -647,6 +647,7 @@ files:
|
|
647
647
|
- app/views/users/welcome.html.erb
|
648
648
|
- config/muck_users_routes.rb
|
649
649
|
- db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
650
|
+
- db/migrate/20090327231918_create_users.rb
|
650
651
|
- install.rb
|
651
652
|
- lib/action_controller/authentic_application.rb
|
652
653
|
- lib/active_record/acts/muck_user.rb
|
@@ -928,6 +929,8 @@ files:
|
|
928
929
|
- uninstall.rb
|
929
930
|
has_rdoc: true
|
930
931
|
homepage: http://github.com/jbasdf/muck_users
|
932
|
+
licenses: []
|
933
|
+
|
931
934
|
post_install_message:
|
932
935
|
rdoc_options:
|
933
936
|
- --charset=UTF-8
|
@@ -948,9 +951,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
948
951
|
requirements: []
|
949
952
|
|
950
953
|
rubyforge_project: muck-users
|
951
|
-
rubygems_version: 1.3.
|
954
|
+
rubygems_version: 1.3.5
|
952
955
|
signing_key:
|
953
|
-
specification_version:
|
956
|
+
specification_version: 3
|
954
957
|
summary: Easy to use user engine for Rails
|
955
958
|
test_files:
|
956
959
|
- test/rails_root/app/controllers/application_controller.rb
|