minimum-omniauth-scaffold 0.4.6 → 0.4.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: 93494dd6a5fbe5bed77856e07521f6eba39b47a6
4
- data.tar.gz: 6339989277645095402247409223944415da895e
3
+ metadata.gz: c624606511bf2958af350d298162be5dd9859dc5
4
+ data.tar.gz: 72dec58811495d0c3dc60a701df832e59c3d0f18
5
5
  SHA512:
6
- metadata.gz: 292cbafe53397c30cda0f192670234398f0ebd345eaf30b68cd221544edd983880279be1a85f7f9e9a86b5874d748491459feb728cfda18836c0cd2f99c5e9f3
7
- data.tar.gz: 1ae8e3181523e8d162bc9c1418227616cbc3e799001e4fc8b72876e476ca5ae44fe69de24c334a35d6336313fdfbe5e39ab2de95611c5c6a6de8e5c752288e53
6
+ metadata.gz: b06907ed03723777eed9bb01a81b2afec74e0bb8784fab3412414ddc52795b124ca8d8621cb713a4d1380a7e4cc245c217df61a5a55ae62c14c5726498e82464
7
+ data.tar.gz: 7fcc2c88175fc71e14236bfb411c8ec2acbe42ed1249e60e9bc187ea53e5c104bb2fbcc48c2b9a982b4795b39b59c4988b9fea03c3c53ac346e8e13def1058c3
@@ -11,6 +11,10 @@
11
11
  end
12
12
  end
13
13
 
14
+ def reset_session_expires
15
+ request.session_options[:expire_after] = 2.weeks
16
+ end
17
+
14
18
  def current_user
15
19
  @current_user ||= User.find_by(id: session[:user_id])
16
20
  end
@@ -1,7 +1,7 @@
1
1
  module Minimum
2
2
  module Omniauth
3
3
  module Scaffold
4
- VERSION = '0.4.6'
4
+ VERSION = '0.4.7'
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.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - shu0115
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-09-14 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.6.10
167
+ rubygems_version: 2.6.11
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Minimum OmniAuth Scaffold