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: e8219334e1c3e57ee0043aa00f3b2f581b46a2ada1d6eaae4d3d7057b7af348f
4
- data.tar.gz: cbdcfd0dcdc028479035e1ce3054b9d03bdee2466ab1ae16f4e168be0419f96a
3
+ metadata.gz: f3740f0efc4e87abe653bca160c028418691e143243c4ea88efa839faf429848
4
+ data.tar.gz: a3aea5849f93db1b9c4e7584e462d9a624ea6c686f467c0b638ffa3eaccbd8b9
5
5
  SHA512:
6
- metadata.gz: 8d0bcf6dc748489fa9486b9dbaffa5780ed6c787d1f33173c11f26a726526e22e52fb28ced0f97a4e8f736de4007a23fec35e299f642465bc16b677b0c5e8dc4
7
- data.tar.gz: 0fd4cf2551255821a52ad7a7793fcf65c9ee73191deec2a5a63d598ecf2df5c6ec4f16c53a6706abb169045e13178b8786b3c4b6173d0278dada7d2ad739694a
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
- # insert_into_file "app/controllers/application_controller.rb", content.force_encoding('ASCII-8BIT'), after: "class ApplicationController < ActionController::Base\n"
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
@@ -1,7 +1,7 @@
1
1
  module Minimum
2
2
  module Omniauth
3
3
  module Scaffold
4
- VERSION = '0.4.9'
4
+ VERSION = '0.5.0'
5
5
  end
6
6
  end
7
7
  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.9
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: 2017-12-27 00:00:00.000000000 Z
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.3
167
+ rubygems_version: 2.7.6
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Minimum OmniAuth Scaffold