rails_apps_pages 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411a616d74ea7b99e02125bb75a26957a8416546
|
4
|
+
data.tar.gz: 9f138530b4f0e14f3245bd86af8c119788325d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cf84181e1006582ca95ba56e95a2a6166beec4d7954499cfb5c41c42e656b5e7a81cfaae662ceb5f85edfa77445de39dc48dea587e1f13e3b334944a787b61
|
7
|
+
data.tar.gz: 591a92b991e7a6bef8779b0121fb61764e0893000a28c44bc86f63983e25bd38a967dc217fa0ea2ed0d2d619430e8b6f95bc5298ce06e8d2f1db304b39f9b00b
|
data/CHANGELOG.textile
CHANGED
@@ -8,6 +8,7 @@ module Pages
|
|
8
8
|
desc "Create a home page"
|
9
9
|
|
10
10
|
def create_page
|
11
|
+
return if File.exists?('app/views/visitors/index.html.erb')
|
11
12
|
copy_file 'index.html.erb', 'app/views/visitors/index.html.erb'
|
12
13
|
copy_file 'visitors_controller.rb', 'app/controllers/visitors_controller.rb'
|
13
14
|
route = " root to: 'visitors#index'"
|
@@ -27,6 +27,8 @@ module Pages
|
|
27
27
|
copy_file 'omniauth/users_controller.rb', 'app/controllers/users_controller.rb'
|
28
28
|
copy_file 'omniauth/_user.html.erb', 'app/views/users/_user.html.erb'
|
29
29
|
copy_file 'omniauth/show.html.erb', 'app/views/users/show.html.erb'
|
30
|
+
route = ' resources :users, :only => [:index, :show]'
|
31
|
+
inject_into_file 'config/routes.rb', route + "\n", :after => "routes.draw do\n"
|
30
32
|
end
|
31
33
|
|
32
34
|
def add_devise_name_field
|
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.5.
|
4
|
+
version: 0.5.10
|
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-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|