cgi 0.3.6 → 0.4.0

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
  SHA256:
3
- metadata.gz: ef7c6fbc3fed4edb75963f96b0b7a150dca2d296730f28eb42844e7582f73ddb
4
- data.tar.gz: 6dff4891d8e6b75480346969bef5efd4e33c323a8e6dbe2196e07abf5d4b4366
3
+ metadata.gz: 91a0df1762833f2d7c503deccc1e86b6cffa58d0d6d62b2ad9e7f23028e64814
4
+ data.tar.gz: 976bd5f43d64516971518aa8ebf148926cf0d3551c5cade9e6ca00c4029dee02
5
5
  SHA512:
6
- metadata.gz: 4b6abc351ceaf68ededa9d590fdd7adfb1fe8b32d4818128be7fb10867788cf32de65ea5d11cd4d7a38dc1a4adf19c1faee1b6a3689aeccea943178d18b09f8d
7
- data.tar.gz: 1d805aede830aabc0c7d7ca577d8bd2bca541956d37cadeda9262a5e5ee01af5d940d4e135b907deadc16d20ef5a8357b2d4bb8817fc4241491f8305030e3d2e
6
+ metadata.gz: 9a658383c76a8565b93331ed42d8c654b437357cc0218f22a8390f8e32180dcd99a4e8ff398e46d80b7d7d0ed9f0e44100a8b842bb9cbfd3afce7fda878f7281
7
+ data.tar.gz: 6915a86235360d47c6ed2cf3c53232425675dbd551829c59aff8190731e298eec6d81fc7846424fd5fa3cd5b75624199ee1c85fff2fcefc147facb901d8e1be3
@@ -1,3 +1,7 @@
1
1
  require 'mkmf'
2
2
 
3
- create_makefile 'cgi/escape'
3
+ if RUBY_ENGINE == 'truffleruby'
4
+ File.write("Makefile", dummy_makefile($srcdir).join(""))
5
+ else
6
+ create_makefile 'cgi/escape'
7
+ end
data/lib/cgi/session.rb CHANGED
@@ -279,7 +279,7 @@ class CGI
279
279
  # fields are surrounded by a <fieldset> tag in HTML 4 generation, which
280
280
  # is _not_ invisible on many browsers; you may wish to disable the
281
281
  # use of fieldsets with code similar to the following
282
- # (see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/37805)
282
+ # (see https://blade.ruby-lang.org/ruby-list/37805)
283
283
  #
284
284
  # cgi = CGI.new("html4")
285
285
  # class << cgi
data/lib/cgi/util.rb CHANGED
@@ -36,7 +36,7 @@ module CGI::Util
36
36
 
37
37
  # URL-encode a string following RFC 3986
38
38
  # Space characters (+" "+) are encoded with (+"%20"+)
39
- # url_encoded_string = CGI.escape("'Stop!' said Fred")
39
+ # url_encoded_string = CGI.escapeURIComponent("'Stop!' said Fred")
40
40
  # # => "%27Stop%21%27%20said%20Fred"
41
41
  def escapeURIComponent(string)
42
42
  encoding = string.encoding
@@ -48,7 +48,7 @@ module CGI::Util
48
48
  end
49
49
 
50
50
  # URL-decode a string following RFC 3986 with encoding(optional).
51
- # string = CGI.unescape("%27Stop%21%27+said%20Fred")
51
+ # string = CGI.unescapeURIComponent("%27Stop%21%27+said%20Fred")
52
52
  # # => "'Stop!'+said Fred"
53
53
  def unescapeURIComponent(string, encoding = @@accept_charset)
54
54
  str = string.b
@@ -90,9 +90,12 @@ module CGI::Util
90
90
  end
91
91
  end
92
92
 
93
- begin
94
- require 'cgi/escape'
95
- rescue LoadError
93
+ # TruffleRuby runs the pure-Ruby variant faster, do not use the C extension there
94
+ unless RUBY_ENGINE == 'truffleruby'
95
+ begin
96
+ require 'cgi/escape'
97
+ rescue LoadError
98
+ end
96
99
  end
97
100
 
98
101
  # Unescape a string that has been HTML-escaped
data/lib/cgi.rb CHANGED
@@ -288,7 +288,7 @@
288
288
  #
289
289
 
290
290
  class CGI
291
- VERSION = "0.3.6"
291
+ VERSION = "0.4.0"
292
292
  end
293
293
 
294
294
  require 'cgi/core'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cgi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-28 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Support for the Common Gateway Interface protocol.
14
14
  email:
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubygems_version: 3.4.0.dev
55
+ rubygems_version: 3.5.0.dev
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Support for the Common Gateway Interface protocol.