rails_apps_pages 0.5.6 → 0.5.7

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: 2666de6172f8535a6a2f744f46aaec5efa3300e8
4
- data.tar.gz: ff175f2895625425321ae15cf3147c9071eeb650
3
+ metadata.gz: c1c11e41645c4a387c819a55da0f91066ae2873f
4
+ data.tar.gz: c8b903c69b38096c6968e66636ed75c0a3e51912
5
5
  SHA512:
6
- metadata.gz: d00e4ea4ef71c36ea4599f7855384ce1d833964fd93a804a76f8d4eba02e200853d6b61ceeb7111574404ba0b9c06b4bfb3b8565c1a7b523989a942ba93898bb
7
- data.tar.gz: c24152b386a11a645d580e9c1875efbeeb1d0513f1f6fb2b75781647700ecefb8343e8d9072fbd4944f2da20d6f82dd98ff2859623ac40e6b386bf0324767078
6
+ metadata.gz: 0c99797da2d68abb0661f00f088577f7ae553e1345de57f22051c9ab3803c8bf4b4211d399875b1883a14b77e41e844a498ab911f35781f143503c0e9210df70
7
+ data.tar.gz: 8d9359f086a7b5c884f43726e7be31a7b1c21102499175793700c7e348faa16812d3c22f6983fabe62e2238dde184d59d1ff187f460120d45dfd06ef22fc7575
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.5.7 June 26, 2014
4
+
5
+ * remove 'capture email' feature from rails-omniauth example application
6
+
3
7
  h3. 0.5.6 June 19, 2014
4
8
 
5
9
  * add files to integrate Pundit with OmniAuth
@@ -0,0 +1 @@
1
+ <td><%= link_to user.name, user %></td>
@@ -0,0 +1,2 @@
1
+ <h3>User</h3>
2
+ <p>Name: <%= @user.name if @user.name %></p>
@@ -6,27 +6,8 @@ class UsersController < ApplicationController
6
6
  @users = User.all
7
7
  end
8
8
 
9
- def edit
10
- @user = User.find(params[:id])
11
- end
12
-
13
- def update
14
- @user = User.find(params[:id])
15
- if @user.update_attributes(secure_params)
16
- redirect_to @user
17
- else
18
- render :edit
19
- end
20
- end
21
-
22
9
  def show
23
10
  @user = User.find(params[:id])
24
11
  end
25
12
 
26
- private
27
-
28
- def secure_params
29
- params.require(:user).permit(:email)
30
- end
31
-
32
13
  end
@@ -24,12 +24,11 @@ module Pages
24
24
 
25
25
  def create_omniauth_pages
26
26
  return unless File.exists?('config/initializers/omniauth.rb')
27
- copy_file 'users/edit.html.erb', 'app/views/users/edit.html.erb'
28
27
  copy_file 'omniauth/users_controller.rb', 'app/controllers/users_controller.rb'
29
- route = ' resources :users, :only => [:index, :show, :edit, :update ]'
28
+ route = ' resources :users, :only => [:index, :show]'
30
29
  inject_into_file 'config/routes.rb', route + "\n", :after => "root :to => \"visitors#index\"\n"
31
- prepend_file 'app/views/users/_user.html.erb', "<td><%= link_to user.name, user %></td>\n"
32
- inject_into_file 'app/views/users/show.html.erb', "\n<p>Name: <%= @user.name if @user.name %></p>", :before => "\n<p>Email"
30
+ copy_file 'omniauth/_user.html.erb', 'app/views/users/_user.html.erb'
31
+ copy_file 'omniauth/show.html.erb', 'app/views/users/show.html.erb'
33
32
  end
34
33
 
35
34
  def add_devise_name_field
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.5.6"
2
+ VERSION = "0.5.7"
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.6
4
+ version: 0.5.7
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-19 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,6 +72,8 @@ files:
72
72
  - lib/generators/pages/home/templates/visitors_controller.rb
73
73
  - lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
74
74
  - lib/generators/pages/users/templates/devise/users_controller.rb
75
+ - lib/generators/pages/users/templates/omniauth/_user.html.erb
76
+ - lib/generators/pages/users/templates/omniauth/show.html.erb
75
77
  - lib/generators/pages/users/templates/omniauth/users_controller.rb
76
78
  - lib/generators/pages/users/templates/users/_user.html.erb
77
79
  - lib/generators/pages/users/templates/users/edit.html.erb