multi_session_cache_store 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/multi_session_cache_store.rb +2 -2
- data/multi_session_cache_store.gemspec +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30607de5fdd70173593594a933e12bb23d6a330785a52f849a574011f2477673
|
4
|
+
data.tar.gz: f48eaeb697e73a138be5da73c687fc783599e6e5cd408904c24001a6a3af5c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebee33869c4e14ce6d04f46ae574a105627c0421008e04c13933c440496352321eda08f91e865f2919bbea2bc95365dea88f0dc3f76c80824e70082d307160c0
|
7
|
+
data.tar.gz: 992713d6454a01e3140fb7f6e6f6c601a8eb336110edb947539dad22d7bf403bad9c845855753e2a3985d3a55b7af2a6f9bcb12cd22675b4856ec265b46a0763
|
data/README.md
CHANGED
@@ -28,10 +28,11 @@ Add session_store.rb to initializers with the following example configuration:
|
|
28
28
|
param: "msid",
|
29
29
|
serializer: JSON
|
30
30
|
}
|
31
|
+
```
|
31
32
|
|
32
33
|
## Contributing
|
33
34
|
|
34
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/emartech/multi_session_cache_store.
|
35
36
|
|
36
37
|
## License
|
37
38
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class MultiSessionCacheStore < ActionDispatch::Session::AbstractStore
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.1"
|
3
3
|
|
4
4
|
def initialize(app, options = {})
|
5
5
|
@cache = options[:cache] || Rails.cache
|
@@ -33,7 +33,7 @@ class MultiSessionCacheStore < ActionDispatch::Session::AbstractStore
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def cache_key(env, sid)
|
36
|
-
subsession_id = env.params[@param] ||
|
36
|
+
subsession_id = env.params[@param] || "no_subsession"
|
37
37
|
"_session_id:#{sid}:#{subsession_id}"
|
38
38
|
end
|
39
39
|
end
|
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "multi_session_cache_store"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.1"
|
8
8
|
spec.authors = ["mihalek david"]
|
9
9
|
spec.email = ["david.mihalek@emarsys.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{Multi Session Cache Store}
|
12
|
-
spec.homepage = "https://github.com/
|
12
|
+
spec.homepage = "https://github.com/emartech/multi_session_cache_store.git"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
# spec.metadata["allowed_push_host"] = "http://rubygems.org"
|
19
19
|
|
20
20
|
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
22
|
-
spec.metadata["changelog_uri"] = "https://github.com/
|
21
|
+
spec.metadata["source_code_uri"] = "https://github.com/emartech/multi_session_cache_store.git"
|
22
|
+
spec.metadata["changelog_uri"] = "https://github.com/emartech/multi_session_cache_store.git/releases"
|
23
23
|
else
|
24
24
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
25
25
|
"public gem pushes."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_session_cache_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mihalek david
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -84,13 +84,13 @@ files:
|
|
84
84
|
- bin/setup
|
85
85
|
- lib/multi_session_cache_store.rb
|
86
86
|
- multi_session_cache_store.gemspec
|
87
|
-
homepage: https://github.com/
|
87
|
+
homepage: https://github.com/emartech/multi_session_cache_store.git
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata:
|
91
|
-
homepage_uri: https://github.com/
|
92
|
-
source_code_uri: https://github.com/
|
93
|
-
changelog_uri: https://github.com/
|
91
|
+
homepage_uri: https://github.com/emartech/multi_session_cache_store.git
|
92
|
+
source_code_uri: https://github.com/emartech/multi_session_cache_store.git
|
93
|
+
changelog_uri: https://github.com/emartech/multi_session_cache_store.git/releases
|
94
94
|
post_install_message:
|
95
95
|
rdoc_options: []
|
96
96
|
require_paths:
|