mvpkit 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/controllers/concerns/mvp/session_concern.rb +0 -21
- data/mvpkit.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c162cb1e5e1dc7884dbaa1c9a3d8f267054fe949
|
|
4
|
+
data.tar.gz: 0b6aed35d6042068bf99ab7df56f49114e9eaa14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de5976a3750d82e90a875959330c72c53a31366bc0cb9feb07bb5debac54bc893909b5f567d8fa55c3a49376a75a3073760a9f6d358f4eff3a7db366bc109af1
|
|
7
|
+
data.tar.gz: bc596c2170ec5ed445f0cfc289586d98fc788bedea36f5ecbc6e61d4c07a314ed65a24d61f78150942268a170d546cfdc68c0a7bf07a9caa3487a6969c1cd519
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.1
|
|
@@ -2,27 +2,6 @@ module MVP
|
|
|
2
2
|
module SessionConcern
|
|
3
3
|
extend ActiveSupport::Concern
|
|
4
4
|
|
|
5
|
-
COOKIE_ID = '_session'
|
|
6
|
-
|
|
7
|
-
included do
|
|
8
|
-
helper_method :current_user
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
def current_user=(user)
|
|
12
|
-
session[COOKIE_ID] = user.id
|
|
13
|
-
end
|
|
14
|
-
alias_method :sign_in, :current_user=
|
|
15
|
-
|
|
16
|
-
def current_user
|
|
17
|
-
@current_user ||= begin
|
|
18
|
-
if session[COOKIE_ID]
|
|
19
|
-
Conversion.find(session[COOKIE_ID])
|
|
20
|
-
end
|
|
21
|
-
rescue ActiveRecord::RecordNotFound
|
|
22
|
-
session[COOKIE_ID] = nil
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
5
|
# http://blog.laaz.org/tech/2012/12/27/rails-redirect_back_or_default/
|
|
27
6
|
def store_location(path=nil)
|
|
28
7
|
session[:return_to] = case
|
data/mvpkit.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: mvpkit 1.1.
|
|
5
|
+
# stub: mvpkit 1.1.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "mvpkit".freeze
|
|
9
|
-
s.version = "1.1.
|
|
9
|
+
s.version = "1.1.1"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Ian Hunter".freeze]
|
|
14
|
-
s.date = "2017-04-
|
|
14
|
+
s.date = "2017-04-23"
|
|
15
15
|
s.description = "Built for Developers. Ideal for MVPs, product ideation and validation.".freeze
|
|
16
16
|
s.email = "ianhunter@gmail.com".freeze
|
|
17
17
|
s.executables = ["mvp".freeze]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mvpkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Hunter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: carrierwave
|