redis-actionpack 4.0.1 → 5.0.0.pre

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: e24f124eb1b433979f43c1b13d07504e3fdda9ef
4
- data.tar.gz: 21b16d0bf1e6f95d44422da056480ebdfb2e1f96
3
+ metadata.gz: ae73781f46e805c9f3df63857412b1ef587c1bf7
4
+ data.tar.gz: d1192de50bb6b1ca64a29823e869010fce7a0937
5
5
  SHA512:
6
- metadata.gz: 48da5d2a4602784d86625ec3b353e7421d78c470a44fe56aafec6ddfd7927e67157b838889a841b05ba4ebc361e322d31e052eeebd0acd1c42a8eb6856627501
7
- data.tar.gz: 503482b12e703056b630a26b194de0344882aa4562d17283ab777b62b0fd19e4701e93ea8c3a88dc80d1228afbefea6490c72d3935a9b1ffb0bc5434d36b66b1
6
+ metadata.gz: fe43f7e714035d054b53d83365c1d2929b62939cded9e500a1f596a533cd13f11064126b2a9b9ad27ccf5535ac80eb1d99da58bd1205ecb97d31c8d94aeefad2
7
+ data.tar.gz: a4352894b37f9cc2396a3e66e00d436783102e75b3b616fda2e720f9615acc25671a8e3bef1d9b4a0d26265bd02e0c86259fb8c009e7b2a2cf768f9a809a198f
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
+ test/gemfiles/*.lock
2
3
  *.gem
3
4
  tmp/
data/.travis.yml CHANGED
@@ -1,14 +1,32 @@
1
1
  language: ruby
2
+ before_install: gem install bundler
2
3
  script: 'bundle exec rake'
3
4
  rvm:
4
5
  - 1.9.3
5
6
  - 2.0.0
7
+ - 2.1
8
+ - 2.2.4
9
+ - 2.3.0
6
10
  - ruby-head
7
- - rbx-19mode
8
11
  - jruby-19mode
9
12
  - jruby-head
10
13
 
14
+ gemfile:
15
+ - test/gemfiles/Gemfile.rails-4.0.x
16
+ - test/gemfiles/Gemfile.rails-4.1.x
17
+ - test/gemfiles/Gemfile.rails-4.2.x
18
+ - test/gemfiles/Gemfile.rails-5.0.x
19
+
11
20
  matrix:
21
+ exclude:
22
+ - rvm: 1.9.3
23
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x
24
+ - rvm: 2.0.0
25
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x
26
+ - rvm: 2.1
27
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x
28
+ - rvm: jruby-19mode
29
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x
12
30
  allow_failures:
13
31
  - rvm: jruby-head
14
32
  - rvm: ruby-head
data/Gemfile CHANGED
@@ -2,9 +2,9 @@ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  if ::File.directory?(gem_path = '../redis-store')
5
- gem 'redis-store', '~> 1.1.0', path: gem_path
5
+ gem 'redis-store', '~> 1.2.0.pre', path: gem_path
6
6
  end
7
7
 
8
8
  if ::File.directory?(gem_path = '../redis-rack')
9
- gem 'redis-rack', '~> 1.5.0', path: gem_path
9
+ gem 'redis-rack', '~> 2.0.0.pre', path: gem_path
10
10
  end
@@ -18,7 +18,12 @@ module ActionDispatch
18
18
  private
19
19
 
20
20
  def set_cookie(env, session_id, cookie)
21
- request = ActionDispatch::Request.new(env)
21
+
22
+ if env.is_a? ActionDispatch::Request
23
+ request = env
24
+ else
25
+ request = ActionDispatch::Request.new(env)
26
+ end
22
27
  request.cookie_jar[key] = cookie
23
28
  end
24
29
  end
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module ActionPack
3
- VERSION = '4.0.1'
3
+ VERSION = '5.0.0.pre'
4
4
  end
5
5
  end
@@ -19,16 +19,15 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ['lib']
21
21
 
22
- s.add_runtime_dependency 'redis-store', '~> 1.1.0'
23
- s.add_runtime_dependency 'redis-rack', '~> 1.5.0'
24
- s.add_runtime_dependency 'actionpack', '~> 4'
22
+ s.add_runtime_dependency 'redis-store', '~> 1.2.0.pre'
23
+ s.add_runtime_dependency 'redis-rack', '~> 2.0.0.pre'
24
+ s.add_runtime_dependency 'actionpack', '>= 4.0.0', '< 6'
25
25
 
26
26
  s.add_development_dependency 'rake', '~> 10'
27
27
  s.add_development_dependency 'bundler', '~> 1.3'
28
28
  s.add_development_dependency 'mocha', '~> 0.14.0'
29
- s.add_development_dependency 'minitest', '~> 4.2'
29
+ s.add_development_dependency 'minitest-spec-rails'
30
30
  s.add_development_dependency 'tzinfo'
31
- s.add_development_dependency 'mini_specunit'
32
- s.add_development_dependency 'mini_backtrace'
31
+ # s.add_development_dependency 'mini_backtrace'
33
32
  s.add_development_dependency 'redis-store-testing'
34
33
  end
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :path => './../..'
3
+
4
+ if ::File.directory?(gem_path = '../redis-store')
5
+ gem 'redis-store', '~> 1.1.0', path: gem_path
6
+ end
7
+
8
+ if ::File.directory?(gem_path = '../redis-rack')
9
+ gem 'redis-rack', '~> 1.5.0', path: gem_path
10
+ end
11
+
12
+ gem 'actionpack', '~> 4.0.0'
13
+
14
+ gem 'minitest-spec-rails', '~> 4.7'
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :path => './../..'
3
+
4
+ if ::File.directory?(gem_path = '../redis-store')
5
+ gem 'redis-store', '~> 1.1.0', path: gem_path
6
+ end
7
+
8
+ if ::File.directory?(gem_path = '../redis-rack')
9
+ gem 'redis-rack', '~> 1.5.0', path: gem_path
10
+ end
11
+
12
+ gem 'actionpack', '~> 4.1.0'
13
+
14
+ gem 'minitest-spec-rails'
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :path => './../..'
3
+
4
+ if ::File.directory?(gem_path = '../redis-store')
5
+ gem 'redis-store', '~> 1.1.0', path: gem_path
6
+ end
7
+
8
+ if ::File.directory?(gem_path = '../redis-rack')
9
+ gem 'redis-rack', '~> 1.5.0', path: gem_path
10
+ end
11
+
12
+ gem 'actionpack', '~> 4.2.0'
13
+
14
+ gem 'minitest-spec-rails'
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :path => './../..'
3
+
4
+ gem 'redis-store', github: 'redis-store/redis-store'
5
+ #if ::File.directory?(gem_path = '../redis-store')
6
+ # gem 'redis-store', '~> 1.1.0', path: gem_path
7
+ #end
8
+
9
+ gem 'redis-rack', github: 'redis-store/redis-rack'
10
+ #if ::File.directory?(gem_path = '../redis-rack')
11
+ # gem 'redis-rack', '~> 1.5.0', path: gem_path
12
+ #end
13
+
14
+ gem 'rails', '5.0.0.beta3'
15
+
16
+ gem 'minitest-spec-rails', '~> 5.3.0'
17
+
@@ -197,12 +197,12 @@ class RedisStoreIntegrationTest < ::ActionDispatch::IntegrationTest
197
197
  # from actionpack/test/abstract_unit.rb
198
198
  def self.build_app(routes = nil)
199
199
  RoutedRackApp.new(routes || ActionDispatch::Routing::RouteSet.new) do |middleware|
200
- middleware.use "ActionDispatch::DebugExceptions"
201
- middleware.use "ActionDispatch::Callbacks"
202
- middleware.use "ActionDispatch::ParamsParser"
203
- middleware.use "ActionDispatch::Cookies"
204
- middleware.use "ActionDispatch::Flash"
205
- middleware.use "Rack::Head"
200
+ middleware.use ActionDispatch::DebugExceptions
201
+ middleware.use ActionDispatch::Callbacks
202
+ middleware.use ActionDispatch::ParamsParser
203
+ middleware.use ActionDispatch::Cookies
204
+ middleware.use ActionDispatch::Flash
205
+ middleware.use Rack::Head
206
206
  yield(middleware) if block_given?
207
207
  end
208
208
  end
@@ -2,6 +2,6 @@ require 'test_helper'
2
2
 
3
3
  describe Redis::ActionPack::VERSION do
4
4
  it 'returns current version' do
5
- Redis::ActionPack::VERSION.must_equal '4.0.0'
5
+ Redis::ActionPack::VERSION.must_equal '4.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,167 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 5.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: 1.2.0.pre
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.0
26
+ version: 1.2.0.pre
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis-rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.0
33
+ version: 2.0.0.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.5.0
40
+ version: 2.0.0.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: actionpack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: '4'
47
+ version: 4.0.0
48
+ - - <
49
+ - !ruby/object:Gem::Version
50
+ version: '6'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: 4.0.0
58
+ - - <
53
59
  - !ruby/object:Gem::Version
54
- version: '4'
60
+ version: '6'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - "~>"
65
+ - - ~>
60
66
  - !ruby/object:Gem::Version
61
67
  version: '10'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - "~>"
72
+ - - ~>
67
73
  - !ruby/object:Gem::Version
68
74
  version: '10'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: bundler
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - "~>"
79
+ - - ~>
74
80
  - !ruby/object:Gem::Version
75
81
  version: '1.3'
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
- - - "~>"
86
+ - - ~>
81
87
  - !ruby/object:Gem::Version
82
88
  version: '1.3'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: mocha
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - "~>"
93
+ - - ~>
88
94
  - !ruby/object:Gem::Version
89
95
  version: 0.14.0
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - "~>"
100
+ - - ~>
95
101
  - !ruby/object:Gem::Version
96
102
  version: 0.14.0
97
103
  - !ruby/object:Gem::Dependency
98
- name: minitest
104
+ name: minitest-spec-rails
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '4.2'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '4.2'
111
- - !ruby/object:Gem::Dependency
112
- name: tzinfo
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
107
+ - - '>='
116
108
  - !ruby/object:Gem::Version
117
109
  version: '0'
118
110
  type: :development
119
111
  prerelease: false
120
112
  version_requirements: !ruby/object:Gem::Requirement
121
113
  requirements:
122
- - - ">="
114
+ - - '>='
123
115
  - !ruby/object:Gem::Version
124
116
  version: '0'
125
117
  - !ruby/object:Gem::Dependency
126
- name: mini_specunit
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: mini_backtrace
118
+ name: tzinfo
141
119
  requirement: !ruby/object:Gem::Requirement
142
120
  requirements:
143
- - - ">="
121
+ - - '>='
144
122
  - !ruby/object:Gem::Version
145
123
  version: '0'
146
124
  type: :development
147
125
  prerelease: false
148
126
  version_requirements: !ruby/object:Gem::Requirement
149
127
  requirements:
150
- - - ">="
128
+ - - '>='
151
129
  - !ruby/object:Gem::Version
152
130
  version: '0'
153
131
  - !ruby/object:Gem::Dependency
154
132
  name: redis-store-testing
155
133
  requirement: !ruby/object:Gem::Requirement
156
134
  requirements:
157
- - - ">="
135
+ - - '>='
158
136
  - !ruby/object:Gem::Version
159
137
  version: '0'
160
138
  type: :development
161
139
  prerelease: false
162
140
  version_requirements: !ruby/object:Gem::Requirement
163
141
  requirements:
164
- - - ">="
142
+ - - '>='
165
143
  - !ruby/object:Gem::Version
166
144
  version: '0'
167
145
  description: Redis session store for ActionPack
@@ -171,8 +149,8 @@ executables: []
171
149
  extensions: []
172
150
  extra_rdoc_files: []
173
151
  files:
174
- - ".gitignore"
175
- - ".travis.yml"
152
+ - .gitignore
153
+ - .travis.yml
176
154
  - Gemfile
177
155
  - MIT-LICENSE
178
156
  - README.md
@@ -191,6 +169,10 @@ files:
191
169
  - test/dummy/config/routes.rb
192
170
  - test/dummy/script/rails
193
171
  - test/fixtures/session_autoload_test/session_autoload_test/foo.rb
172
+ - test/gemfiles/Gemfile.rails-4.0.x
173
+ - test/gemfiles/Gemfile.rails-4.1.x
174
+ - test/gemfiles/Gemfile.rails-4.2.x
175
+ - test/gemfiles/Gemfile.rails-5.0.x
194
176
  - test/integration/redis_store_integration_test.rb
195
177
  - test/redis/actionpack/version_test.rb
196
178
  - test/test_helper.rb
@@ -204,17 +186,17 @@ require_paths:
204
186
  - lib
205
187
  required_ruby_version: !ruby/object:Gem::Requirement
206
188
  requirements:
207
- - - ">="
189
+ - - '>='
208
190
  - !ruby/object:Gem::Version
209
191
  version: '0'
210
192
  required_rubygems_version: !ruby/object:Gem::Requirement
211
193
  requirements:
212
- - - ">="
194
+ - - '>'
213
195
  - !ruby/object:Gem::Version
214
- version: '0'
196
+ version: 1.3.1
215
197
  requirements: []
216
198
  rubyforge_project: redis-actionpack
217
- rubygems_version: 2.4.5.1
199
+ rubygems_version: 2.5.2
218
200
  signing_key:
219
201
  specification_version: 4
220
202
  summary: Redis session store for ActionPack
@@ -229,6 +211,10 @@ test_files:
229
211
  - test/dummy/config/routes.rb
230
212
  - test/dummy/script/rails
231
213
  - test/fixtures/session_autoload_test/session_autoload_test/foo.rb
214
+ - test/gemfiles/Gemfile.rails-4.0.x
215
+ - test/gemfiles/Gemfile.rails-4.1.x
216
+ - test/gemfiles/Gemfile.rails-4.2.x
217
+ - test/gemfiles/Gemfile.rails-5.0.x
232
218
  - test/integration/redis_store_integration_test.rb
233
219
  - test/redis/actionpack/version_test.rb
234
220
  - test/test_helper.rb