devise_rails3_ennder 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
1
  == 0.9.0 / 2011-06-07
2
2
 
3
3
  * spécialisation pour Rails 3
4
+
5
+ == 1.0.0 / 2011-08-12
6
+
7
+ * added important missing instructions to README.rdoc
8
+ * translations links:back
data/INSTALL CHANGED
@@ -77,7 +77,7 @@ config.action_mailer.smtp_settings = {
77
77
  end
78
78
 
79
79
 
80
- 5) Enfin vous pouvez aussi surcharger les vues en les recopiant depuis le plugin :
80
+ 5) Enfin vous pouvez aussi surcharger les vues en les recopiant depuis le gem :
81
81
 
82
82
 
83
83
  Utilisation :
data/README.rdoc CHANGED
@@ -1,20 +1,44 @@
1
1
  == Devise Rails 3 Ennder
2
2
 
3
- Devise is a flexible authentication solution for Rails based on Warden (translated in FR by Ennder). It:
3
+ Devise (translated in FR by Ennder, in this gem) is a flexible authentication solution for Rails based on Warden.
4
4
 
5
5
  What this gem does :
6
- - adds a rake task (devise_rails3_ennder:sync_user_model) that adds a model 'User' that has devise enabled
7
- - adds a rake task (devise_rails3_ennder:sync_migrations) to add a migration that creates the users table and its devise fields
8
- - adds a rake task (devise_rails3_ennder:sync_devise_initializer) to add the devise initializer configuration file
9
- - adds extended devise translations in modified views (en, fr)
6
+ # adds a rake task (devise_rails3_ennder:sync_user_model) that adds a model 'User' that has devise enabled
7
+ # adds a rake task (devise_rails3_ennder:sync_migrations) to add a migration that creates the users table and its devise fields
8
+ You will be able to add your own fields to the User model only after that
9
+ # adds a rake task (devise_rails3_ennder:sync_devise_initializer) to add the devise initializer configuration file (config/initializers/devise.rb)
10
+ (You should configure devise with this task)
11
+ # adds extended devise translations (en, fr)
12
+ # adds modified views for translations
13
+ # add the 13 devise routes to your routes (for the User model : devise_for :users)
10
14
 
11
15
  This gem does not (you have to do it) :
12
- - add the devise routes to your config/routes.rb
13
- route devise_for :users
14
- - add config/initializers/devise.rb
15
-
16
-
17
- Right now devise composed of 12 modules:
16
+ * install the warden and devise gems
17
+ * lauch the 3 rake tasks
18
+ * add your
19
+ * add the before_filter instruction to your ApplicationController :
20
+ before_filter :authenticate_user!
21
+ * configure your smtp setting, you must add in your environment configration file (dev / test /production) something like :
22
+ config.action_mailer.smtp_settings = {
23
+ :address => 'your_smtp_server_address.domain.com',
24
+ :port => 25,
25
+ :domain => "free.fr"
26
+ }
27
+ * add the login / logout partial to your layout, you must insert the following instruction :
28
+ <%= render :partial => 'devise/shared/user_nav' %>
29
+ * add the flash message div to your layout, to display the notice / error Devise messages
30
+ <pre>
31
+ <%- flash.each do |name, msg| -%>
32
+ <%= content_tag :div, msg, :id => "flash_#{name}" %>
33
+ <%- end -%>
34
+ </pre>
35
+ * verify your routes for the user
36
+ verify yourself in your routes configuration file, that the resources for the user model are not fully defined like this
37
+ > resources :users
38
+ If you have to add new routes to user, add them after re-specifying :
39
+ > devise_for :users
40
+
41
+ Right now devise is composed of 12 modules:
18
42
 
19
43
  * Database Authenticatable: responsible for encrypting password and validating authenticity of a user while signing in.
20
44
  * Token Authenticatable: validates authenticity of a user while signing in using an authentication token (also known as "single access token").
@@ -82,7 +106,7 @@ Remember that Devise don't rely on _attr_accessible_ or _attr_protected_ inside
82
106
 
83
107
  The next setup after setting up your model is to configure your routes. You do this by opening up your config/routes.rb and adding:
84
108
 
85
- map.devise_for :users
109
+ devise_for :users
86
110
 
87
111
  This is going to look inside you User model and create a set of needed routes (you can see them by running `rake routes`).
88
112
 
@@ -11,6 +11,10 @@ en:
11
11
  one: "1 error prohibited this %{resource} from being saved:"
12
12
  other: "%{count} errors prohibited this %{resource} from being saved:"
13
13
 
14
+
15
+ links:
16
+ back: 'Back'
17
+
14
18
  devise:
15
19
  failure:
16
20
  already_authenticated: 'You are already signed in.'
@@ -11,6 +11,9 @@ fr:
11
11
  one: "1 erreur a empêché cet %{resource} d'être enregistré :"
12
12
  other: "%{count} erreurs ont empêché cet %{resource} d'être enregistré :"
13
13
 
14
+ links:
15
+ back: 'Retour'
16
+
14
17
  devise:
15
18
  failure:
16
19
  already_authenticated: 'Vous êtes déjà logué.'
@@ -100,7 +103,7 @@ fr:
100
103
 
101
104
  activerecord:
102
105
  models:
103
- user: "Utilisateur"
106
+ user: 'Utilisateur'
104
107
  attributes:
105
108
  user:
106
109
  password: 'Mot de passe'
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 1.0.0
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: devise_rails3_ennder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.0
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Jos\xC3\xA9 VALIM, Carlos ANT\xC3\x94NIO, J\xC3\xA9r\xC3\xB4me BATAILLE"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-09 00:00:00 +02:00
13
+ date: 2011-08-12 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: 3.7.0
25
25
  type: :development
26
26
  version_requirements: *id001
27
- description: "Devise is a flexible authentication solution for Rails based on Warden (translated in FR by Ennder). It:"
27
+ description: Devise (translated in FR by Ennder, in this gem) is a flexible authentication solution for Rails based on Warden.
28
28
  email: mel@ennder.fr
29
29
  executables:
30
30
  - .directory
@@ -129,6 +129,6 @@ rubyforge_project: devise_rails3_ennder
129
129
  rubygems_version: 1.6.2
130
130
  signing_key:
131
131
  specification_version: 3
132
- summary: Devise is a flexible authentication solution for Rails based on Warden (translated in FR by Ennder).
132
+ summary: Devise (translated in FR by Ennder, in this gem) is a flexible authentication solution for Rails based on Warden.
133
133
  test_files: []
134
134