xibbar
52d481d8de
* lib/cgi/session.rb: fix bug for ignore session_id option.
...
report from [ruby-core:18635], [Bug #572 ]
* lib/cgi/core.rb: use Encoding#find when encoding set.
* test/cgi/test_cgi_session.rb: test for session_id specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 12:20:13 +00:00
xibbar
8c07972702
fix for 1.8's
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-05 12:09:49 +00:00
yugui
b53d7429fc
merges r20309 from ruby_1_9_1 to trunk.
...
* test/cgi/test_cgi_session.rb (setup, teardown): uses a temporary
directory for testing session stores.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-22 12:36:19 +00:00
yugui
f2077294f1
* lib/rubygems/timer.rb: removed svn:executable.
...
* lib/rubygems/validator.rb: ditto
* test/cgi/test_cgi_modruby.rb: ditto
* test/cgi/test_cgi_multipart.rb: ditto
* test/cgi/test_cgi_session.rb: ditto: ditto
* test/cgi/testdata/file1.html: ditto
* test/cgi/testdata/small.png: ditto
* test/cgi/testdata/large.png: ditto
* test/cgi/test_cgi_core.rb: ditto
* test/cgi/test_cgi_header.rb: ditto
* test/cgi/test_cgi_cookie.rb: ditto
* test/cgi/test_cgi_tag_helper.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 15:09:21 +00:00
xibbar
9b139fe589
fix test for 1.8
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-08 15:38:48 +00:00
xibbar
4b9e885000
fix debug code
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-08 14:56:38 +00:00
xibbar
26862c00e9
* lib/cgi/session.rb (FileStore): use marshalized data.
...
* test/cgi/session_dir: add a session directory in test.
* test/cgi/test_cgi_session.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-08 14:52:59 +00:00
usa
ed276bfc89
* test_cgi_multipart.rb (_prepare): tempfile should be binmode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 02:44:09 +00:00
xibbar
b1c14f8fbb
* lib/cgi/html.rb: allow symbolized key.
...
* test/cgi/test_cgi_tag_helper.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-24 12:10:27 +00:00
xibbar
23ed2fcc31
fix test for 1.8
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-24 11:05:39 +00:00
xibbar
86560b12ee
* lib/cgi/core.rb (read_multipart): change field value as String
...
from StringIO of Tempfile when multipart parse without file field.
add files method that can uploaded files. [ruby-dev:36547]
* test/cgi/test_cgi_multipart.rb: fix the test for core.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-24 07:25:53 +00:00
xibbar
e46482f3d3
fix test of multipart
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-20 14:16:54 +00:00
xibbar
ddf88ea80b
* lib/cgi/core.rb (CGI::QueryExtension::initialize_query): fix the
...
condition.
* test/cgi/test_cgi_core.rb: bug fix encoding.
thaks to TAKANO Mitsuhiro <takano32 at jus.or.jp> .
* test/cgi/test_cgi_multipart.rb: temporary comment in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-06 07:53:58 +00:00
xibbar
10e9b63806
* lib/cgi/core.rb (CGI::QueryExtension): delete MorphingBody
...
and replace like as 1.8's in multipart reading.
see [ruby-dev:36443],
reference from CGIAlt http://cgialt.rubyforge.org/
* test/cgi/test_cgi_multipart.rb : fixed multipart test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-02 12:37:30 +00:00
xibbar
9acff4872d
* lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):
...
can specify the false as checked or selected value.
[ruby-core:18306], [ruby-core:18307]
* test/cgi/test_cgi_tag_helper.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 15:41:12 +00:00
xibbar
645a0eb8ec
add a test
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 14:55:59 +00:00
xibbar
0f6375be69
* test/cgi/test_cgi_multipart.rb : revert last change.
...
( deprecated is assert_raises. )
* test/cgi/test_cgi_core.rb : ditto.
* test/cgi/test_cgi_header.rb : ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 14:43:05 +00:00
xibbar
3c419de10b
* lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :
...
accept parameters either in a hash,
string as a block. add the encoding validation process.
* test/cgi/test_cgi_core.rb : test for query encoding check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 14:27:53 +00:00
xibbar
2798319088
* test/cgi/test_cgi_multipart.rb : test for miniunit.
...
* test/cgi/test_cgi_core.rb : ditto.
* test/cgi/test_cgi_header.rb : ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 06:25:44 +00:00
xibbar
4ac4e2fbc4
* lib/cgi/html.rb (checkbox_group,radio_group): bug fix
...
use size instead of bytesize.
* test/cgi/test_cgi_tag_helper.rb: test for checkbox_group,radio_group.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-17 04:49:28 +00:00
xibbar
49f69c3f2e
* lib/cgi/core.rb: performance improvement.
...
From CGIAlt http://cgialt.rubyforge.org/
* test/cgi/test_cgi_header.rb: exception class fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-16 13:30:05 +00:00
xibbar
52945b0d28
* test/cgi/test_cgi_tag_helper.rb : fix class name
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-08 14:27:37 +00:00
naruse
283e57e328
* test/cgi/test_cgi_multipart.rb: add test for multipart.
...
Patch by Takeyuki Fujioka. [ruby-dev:36014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-28 00:30:40 +00:00
naruse
692395b81f
* test/cgi/test_cgi_modruby.rb: add test for mod_ruby adaptor.
...
Patch by Takeyuki Fujioka. [ruby-dev:36013]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-28 00:22:57 +00:00
naruse
f30670001b
* test/cgi/test_cgi_header.rb: add test for CGI::Header.
...
Patch by Takeyuki Fujioka. [ruby-dev:36010] [ruby-dev:36011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-28 00:19:26 +00:00
nobu
e2db51b2cd
properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27 23:09:26 +00:00
naruse
4c88439a94
* test/cgi/test_cgi_core.rb: add core test.
...
Patch by Takeyuki Fujioka. [ruby-dev:36001] [ruby-dev:36002]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27 05:49:28 +00:00
naruse
19b25eb670
* lib/cgi.rb (CGI::Cookie): remove delagate.
...
* test/cgi/test_cgi_cookie.rb: added for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27 01:38:23 +00:00
naruse
990ffbb96a
* test/cgi/test_cgi_tag_helper.rb: add more tests for html3.
...
Patch by Takeyuki Fujioka. [ruby-dev:35975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-26 07:18:35 +00:00
naruse
8ec7dce8c5
* test/cgi/test_cgi_tag_helper.rb: added by Takeyuki Fujioka.
...
[ruby-dev:35971]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-26 02:55:43 +00:00