redis-session-retrieve 0.0.3 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 307949877226d7e5f2469adb0efa49c5fa8af301718173a8ed0ebea78414351e
4
+ data.tar.gz: f91615e9d8accc726ba68be2a160350c5a9d58dcd0d2b9c80b00fbf8e5a01057
5
+ SHA512:
6
+ metadata.gz: b2709cb53e1c923a222e2179c6e7383dddfa9988e704f54f094b0b1f866a9bac4a1db3b064a5824af34482df9931f5d6b98789fdf7e34bbe89c2b937695c7d4d
7
+ data.tar.gz: 5603316d8fee629adc8139fef655077bd7b65b71759ca869cc9ebeeab2f1de6fdcba1f6847f4be051991941f3c05bd71abde521b638a4a318abf32bcc7cfe605
data/Gemfile.lock CHANGED
@@ -1,14 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-session-retrieve (0.0.2)
4
+ redis-session-retrieve (1.0.1)
5
+ activesupport (~> 3.2)
5
6
  redis (~> 3.0)
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
9
10
  specs:
11
+ activesupport (3.2.8)
12
+ i18n (~> 0.6)
13
+ multi_json (~> 1.0)
10
14
  diff-lcs (1.1.3)
15
+ i18n (0.6.1)
11
16
  mock_redis (0.5.1)
17
+ multi_json (1.5.0)
12
18
  redis (3.0.2)
13
19
  rspec (2.11.0)
14
20
  rspec-core (~> 2.11.0)
@@ -26,3 +32,6 @@ DEPENDENCIES
26
32
  mock_redis
27
33
  redis-session-retrieve!
28
34
  rspec
35
+
36
+ BUNDLED WITH
37
+ 2.5.3
@@ -11,7 +11,11 @@ module RedisSessionRetrieve
11
11
  end
12
12
 
13
13
  def find_by_id session_id
14
- session = @connection.get session_id
14
+ session = nil
15
+
16
+ ActiveSupport::Notifications.instrument 'redis-session-retrieve.session_lookup',:session_id => session_id do
17
+ session = @connection.get session_id
18
+ end
15
19
 
16
20
  if session.nil?
17
21
  return nil
@@ -1,3 +1,3 @@
1
1
  module RedisSessionRetrieve
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+ require 'active_support/notifications'
1
3
  require "redis-session-retrieve/version"
2
4
  require "redis-session-retrieve/fetcher"
3
5
 
@@ -13,12 +13,17 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.rubyforge_project = "redis-session-retrieve"
15
15
 
16
+ s.metadata = {
17
+ "source_code_uri" => "https://github.com/akeem/redis-session-retrieve",
18
+ }
19
+
16
20
  s.files = `git ls-files`.split("\n")
17
21
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
22
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
23
  s.require_paths = ["lib"]
20
24
 
21
25
  s.add_dependency "redis","~>3.0"
26
+ s.add_dependency "activesupport","~>3.2"
22
27
  s.add_development_dependency "rspec"
23
28
  s.add_development_dependency "mock_redis"
24
29
  end
metadata CHANGED
@@ -1,62 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-session-retrieve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Akeem Adeniji
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-02 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: redis
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rspec
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - ">="
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - ">="
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: mock_redis
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ! '>='
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
61
  version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ! '>='
66
+ - - ">="
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  description: An easy way to retrieve session data store in redis via the redis-store
@@ -67,7 +74,7 @@ executables: []
67
74
  extensions: []
68
75
  extra_rdoc_files: []
69
76
  files:
70
- - .travis.yml
77
+ - ".travis.yml"
71
78
  - Gemfile
72
79
  - Gemfile.lock
73
80
  - Rakefile
@@ -81,29 +88,27 @@ files:
81
88
  - spec/serializer_spec.rb
82
89
  homepage: ''
83
90
  licenses: []
84
- post_install_message:
91
+ metadata:
92
+ source_code_uri: https://github.com/akeem/redis-session-retrieve
93
+ post_install_message:
85
94
  rdoc_options: []
86
95
  require_paths:
87
96
  - lib
88
97
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
98
  requirements:
91
- - - ! '>='
99
+ - - ">="
92
100
  - !ruby/object:Gem::Version
93
101
  version: '0'
94
102
  required_rubygems_version: !ruby/object:Gem::Requirement
95
- none: false
96
103
  requirements:
97
- - - ! '>='
104
+ - - ">="
98
105
  - !ruby/object:Gem::Version
99
106
  version: '0'
100
107
  requirements: []
101
- rubyforge_project: redis-session-retrieve
102
- rubygems_version: 1.8.24
103
- signing_key:
104
- specification_version: 3
108
+ rubygems_version: 3.5.3
109
+ signing_key:
110
+ specification_version: 4
105
111
  summary: Retrieve sessions stored in redis by redis-store
106
112
  test_files:
107
113
  - spec/fetcher_spec.rb
108
114
  - spec/serializer_spec.rb
109
- has_rdoc: