egalite 1.5.10 → 1.5.11
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 -7
- data/.gitignore +17 -17
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/Rakefile +1 -1
- data/egalite.gemspec +24 -24
- data/lib/egalite/version.rb +1 -1
- data/lib/egalite.rb +1 -1
- data/test/test_handler.rb +14 -0
- metadata +59 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fe5255732f5d703cfb46475c6ebc51672236d996
|
4
|
+
data.tar.gz: 76e007da6bcc16dfe1187a9c1f3a9a61837babff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e2a9545feeb3b4a72839f766480fe83e114b12a7b886e906d156fef355ee85d276bda78d428e66cbde9e267c820fa26240174993c5434b4295bd64432a837665
|
7
|
+
data.tar.gz: cf7b017f2ba1e551d919820c996bb6aafb19c25f261ff335c3d62077fa62d4ef4ac0f94c32a358aa5805d702a5384fd92e3cbbfcccb3625054f8146585257ac2
|
data/.gitignore
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in egalite.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in egalite.gemspec
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
Copyright (c) 2013 Shunichi Arai
|
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.
|
1
|
+
Copyright (c) 2013 Shunichi Arai
|
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/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/gem_tasks"
|
data/egalite.gemspec
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'egalite/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "egalite"
|
8
|
-
spec.version = Egalite::VERSION
|
9
|
-
spec.authors = ["Shunichi Arai"]
|
10
|
-
spec.email = ["arai@mellowtone.co.jp"]
|
11
|
-
spec.description = %q{Egalite - yet another web application framework. see description at https://github.com/araipiyo/egalite}
|
12
|
-
spec.summary = %q{Egalite - yet another web application framework.}
|
13
|
-
spec.homepage = "https://github.com/araipiyo/egalite"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_dependency "rack"
|
24
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'egalite/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "egalite"
|
8
|
+
spec.version = Egalite::VERSION
|
9
|
+
spec.authors = ["Shunichi Arai"]
|
10
|
+
spec.email = ["arai@mellowtone.co.jp"]
|
11
|
+
spec.description = %q{Egalite - yet another web application framework. see description at https://github.com/araipiyo/egalite}
|
12
|
+
spec.summary = %q{Egalite - yet another web application framework.}
|
13
|
+
spec.homepage = "https://github.com/araipiyo/egalite"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_dependency "rack"
|
24
|
+
end
|
data/lib/egalite/version.rb
CHANGED
data/lib/egalite.rb
CHANGED
data/test/test_handler.rb
CHANGED
@@ -40,6 +40,9 @@ class TestController < Egalite::Controller
|
|
40
40
|
@log_values = [1,2,3]
|
41
41
|
"accesslog"
|
42
42
|
end
|
43
|
+
def location
|
44
|
+
redirect params[:url]
|
45
|
+
end
|
43
46
|
private
|
44
47
|
def priv
|
45
48
|
"private!"
|
@@ -119,6 +122,17 @@ class T_Handler < Test::Unit::TestCase
|
|
119
122
|
assert last_response.ok?
|
120
123
|
assert last_response.body =~ /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/
|
121
124
|
end
|
125
|
+
def test_redirect
|
126
|
+
post "/test/location", {:url => "/test"}
|
127
|
+
assert last_response.redirect?
|
128
|
+
assert_equal "/test", last_response.headers['location']
|
129
|
+
post "/test/location", {:url => "http://example.com/test"}
|
130
|
+
assert last_response.redirect?
|
131
|
+
assert_equal "http://example.com/test", last_response.headers['location']
|
132
|
+
post "/test/location", {:url => "/foo\nbar"}
|
133
|
+
assert last_response.redirect?
|
134
|
+
assert_equal "/foo%0Abar", last_response.headers['location']
|
135
|
+
end
|
122
136
|
def test_accesslog
|
123
137
|
io = StringIO.new
|
124
138
|
Egalite::AccessLogger.io = io
|
metadata
CHANGED
@@ -1,56 +1,65 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: egalite
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.11
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Shunichi Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
version: "1.3"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
22
20
|
type: :development
|
23
|
-
version_requirements: *id001
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: rake
|
26
21
|
prerelease: false
|
27
|
-
|
28
|
-
requirements:
|
29
|
-
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
33
34
|
type: :development
|
34
|
-
version_requirements: *id002
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rack
|
37
35
|
prerelease: false
|
38
|
-
|
39
|
-
requirements:
|
40
|
-
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rack
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
41
48
|
type: :runtime
|
42
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
43
55
|
description: Egalite - yet another web application framework. see description at https://github.com/araipiyo/egalite
|
44
|
-
email:
|
56
|
+
email:
|
45
57
|
- arai@mellowtone.co.jp
|
46
58
|
executables: []
|
47
|
-
|
48
59
|
extensions: []
|
49
|
-
|
50
60
|
extra_rdoc_files: []
|
51
|
-
|
52
|
-
|
53
|
-
- .gitignore
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
54
63
|
- Gemfile
|
55
64
|
- LICENSE.txt
|
56
65
|
- README.md
|
@@ -124,29 +133,30 @@ files:
|
|
124
133
|
- test/test_stringify_hash.rb
|
125
134
|
- test/test_template.rb
|
126
135
|
homepage: https://github.com/araipiyo/egalite
|
127
|
-
licenses:
|
136
|
+
licenses:
|
128
137
|
- MIT
|
129
138
|
metadata: {}
|
130
|
-
|
131
139
|
post_install_message:
|
132
140
|
rdoc_options: []
|
133
|
-
|
134
|
-
require_paths:
|
141
|
+
require_paths:
|
135
142
|
- lib
|
136
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
-
requirements:
|
138
|
-
-
|
139
|
-
|
140
|
-
|
141
|
-
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
142
153
|
requirements: []
|
143
|
-
|
144
154
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.2.2
|
146
156
|
signing_key:
|
147
157
|
specification_version: 4
|
148
158
|
summary: Egalite - yet another web application framework.
|
149
|
-
test_files:
|
159
|
+
test_files:
|
150
160
|
- test/cache.html
|
151
161
|
- test/cache_cache.html
|
152
162
|
- test/cache_nocache.html
|
@@ -175,4 +185,3 @@ test_files:
|
|
175
185
|
- test/test_session.rb
|
176
186
|
- test/test_stringify_hash.rb
|
177
187
|
- test/test_template.rb
|
178
|
-
has_rdoc:
|