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: 05e197de72541d65f2c49e810b2e3b346759949f
4
- data.tar.gz: 54c71c81d33e415f6bf7bbfb9109fe6910011323
3
+ metadata.gz: 411a616d74ea7b99e02125bb75a26957a8416546
4
+ data.tar.gz: 9f138530b4f0e14f3245bd86af8c119788325d9c
5
5
  SHA512:
6
- metadata.gz: ceaa511d6997c61aa9c79c386dfc43748f9c70aa3c8b12c0d3cc0d9a799ea039ad734b132cb58343072e1441071fe4ea09aa7618d2f130dc62d8f49272b59853
7
- data.tar.gz: 833477eda9cd660c1684847fbfa07d8884a7ee804900d2779e1fc6dfa84232f133347a53eb7fdd6f05a55c6d076d34dd392c3955a8c8c18c5d381918f86b85c5
6
+ metadata.gz: 52cf84181e1006582ca95ba56e95a2a6166beec4d7954499cfb5c41c42e656b5e7a81cfaae662ceb5f85edfa77445de39dc48dea587e1f13e3b334944a787b61
7
+ data.tar.gz: 591a92b991e7a6bef8779b0121fb61764e0893000a28c44bc86f63983e25bd38a967dc217fa0ea2ed0d2d619430e8b6f95bc5298ce06e8d2f1db304b39f9b00b
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,10 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.5.10 July 2, 2014
4
+
5
+ * don't generate a home page if it already exists
6
+ * generate routes for OmniAuth for users pages
7
+
3
8
  h3. 0.5.9 June 30, 2014
4
9
 
5
10
  * use new style routes syntax
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.5.9"
2
+ VERSION = "0.5.10"
3
3
  end
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.9
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-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler