perens-instant-user 0.0.1 → 0.0.2
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/README.rdoc
CHANGED
@@ -30,7 +30,22 @@ application.
|
|
30
30
|
* <tt>rake migrate</tt>
|
31
31
|
* Edit <tt>config/routes.rb</tt>, adding this line:
|
32
32
|
mount Perens::InstantUser::Engine => '/'
|
33
|
-
* Copy http://github.com/plataformatec/devise/
|
33
|
+
* Copy http://raw.github.com/plataformatec/devise/master/lib/generators/templates/devise.rb into <tt>config/initializers/devise.rb</tt> and edit it.
|
34
|
+
* Change <tt>config.mailer_sender</tt> to a valid address of yours.
|
35
|
+
* Change the ORM configuration line to
|
36
|
+
require 'devise/orm/active_record'
|
37
|
+
if you are using ActiveRecord as your ORM (Rails defaults to this)
|
38
|
+
or
|
39
|
+
require 'devise/orm/mongoid'
|
40
|
+
if you are using Mongoid.
|
41
|
+
* Set the value for "config.pepper" to a *unique* value for your program.
|
42
|
+
It *must* be unique, this value is used to chaff the encryption of
|
43
|
+
passwords by your application. Security will be compromised if it's not
|
44
|
+
unique or if it becomes *known to outsiders*.
|
45
|
+
Generate the value by running this program once.
|
46
|
+
require 'securerandom'
|
47
|
+
print %Q(config.pepper = "#{SecureRandom.hex(64)}"\n)
|
48
|
+
|
34
49
|
* Edit one of your environment files, like <tt>config/application.rb</tt>, to add the
|
35
50
|
URL info to be used in email messages to users from the user management
|
36
51
|
system. While testing, this might be:
|
@@ -38,7 +53,7 @@ application.
|
|
38
53
|
but it must be set to the correct external URL when your application is
|
39
54
|
running for
|
40
55
|
real users.
|
41
|
-
* Add <tt>
|
56
|
+
* Add <tt>authenticate_user!</tt> and other Devise helpers to your controllers
|
42
57
|
as appropriate. See the Devise README.rdoc[https://github.com/plataformatec/devise#readme] for information on the available features.
|
43
58
|
|
44
59
|
== Bugs
|
@@ -53,4 +68,7 @@ application.
|
|
53
68
|
Ruby and Rails are large enough that we should not all be sharing the
|
54
69
|
same global namespace. Thus, all of my code will be in the
|
55
70
|
<tt>Perens</tt> module and my gem names will start with <tt>perens-</tt>.
|
56
|
-
|
71
|
+
Forks can just change "Perens" to something else and leave "InstantUser" the
|
72
|
+
same. It turns out that users of this engine only have to type the longer name
|
73
|
+
two times, so the tiny increase in user load seems to be a good trade for
|
74
|
+
avoiding name collisions.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perens-instant-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
16
|
-
requirement: &
|
16
|
+
requirement: &10213300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.0.0rc
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *10213300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &10212800 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.2.rc1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *10212800
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: haml
|
38
|
-
requirement: &
|
38
|
+
requirement: &10155060 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *10155060
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: tzinfo
|
49
|
-
requirement: &
|
49
|
+
requirement: &10153420 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *10153420
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: omniauth
|
60
|
-
requirement: &
|
60
|
+
requirement: &10152420 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *10152420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: actionmailer
|
71
|
-
requirement: &
|
71
|
+
requirement: &10151240 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 3.2.rc1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *10151240
|
80
80
|
description: An engine that implements user and login handling instantly for an application.
|
81
81
|
It uses the Devise gem to provide all facilities.
|
82
82
|
email:
|
@@ -87,10 +87,10 @@ extra_rdoc_files: []
|
|
87
87
|
files:
|
88
88
|
- ./app/models/perens/instant_user/user.rb
|
89
89
|
- ./app/models/perens/instant_user.rb
|
90
|
-
- ./perens-instant-user-0.0.1.gem
|
91
90
|
- ./db/migrate/20120103011557_create_perens_instant_user_users.rb
|
92
91
|
- ./config/routes.rb
|
93
92
|
- ./config/initializers/devise.rb
|
93
|
+
- ./config/initializers/application_controller.rb
|
94
94
|
- ./lib/perens-instant-user.rb
|
95
95
|
- ./lib/perens/instant_user/engine.rb
|
96
96
|
- ./lib/perens/instant_user/version.rb
|
File without changes
|