beef-admin_area 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/admin_area.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{admin_area}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve England"]
9
- s.date = %q{2009-07-14}
9
+ s.date = %q{2009-08-04}
10
10
  s.email = %q{steve@wearebeef.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
33
33
  "app/views/admin/users/index.html.erb",
34
34
  "app/views/admin/users/show.html.erb",
35
35
  "app/views/layouts/admin.html.erb",
36
+ "app/views/sessions/new.html.erb",
36
37
  "config/routes.rb",
37
38
  "generators/admin_area_files/USAGE",
38
39
  "generators/admin_area_files/admin_area_files_generator.rb",
@@ -140,7 +141,7 @@ Gem::Specification.new do |s|
140
141
  s.homepage = %q{http://github.com/beef/admin}
141
142
  s.rdoc_options = ["--charset=UTF-8"]
142
143
  s.require_paths = ["lib"]
143
- s.rubygems_version = %q{1.3.3}
144
+ s.rubygems_version = %q{1.3.5}
144
145
  s.summary = %q{Rails engine that provides a standard admin area with user managament}
145
146
  s.test_files = [
146
147
  "test/admin_area_test.rb",
@@ -0,0 +1,25 @@
1
+ <h2>Sign in</h2>
2
+
3
+ <% form_for :session, :url => session_path(:return_to => admin_path) do |form| %>
4
+ <div class="text_field">
5
+ <%= form.label :email %>
6
+ <%= form.text_field :email %>
7
+ </div>
8
+ <div class="text_field">
9
+ <%= form.label :password %>
10
+ <%= form.password_field :password %>
11
+ </div>
12
+ <div class="text_field">
13
+ <%= form.check_box :remember_me %>
14
+ <%= form.label :remember_me %>
15
+ </div>
16
+ <div class="submit_field">
17
+ <%= form.submit "Sign in", :disable_with => "Please wait..." %>
18
+ </div>
19
+ <% end %>
20
+
21
+ <ul>
22
+ <li>
23
+ <%= link_to "Forgot password?", new_password_path %>
24
+ </li>
25
+ </ul>
data/rails/init.rb CHANGED
@@ -1,4 +1,10 @@
1
- require 'admin_area'
2
- require 'will_paginate'
3
1
  require 'clearance'
2
+ require 'will_paginate'
4
3
  require 'sortable_table'
4
+ require 'admin_area'
5
+
6
+ config.after_initialize do
7
+ # Put Clearance views at bottom of view paths
8
+ path = ActionController::Base.view_paths.find { |p| p.to_s =~ /thoughtbot-clearance/ }
9
+ ActionController::Base.view_paths << ActionController::Base.view_paths.delete(path)
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-admin_area
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-14 00:00:00 -07:00
12
+ date: 2009-08-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,7 @@ files:
72
72
  - app/views/admin/users/index.html.erb
73
73
  - app/views/admin/users/show.html.erb
74
74
  - app/views/layouts/admin.html.erb
75
+ - app/views/sessions/new.html.erb
75
76
  - config/routes.rb
76
77
  - generators/admin_area_files/USAGE
77
78
  - generators/admin_area_files/admin_area_files_generator.rb
@@ -177,6 +178,7 @@ files:
177
178
  - test/test_helper.rb
178
179
  has_rdoc: false
179
180
  homepage: http://github.com/beef/admin
181
+ licenses:
180
182
  post_install_message:
181
183
  rdoc_options:
182
184
  - --charset=UTF-8
@@ -197,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
199
  requirements: []
198
200
 
199
201
  rubyforge_project:
200
- rubygems_version: 1.2.0
202
+ rubygems_version: 1.3.5
201
203
  signing_key:
202
204
  specification_version: 3
203
205
  summary: Rails engine that provides a standard admin area with user managament