Nobuyoshi Nakada
45454bdb8b
Prefer Regexp#=~ to Regexp#match when the RHS may be nil
2019-08-19 16:39:42 +09:00
ohbarye
b1678338e5
Fix typo: duplicated the [skip-ci]
2019-08-09 16:23:49 -07:00
Semyon Pupkov
4173258fd0
change call CGI methods from :: to .
...
Closes: https://github.com/ruby/ruby/pull/1749
2019-08-04 09:19:30 +09:00
marcandre
e859e668d2
lib/*: Prefer require_relative over require.
...
[#15206 ] [Fix GH-1976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 17:52:33 +00:00
kazu
fbd5cda6aa
{lib,test}/cgi: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-18 05:52:16 +00:00
naruse
5f33c6b0f5
* lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791 ]
...
* lib/webrick/cookie.rb (parse): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-27 03:17:47 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
nobu
228cfd02d5
cookie.rb: revert part of r50496
...
* lib/cgi/cookie.rb (CGI::Cookie#secure): revert part of r50496,
which is irrelevant to GH-887, as the document states that the
argument must be a boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-15 08:59:33 +00:00
xibbar
a4344cb5b4
* lib/cgi/cookie.rb: Implement HttpOnly flag for cookies.
...
[fix GH-887] Patch by @martinpovolny
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-14 23:27:01 +00:00
nobu
5d071fe381
cookie.rb: trailing comma
...
* lib/cgi/cookie.rb: add trailing comma for further lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-29 13:22:34 +00:00
xibbar
7a8a7864b1
* lib/cgi/cookie.rb (inspect): add inspect for debug.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 02:38:32 +00:00
xibbar
1f12e40736
* lib/cgi/cookie.rb: refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-18 23:47:07 +00:00
xibbar
1f2c3b8aa3
* lib/cgi/cookie.rb(CGI::Cookie.parse): add require
...
for standalone require 'cgi/cookie' .[Bug #7997 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-18 23:38:24 +00:00
drbrain
34276148c4
* lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon.
...
[Ruby 1.9 - Bug #4733 ]
* lib/cgi/core.rb: ditto
* lib/cgi/cookie.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:07:13 +00:00
drbrain
e60f744e9a
* lib/cgi.rb: Add toplevel documentation to class CGI
...
* lib/cgi/session.rb: Add overview documentation to CGI::Cookie
* lib/cgi/html.rb: Don't add CGI::TagMaker documentation to CGI.
Patch by David Copeland. [Ruby 1.9 - Bug #4704 ]
* lib/cgi/core.rb: Clean up CGI documentation. Patch by David
Copeland. [Ruby 1.9 - Bug #4704 ]
* lib/cgi/cookie.rb: Clean up CGI::Cookie documentation. Patch by
David Copeland. [Ruby 1.9 - Bug #4704 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-16 21:21:35 +00:00
naruse
e41936441b
Surpress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-06 03:01:52 +00:00
xibbar
0e260ef122
* lib/cgi/cookie.rb: add default value to @@accept_charset
...
if have not defined. [ruby-dev:38987]
* lib/cgi/util.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 13:25:49 +00:00
nobu
970ec9c02d
* lib/cgi/cookie.rb: fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-20 07:27:41 +00:00
marcandre
5904f64dbf
* lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the cookie itself. Based on a patch by Arthur Schreiber [ruby-core:17634]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 22:36:45 +00:00
xibbar
1976ef38a7
* lib/cgi/util.rb (CGI::unescape): support encoding option.
...
* lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 05:34:02 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
xibbar
0bedb3e5b1
* lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvement
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 01:36:31 +00:00
xibbar
0bbda39758
* lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-09 13:09:56 +00:00