rails_apps_pages 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/README.textile +2 -9
- data/lib/generators/pages/about/templates/about_page_spec.rb +1 -1
- data/lib/generators/pages/home/templates/home_page_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/sign_in_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/sign_out_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/user_delete_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/user_edit_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/user_index_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/users/user_show_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/features/visitors/sign_up_spec.rb +1 -1
- data/lib/generators/pages/users/templates/spec/models/user_spec.rb +1 -1
- data/lib/rails_apps_pages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f47181945594081e4529f9159ed54573e147b0d
|
4
|
+
data.tar.gz: 7ddb47758d7fe843534e0f4542a391d9be2f5a7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53dbc2c69a52f75b83d9bdc1273246ae801a8fc271c3690292aa631788726c2f8298592120d8c9c3c967053b5f218a9891f9b30623f6a223241c59e2f1e7a77a
|
7
|
+
data.tar.gz: 26ce7b375481c05721d6e4cafbd233c74870907ce99a89c262f8a86fa7f70d19712b618d25151c4ece2c31ebdec37b608312a50d44d44852a4c5b88a7dd0105a
|
data/CHANGELOG.textile
CHANGED
data/README.textile
CHANGED
@@ -79,7 +79,7 @@ You'll need to install the "high_voltage gem":https://github.com/thoughtbot/high
|
|
79
79
|
|
80
80
|
h2. Generate User Pages Requiring Authentication
|
81
81
|
|
82
|
-
If you have a User model and authentication with Devise, you can add pages to display a list of users or each user's profile, restricted to signed in users.
|
82
|
+
If you have a User model and authentication with Devise or OmniAuth, you can add pages to display a list of users or each user's profile, restricted to signed in users.
|
83
83
|
|
84
84
|
To run the generator and create pages to accompany a User model:
|
85
85
|
|
@@ -89,7 +89,6 @@ $ rails generate pages:users
|
|
89
89
|
|
90
90
|
The generator will create:
|
91
91
|
|
92
|
-
* app/controllers/registrations_controller.rb
|
93
92
|
* app/controllers/users_controller.rb
|
94
93
|
* app/controllers/visitors_controller.rb
|
95
94
|
* app/views/users/_user.html.erb
|
@@ -98,13 +97,7 @@ The generator will create:
|
|
98
97
|
* app/views/visitors/index.html.erb
|
99
98
|
* plus tests (if RSpec is installed)
|
100
99
|
|
101
|
-
It will add routes to the *config/routes.rb* file
|
102
|
-
|
103
|
-
<pre>
|
104
|
-
root :to => "visitors#index"
|
105
|
-
devise_for :users, :controllers => {:registrations => "registrations"}
|
106
|
-
resources :users
|
107
|
-
</pre>
|
100
|
+
It will also add routes to the *config/routes.rb* file.
|
108
101
|
|
109
102
|
h2. Generate User Pages Requiring Authorization
|
110
103
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|