rack-session-php 0.0.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 +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +47 -0
- data/Rakefile +6 -0
- data/examples/config.ru +11 -0
- data/lib/rack/session/php.rb +67 -0
- data/rack-session-php.gemspec +25 -0
- data/spec/rack/session/php_spec.rb +206 -0
- data/spec/session_files/.gitkeep +0 -0
- data/spec/spec_helper.rb +1 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e9746184f83319cea7aec8a657f3e12cd5745e2a
|
4
|
+
data.tar.gz: 207bd0a0470851de002decc427f615731ddc4eaf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 210cace6152f7e73ca737324f447ca67c025ad2829614f178d27cacd1725e471664ca13f200a303654c76ca852b07df7cf935920d089455450f76b5fd4ae5faf
|
7
|
+
data.tar.gz: 72ea19019221571e1c9719d2282f04689eb586bb7be611ca9219e60f046487ef35d6bb3ce76332ad9780cff74635c6e62cf96a20530c3cfb9dbd36630965db50
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Shinpei Maruyama
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Rack::Session::PHP
|
2
|
+
[](https://travis-ci.org/Shinpeim/rack-session-php)
|
3
|
+
|
4
|
+
This module provides PHP compatible session in rack layer.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
gem 'rack-session-php'
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle install
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install rack-session-php
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
In your config.ru
|
23
|
+
|
24
|
+
```
|
25
|
+
require 'rack/session/php'
|
26
|
+
|
27
|
+
use Rack::Session::PHP, {
|
28
|
+
:session_file_dir => "/path/to/your/session_files"
|
29
|
+
:file_options => {
|
30
|
+
:internal_encoding => 'UTF-8', # encoding in ruby is utf-8
|
31
|
+
:external_encoding => 'EUC-JP',# encoding in session file is euc-jp
|
32
|
+
:encoding_option => {:undef => :replace}, # option passed to String#encode
|
33
|
+
}
|
34
|
+
:expire_after => 10,
|
35
|
+
# and you can pass Rack::Session options.
|
36
|
+
}
|
37
|
+
|
38
|
+
run your_awsome_rack_application
|
39
|
+
```
|
40
|
+
|
41
|
+
## Contributing
|
42
|
+
|
43
|
+
1. Fork it
|
44
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
45
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
46
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
47
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/examples/config.ru
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'rack/session/php'
|
2
|
+
|
3
|
+
app = lambda {|env|
|
4
|
+
env["rack.session"]["counter"] ||= 0
|
5
|
+
env["rack.session"]["counter"] += 1
|
6
|
+
Rack::Response.new(env["rack.session"].inspect).to_a
|
7
|
+
}
|
8
|
+
|
9
|
+
use Rack::Session::PHP, :session_file_dir => Dir.tmpdir
|
10
|
+
|
11
|
+
run app
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require "rack/session/abstract/id"
|
2
|
+
require "php_session"
|
3
|
+
|
4
|
+
module Rack
|
5
|
+
module Session
|
6
|
+
class PHP < Rack::Session::Abstract::ID
|
7
|
+
def initialize(app, options = {})
|
8
|
+
@session_file_dir = options.delete(:session_file_dir)
|
9
|
+
raise "session file dir must be defined" unless @session_file_dir
|
10
|
+
|
11
|
+
file_options = options.delete(:file_options)
|
12
|
+
file_options ||= {}
|
13
|
+
|
14
|
+
@session = PHPSession.new(@session_file_dir, file_options)
|
15
|
+
@mutex = Mutex.new
|
16
|
+
|
17
|
+
super(app, options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def generate_sid
|
21
|
+
loop do
|
22
|
+
sid = super
|
23
|
+
break sid unless ::File.exists?(::File.join(@session_file_dir, "sess_#{sid}"))
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_session(env, sid)
|
28
|
+
with_lock(env) do
|
29
|
+
if sid
|
30
|
+
data = @session.load(sid)
|
31
|
+
else
|
32
|
+
data = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
if sid.nil? || data.empty?
|
36
|
+
sid = generate_sid
|
37
|
+
end
|
38
|
+
|
39
|
+
[sid, data]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def set_session(env, sid, session, options)
|
44
|
+
with_lock(env) do
|
45
|
+
@session.save(sid, session)
|
46
|
+
sid
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def destroy_session(env, sid, options)
|
51
|
+
with_lock(env) do
|
52
|
+
@session.destroy(sid)
|
53
|
+
generate_sid unless options[:drop]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
private
|
58
|
+
|
59
|
+
def with_lock(env, default=nil)
|
60
|
+
@mutex.lock if env['rack.multithread']
|
61
|
+
yield
|
62
|
+
ensure
|
63
|
+
@mutex.unlock if @mutex.locked?
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "rack-session-php"
|
7
|
+
spec.version = "0.0.1"
|
8
|
+
spec.authors = ["Shinpei Maruyama"]
|
9
|
+
spec.email = ["shinpeim@gmail.com"]
|
10
|
+
spec.description = %q{rack middleware which provides php compatible sessions}
|
11
|
+
spec.summary = %q{rack middleware which provides php compatible sessions. multibyte string is supported.}
|
12
|
+
spec.homepage = "https://github.com/Shinpeim/rack-session-php"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency "php_session", "~> 0.3.0"
|
21
|
+
spec.add_dependency "rack", "~> 1.5.2"
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
23
|
+
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rspec"
|
25
|
+
end
|
@@ -0,0 +1,206 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'rack/session/php'
|
4
|
+
require 'rack/lint'
|
5
|
+
require 'rack/mock'
|
6
|
+
require 'tempfile'
|
7
|
+
|
8
|
+
describe Rack::Session::PHP do
|
9
|
+
session_key = Rack::Session::PHP::DEFAULT_OPTIONS[:key]
|
10
|
+
session_match = /#{session_key}=([0-9a-fA-F]+);/
|
11
|
+
incrementor = lambda do |env|
|
12
|
+
env["rack.session"]["counter"] ||= 0
|
13
|
+
env["rack.session"]["counter"] += 1
|
14
|
+
Rack::Response.new(env["rack.session"].inspect).to_a
|
15
|
+
end
|
16
|
+
drop_session = Rack::Lint.new(proc do |env|
|
17
|
+
env['rack.session.options'][:drop] = true
|
18
|
+
incrementor.call(env)
|
19
|
+
end)
|
20
|
+
renew_session = Rack::Lint.new(proc do |env|
|
21
|
+
env['rack.session.options'][:renew] = true
|
22
|
+
incrementor.call(env)
|
23
|
+
end)
|
24
|
+
defer_session = Rack::Lint.new(proc do |env|
|
25
|
+
env['rack.session.options'][:defer] = true
|
26
|
+
incrementor.call(env)
|
27
|
+
end)
|
28
|
+
skip_session = Rack::Lint.new(proc do |env|
|
29
|
+
env['rack.session.options'][:skip] = true
|
30
|
+
incrementor.call(env)
|
31
|
+
end)
|
32
|
+
incrementor = Rack::Lint.new(incrementor)
|
33
|
+
|
34
|
+
let(:session_file_dir) {File.join(File.dirname(__FILE__), "..", "..", "session_files")}
|
35
|
+
let(:pool) {
|
36
|
+
Rack::Session::PHP.new(incrementor, :session_file_dir => session_file_dir)
|
37
|
+
}
|
38
|
+
|
39
|
+
after do
|
40
|
+
Dir.foreach(session_file_dir) do |file|
|
41
|
+
File.delete(File.join(session_file_dir, file)) if file =~ /^sess/
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
it "creates a new cookie" do
|
46
|
+
res = Rack::MockRequest.new(pool).get("/")
|
47
|
+
expect(res["Set-Cookie"]).to be_include("#{session_key}=")
|
48
|
+
expect(res.body).to eq '{"counter"=>1}'
|
49
|
+
end
|
50
|
+
|
51
|
+
it "determines session from a cookie" do
|
52
|
+
req = Rack::MockRequest.new(pool)
|
53
|
+
res = req.get("/")
|
54
|
+
cookie = res["Set-Cookie"]
|
55
|
+
expect(req.get("/", "HTTP_COOKIE" => cookie).body).
|
56
|
+
to eq '{"counter"=>2}'
|
57
|
+
expect(req.get("/", "HTTP_COOKIE" => cookie).body).
|
58
|
+
to eq '{"counter"=>3}'
|
59
|
+
end
|
60
|
+
|
61
|
+
it "determines session only from a cookie by default" do
|
62
|
+
req = Rack::MockRequest.new(pool)
|
63
|
+
res = req.get("/")
|
64
|
+
sid = res["Set-Cookie"][session_match, 1]
|
65
|
+
expect(req.get("/?rack.session=#{sid}").body).
|
66
|
+
to eq '{"counter"=>1}'
|
67
|
+
expect(req.get("/?rack.session=#{sid}").body).
|
68
|
+
to eq '{"counter"=>1}'
|
69
|
+
end
|
70
|
+
|
71
|
+
it "determines session from params" do
|
72
|
+
pool_with_params = Rack::Session::PHP.new(incrementor, :session_file_dir => session_file_dir, :cookie_only => false)
|
73
|
+
req = Rack::MockRequest.new(pool_with_params)
|
74
|
+
res = req.get("/")
|
75
|
+
sid = res["Set-Cookie"][session_match, 1]
|
76
|
+
expect(req.get("/?rack.session=#{sid}").body).
|
77
|
+
to eq '{"counter"=>2}'
|
78
|
+
expect(req.get("/?rack.session=#{sid}").body).
|
79
|
+
to eq '{"counter"=>3}'
|
80
|
+
end
|
81
|
+
|
82
|
+
it "survives nonexistant cookies" do
|
83
|
+
bad_session_id = "nekodaisuki"
|
84
|
+
bad_cookie = "rack.session=#{bad_session_id}"
|
85
|
+
res = Rack::MockRequest.new(pool).
|
86
|
+
get("/", "HTTP_COOKIE" => bad_cookie)
|
87
|
+
expect(res.body).to eq '{"counter"=>1}'
|
88
|
+
cookie = res["Set-Cookie"][session_match]
|
89
|
+
expect(cookie).not_to match(/#{bad_cookie}/)
|
90
|
+
end
|
91
|
+
|
92
|
+
it "does not send the same session id if it did not change" do
|
93
|
+
req = Rack::MockRequest.new(pool)
|
94
|
+
|
95
|
+
res0 = req.get("/")
|
96
|
+
cookie = res0["Set-Cookie"][session_match]
|
97
|
+
expect(res0.body).to eq '{"counter"=>1}'
|
98
|
+
|
99
|
+
res1 = req.get("/", "HTTP_COOKIE" => cookie)
|
100
|
+
expect(res1["Set-Cookie"]).to be_nil
|
101
|
+
expect(res1.body).to eq '{"counter"=>2}'
|
102
|
+
|
103
|
+
res2 = req.get("/", "HTTP_COOKIE" => cookie)
|
104
|
+
expect(res2["Set-Cookie"]).to be_nil
|
105
|
+
expect(res2.body).to eq '{"counter"=>3}'
|
106
|
+
end
|
107
|
+
|
108
|
+
it "deletes cookies with :drop option" do
|
109
|
+
req = Rack::MockRequest.new(pool)
|
110
|
+
drop = Rack::Utils::Context.new(pool, drop_session)
|
111
|
+
dreq = Rack::MockRequest.new(drop)
|
112
|
+
|
113
|
+
res1 = req.get("/")
|
114
|
+
session = (cookie = res1["Set-Cookie"])[session_match]
|
115
|
+
expect(res1.body).to eq '{"counter"=>1}'
|
116
|
+
|
117
|
+
res2 = dreq.get("/", "HTTP_COOKIE" => cookie)
|
118
|
+
expect(res2["Set-Cookie"]).to be_nil
|
119
|
+
expect(res2.body).to eq '{"counter"=>2}'
|
120
|
+
|
121
|
+
res3 = req.get("/", "HTTP_COOKIE" => cookie)
|
122
|
+
expect(res3["Set-Cookie"][session_match]).not_to eq session
|
123
|
+
expect(res3.body).to eq '{"counter"=>1}'
|
124
|
+
end
|
125
|
+
|
126
|
+
it "provides new session id with :renew option" do
|
127
|
+
req = Rack::MockRequest.new(pool)
|
128
|
+
renew = Rack::Utils::Context.new(pool, renew_session)
|
129
|
+
rreq = Rack::MockRequest.new(renew)
|
130
|
+
|
131
|
+
res1 = req.get("/")
|
132
|
+
session = (cookie = res1["Set-Cookie"])[session_match]
|
133
|
+
expect(res1.body).to eq '{"counter"=>1}'
|
134
|
+
|
135
|
+
res2 = rreq.get("/", "HTTP_COOKIE" => cookie)
|
136
|
+
new_cookie = res2["Set-Cookie"]
|
137
|
+
new_session = new_cookie[session_match]
|
138
|
+
expect(new_session).not_to eq session
|
139
|
+
expect(res2.body).to eq '{"counter"=>2}'
|
140
|
+
|
141
|
+
res3 = req.get("/", "HTTP_COOKIE" => new_cookie)
|
142
|
+
expect(res3.body).to eq '{"counter"=>3}'
|
143
|
+
|
144
|
+
# Old cookie was deleted
|
145
|
+
res4 = req.get("/", "HTTP_COOKIE" => cookie)
|
146
|
+
expect(res4.body).to eq '{"counter"=>1}'
|
147
|
+
end
|
148
|
+
|
149
|
+
it "omits cookie with :defer option but still updates the state" do
|
150
|
+
count = Rack::Utils::Context.new(pool, incrementor)
|
151
|
+
defer = Rack::Utils::Context.new(pool, defer_session)
|
152
|
+
dreq = Rack::MockRequest.new(defer)
|
153
|
+
creq = Rack::MockRequest.new(count)
|
154
|
+
|
155
|
+
res0 = dreq.get("/")
|
156
|
+
expect(res0["Set-Cookie"]).to be_nil
|
157
|
+
expect(res0.body).to eq '{"counter"=>1}'
|
158
|
+
|
159
|
+
res0 = creq.get("/")
|
160
|
+
res1 = dreq.get("/", "HTTP_COOKIE" => res0["Set-Cookie"])
|
161
|
+
expect(res1.body).to eq '{"counter"=>2}'
|
162
|
+
res2 = dreq.get("/", "HTTP_COOKIE" => res0["Set-Cookie"])
|
163
|
+
expect(res2.body).to eq '{"counter"=>3}'
|
164
|
+
end
|
165
|
+
|
166
|
+
it "omits cookie and state update with :skip option" do
|
167
|
+
count = Rack::Utils::Context.new(pool, incrementor)
|
168
|
+
skip = Rack::Utils::Context.new(pool, skip_session)
|
169
|
+
sreq = Rack::MockRequest.new(skip)
|
170
|
+
creq = Rack::MockRequest.new(count)
|
171
|
+
|
172
|
+
res0 = sreq.get("/")
|
173
|
+
expect(res0["Set-Cookie"]).to be_nil
|
174
|
+
expect(res0.body).to eq '{"counter"=>1}'
|
175
|
+
|
176
|
+
res0 = creq.get("/")
|
177
|
+
res1 = sreq.get("/", "HTTP_COOKIE" => res0["Set-Cookie"])
|
178
|
+
expect(res1.body).to eq '{"counter"=>2}'
|
179
|
+
res2 = sreq.get("/", "HTTP_COOKIE" => res0["Set-Cookie"])
|
180
|
+
expect(res2.body).to eq '{"counter"=>2}'
|
181
|
+
end
|
182
|
+
|
183
|
+
it "can handle multibyte strings" do
|
184
|
+
multibyte_app = lambda{|env|
|
185
|
+
env['rack.session']['key'] = 'テスト'
|
186
|
+
[200, {}, 'session stored']
|
187
|
+
}
|
188
|
+
pool = Rack::Session::PHP.new(multibyte_app, {
|
189
|
+
:session_file_dir => session_file_dir,
|
190
|
+
:file_options => {
|
191
|
+
:internal_encoding => "UTF-8",
|
192
|
+
:external_encoding => "EUC-JP",
|
193
|
+
}
|
194
|
+
})
|
195
|
+
|
196
|
+
req = Rack::MockRequest.new(pool)
|
197
|
+
res = req.get("/")
|
198
|
+
session_id = session_match.match(res["Set-Cookie"])[1]
|
199
|
+
|
200
|
+
file_name = File.join(session_file_dir, "sess_#{session_id}")
|
201
|
+
|
202
|
+
# read as byte sequence
|
203
|
+
byteseq = IO.read(file_name, File.size(file_name))
|
204
|
+
expect(byteseq.force_encoding('EUC-JP')).to eq('key|s:6:"テスト";'.encode('EUC-JP'))
|
205
|
+
end
|
206
|
+
end
|
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "rack/session/php"
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rack-session-php
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shinpei Maruyama
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: php_session
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.3.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: rack middleware which provides php compatible sessions
|
84
|
+
email:
|
85
|
+
- shinpeim@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- .rspec
|
92
|
+
- .travis.yml
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- examples/config.ru
|
98
|
+
- lib/rack/session/php.rb
|
99
|
+
- rack-session-php.gemspec
|
100
|
+
- spec/rack/session/php_spec.rb
|
101
|
+
- spec/session_files/.gitkeep
|
102
|
+
- spec/spec_helper.rb
|
103
|
+
homepage: https://github.com/Shinpeim/rack-session-php
|
104
|
+
licenses:
|
105
|
+
- MIT
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
requirements: []
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 2.0.0
|
124
|
+
signing_key:
|
125
|
+
specification_version: 4
|
126
|
+
summary: rack middleware which provides php compatible sessions. multibyte string
|
127
|
+
is supported.
|
128
|
+
test_files:
|
129
|
+
- spec/rack/session/php_spec.rb
|
130
|
+
- spec/session_files/.gitkeep
|
131
|
+
- spec/spec_helper.rb
|