cgi 0.3.6-java → 0.4.1-java

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.

Potentially problematic release.


This version of cgi might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e05ee42fa348eb5b13b28e4324e12835e8d81dabbacd324f4c78d9e98e0e27f7
4
- data.tar.gz: 977e68e4e6cb3ecc1434324b131b359c0fc1be2ccc306cc8876f8e94fe394daa
3
+ metadata.gz: 7c3e82cf818cce6560f74ea438dd0f50adbca21a5a8198b6249edb14a23fa615
4
+ data.tar.gz: afed8f5eaab2258db2af2bfe355e174cf32181a12c523f86144d414fdfecd7ca
5
5
  SHA512:
6
- metadata.gz: c965a5b3b2c3187d4d9b45223f26ca37f7919ba99253ecb8ba20fcae8e368121c70421283f1c3fce4cfa23549da9c064ee221c85c4a1660d075e8a0a54b395df
7
- data.tar.gz: c5a55ab4134a59c91f5c55c693cb81cb94dec96bff6e69b506cff35595b344007e222c2cf3ad46b1fe06e09a3977eb11816ceb804c4be9269559745f0ce5fcc6
6
+ metadata.gz: 26d00d5328b3debb75ac22ab775e38d63f478faef992bbd68b4f1fe2a5198b96aac17f82731a643f0398f065039b26baf954f552a28ff0297315346a1a1215ff
7
+ data.tar.gz: 867528e96acaa9a07a13179bc885cd81e1bcf6c18219e414f27d17219ff179d3c6b9c622c25cc48d5ff493e17352de342c8171742abb75859053068066a1192b
data/lib/cgi/escape.jar CHANGED
Binary file
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
@@ -46,9 +46,10 @@ module CGI::Util
46
46
  end
47
47
  buffer.force_encoding(encoding)
48
48
  end
49
+ alias escape_uri_component escapeURIComponent
49
50
 
50
51
  # URL-decode a string following RFC 3986 with encoding(optional).
51
- # string = CGI.unescape("%27Stop%21%27+said%20Fred")
52
+ # string = CGI.unescapeURIComponent("%27Stop%21%27+said%20Fred")
52
53
  # # => "'Stop!'+said Fred"
53
54
  def unescapeURIComponent(string, encoding = @@accept_charset)
54
55
  str = string.b
@@ -59,6 +60,8 @@ module CGI::Util
59
60
  str.valid_encoding? ? str : str.force_encoding(string.encoding)
60
61
  end
61
62
 
63
+ alias unescape_uri_component unescapeURIComponent
64
+
62
65
  # The set of special characters and their escaped values
63
66
  TABLE_FOR_ESCAPE_HTML__ = {
64
67
  "'" => '&#39;',
@@ -90,9 +93,12 @@ module CGI::Util
90
93
  end
91
94
  end
92
95
 
93
- begin
94
- require 'cgi/escape'
95
- rescue LoadError
96
+ # TruffleRuby runs the pure-Ruby variant faster, do not use the C extension there
97
+ unless RUBY_ENGINE == 'truffleruby'
98
+ begin
99
+ require 'cgi/escape'
100
+ rescue LoadError
101
+ end
96
102
  end
97
103
 
98
104
  # 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.1"
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.1
5
5
  platform: java
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-12-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Support for the Common Gateway Interface protocol.
14
14
  email:
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.3.25
54
+ rubygems_version: 3.3.26
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Support for the Common Gateway Interface protocol.