minimum-omniauth-scaffold 0.4.9 → 0.5.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3740f0efc4e87abe653bca160c028418691e143243c4ea88efa839faf429848
|
4
|
+
data.tar.gz: a3aea5849f93db1b9c4e7584e462d9a624ea6c686f467c0b638ffa3eaccbd8b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b3e10fc8557137282547ce61e9075e3585e7c2fd4029b79412c22c9c6c2dfabf6dc74eab38728e5e2783ab39053a0a5702e5aedc61a81a0caf831232822d45
|
7
|
+
data.tar.gz: 7335959f9c15a620b7d983abd30426abfac5188bf6779b457fe78e646c091d8b80c833578573bbf7684f79e369dcc105ce60ed13594c5ad259e1f92b5b11159c
|
@@ -50,8 +50,8 @@ module Minimum
|
|
50
50
|
|
51
51
|
# controllers
|
52
52
|
content = File.read("#{@@template_path}/controllers/application_controller.rb", encoding: Encoding::UTF_8)
|
53
|
-
insert_into_file "app/controllers/application_controller.rb", content.force_encoding('ASCII-8BIT'), after: "protect_from_forgery with: :exception\n"
|
54
|
-
|
53
|
+
# insert_into_file "app/controllers/application_controller.rb", content.force_encoding('ASCII-8BIT'), after: "protect_from_forgery with: :exception\n"
|
54
|
+
insert_into_file "app/controllers/application_controller.rb", content.force_encoding('ASCII-8BIT'), after: "class ApplicationController < ActionController::Base\n"
|
55
55
|
|
56
56
|
copy_file "#{@@template_path}/controllers/sessions_controller.rb", "app/controllers/sessions_controller.rb"
|
57
57
|
copy_file "#{@@template_path}/controllers/top_controller.rb", "app/controllers/top_controller.rb"
|
@@ -1,5 +1,4 @@
|
|
1
1
|
before_action :authenticate
|
2
|
-
before_action :reset_session_expires
|
3
2
|
|
4
3
|
private
|
5
4
|
|
@@ -11,10 +10,6 @@
|
|
11
10
|
end
|
12
11
|
end
|
13
12
|
|
14
|
-
def reset_session_expires
|
15
|
-
request.session_options[:expire_after] = 2.weeks
|
16
|
-
end
|
17
|
-
|
18
13
|
def current_user
|
19
14
|
@current_user ||= User.find_by(id: session[:user_id])
|
20
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimum-omniauth-scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shu0115
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.7.
|
167
|
+
rubygems_version: 2.7.6
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Minimum OmniAuth Scaffold
|