aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/uri] Bump version to 0.12.1Hiroshi SHIBATA2023-03-281-1/+1
| | | | https://github.com/ruby/uri/commit/5c4f7d04bf
* [ruby/uri] Fix quadratic backtracking on invalid URINobuyoshi Nakada2023-03-281-2/+2
| | | | | | https://hackerone.com/reports/1444501 https://github.com/ruby/uri/commit/2f9585de17
* [ruby/uri] Replace RubyDoc.info links with Ruby.GitHub.ioAlexander Popov2023-03-011-1/+1
| | | | | | As requested. https://github.com/ruby/uri/commit/c272f205f9
* [ruby/uri] Take out GitHub link for gemspec metadataAlexander Popov2023-03-011-4/+7
| | | | https://github.com/ruby/uri/commit/ca4638a4b3
* [ruby/uri] Populate gemspec metadata objectAlexander Popov2023-03-011-0/+2
| | | | https://github.com/ruby/uri/commit/31748915d0
* [ruby/uri] Sort gemspec `metadata` object alphabeticalAlexander Popov2023-03-011-2/+2
| | | | https://github.com/ruby/uri/commit/1e9420b57c
* [ruby/uri] Remake `metadata` object in `gemspec` into one assignmentAlexander Popov2023-03-011-3/+5
| | | | https://github.com/ruby/uri/commit/19a19ccde6
* [ruby/uri] Add documentation link into gemspecAlexander Popov2023-03-011-0/+1
| | | | https://github.com/ruby/uri/commit/19ced145f4
* [ruby/uri] [DOC] Enhanced RDoc for URIBurdette Lamar2023-01-081-1/+9
| | | | | | (https://github.com/ruby/uri/pull/55) https://github.com/ruby/uri/commit/89ab4f1407
* [ruby/uri] [DOC] Enhanced RDoc for URI.decode_www_formBurdette Lamar2023-01-081-14/+31
| | | | | | (https://github.com/ruby/uri/pull/53) https://github.com/ruby/uri/commit/ce379e6125
* [ruby/uri] [DOC] Common rdoc (https://github.com/ruby/uri/pull/52)Burdette Lamar2023-01-071-6/+12
| | | | https://github.com/ruby/uri/commit/be8047028f
* [ruby/uri] [DOC] Enhanced RDoc for common methodsBurdette Lamar2023-01-061-21/+33
| | | | | | (https://github.com/ruby/uri/pull/50) https://github.com/ruby/uri/commit/7ff4fb372b
* [ruby/uri] [DOC] Common methods rdocBurdette Lamar2023-01-041-66/+58
| | | | | | (https://github.com/ruby/uri/pull/49) https://github.com/ruby/uri/commit/02dfc79366
* [ruby/uri] [DOC] Enhanced RDoc for common methodsBurdette Lamar2023-01-031-27/+116
| | | | | | (https://github.com/ruby/uri/pull/48) https://github.com/ruby/uri/commit/2bfd848c26
* [ruby/uri] Bump version to 0.12.0Hiroshi SHIBATA2022-12-051-1/+1
| | | | https://github.com/ruby/uri/commit/72f22716f8
* [ruby/uri] Fix splitting relative URINobuyoshi Nakada2022-10-131-1/+1
| | | | https://github.com/ruby/uri/commit/ffbab83de6
* URI.parse should set empty string in host instead of nilNARUSE, Yui2022-10-131-2/+1
|
* [ruby/uri] Improve URI.register_scheme tests and automatically upcase the ↵Benoit Daloze2022-05-121-1/+6
| | | | | | | | | | given scheme * Also add docs and mention current limitations. * For reference, https://stackoverflow.com/a/3641782/388803 mentions the valid characters in schemes. https://github.com/ruby/uri/commit/4346daac75
* [ruby/uri] Add URI::Generic#decoded_#{user,password}Jeremy Evans2022-05-122-10/+45
| | | | | | | | | | | | | | | | | | | | | | URI::Generic#{user,password} return the encoded values, which are not that useful if you want to do authentication with them. Automatic decoding by default would break backwards compatibility. Optional automatic decoding via a keyword to URI.parse would require threading the option through at least 3 other methods, and would make semantics confusing (user= takes encoded or unencoded password?) or require more work. Thus, adding this as a separate method seemed the simplest approach. Unfortunately, URI lacks a method for correct decoding. Unlike in www form components, + in earlier parts of the URI such as the userinfo section is treated verbatim and not as an encoded space. Add URI.#{en,de}code_uri_component methods, which are almost the same as URI.#{en,de}code_www_form_component, but without the special SP => + handling. Implements [Feature #9045] https://github.com/ruby/uri/commit/16cfc4e92f
* [ruby/uri] Update file.rbFrank Schmitt2022-05-121-0/+6
| | | | | | The module here is called `URI`, so it's probably reasonable to expect a requirement for the path to be RFC3986-compliant, but on the other hand, the class is called `File`, so it might be reasonable to expect that a path produced by e.g. the `File` class would be consumable by its `build` method (this fails if the filename contains e.g. a space). https://github.com/ruby/uri/commit/ef79789b83
* [ruby/uri] Include RFC2396_REGEXP module directlyPeter Zhu2022-04-222-3/+3
| | | | | | | REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo. https://github.com/ruby/uri/commit/ed6ded9c80
* [ruby/uri] URI#HTTP#origin and URI#HTTP#authority ↵Tiago2021-10-221-0/+39
| | | | | | | (https://github.com/ruby/uri/pull/30) https://github.com/ruby/uri/commit/bf13946c32 Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
* [ruby/uri] Bump up uri version to 0.11.0Hiroshi SHIBATA2021-10-211-1/+1
| | | | https://github.com/ruby/uri/commit/1619f713e6
* Update to latest uriBenoit Daloze2021-07-281-2/+2
| | | | | * https://github.com/ruby/uri/commit/bc47bf71df2b2e9cea09d0b2684ceac7355e42a0 * To include the fix from https://github.com/ruby/uri/pull/27
* Fix test failure for parallel testingHiroshi SHIBATA2021-07-271-0/+4
|
* [ruby/uri] Add proper Ractor support to URIBenoit Daloze2021-07-2710-17/+33
| | | | | | | * Using a module to map scheme name to scheme class, which also works with Ractor. * No constant redefinition, no ObjectSpace, still fast lookup for initial schemes. https://github.com/ruby/uri/commit/883567fd81
* [ruby/uri] Revert "Fix to support Ruby 3.0 Ractor"Benoit Daloze2021-07-2710-25/+23
| | | | | | | * This reverts commit 1faa4fdc161d7aeebdb5de0c407b923beaecf898. * It has too many problems, see https://github.com/ruby/uri/pull/22 for discussion. https://github.com/ruby/uri/commit/b959da2dc9
* [ruby/uri] Fix to support Ruby 3.0 Ractorkvokka2021-07-2710-23/+25
| | | | https://github.com/ruby/uri/commit/1faa4fdc16
* [ruby/uri] Use Regexp#match? to avoid extra allocationsSteven Harman2021-04-221-1/+1
| | | | | | | `#=~` builds `MatchData`, requiring extra allocations as compared to `#match?`, which returns a boolean w/o having to build the `MatchData`. https://github.com/ruby/uri/commit/158f58a9cc
* [ruby/uri] Set required_ruby_version to 2.4 in gemspecJeremy Evans2021-04-221-0/+2
| | | | | | Tests pass on Ruby 2.4, but not on Ruby 2.3. https://github.com/ruby/uri/commit/594418079a
* [ruby/uri] Only use UnboundMethod#bind_call if it is availableJeremy Evans2021-04-222-4/+16
| | | | | | | | This allows tests to pass on Ruby 2.4-2.6. Fixes #19 https://github.com/ruby/uri/commit/67ca99ca87
* [ruby/uri] Optimize URI#hostname and URI#hostname=Lukas Zapletal2021-04-221-2/+2
| | | | https://github.com/ruby/uri/commit/3b7ccfd835
* [ruby/uri] Upstream Java proxy property checks from JRubyCharles Oliver Nutter2021-04-221-3/+13
| | | | | | | | | | These Java properties, retrieved from JRuby's "Java env" ENV_JAVA, allow JRuby users to use the same proxy properties the rest of the Java platform uses. This resolves https://bugs.ruby-lang.org/issues/11194 https://github.com/ruby/uri/commit/3bd2bcc95a
* Enclose the code that was accidentally a link in "tt"aycabta2021-03-311-5/+5
|
* Update library versions of the default gems.Hiroshi SHIBATA2020-12-221-1/+1
| | | | | They are followed up with https://github.com/ruby/ruby/commit/8fb02b7a97317090e3946e6f2d4a7d034f9699f1
* fix doc typod-m-u2020-12-161-1/+1
| | | s/it's/its
* Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada2020-10-271-5/+5
|
* [ruby/uri] Remove deprecated URI.escape/URI.unescapeJeremy Evans2020-09-151-76/+0
| | | | https://github.com/ruby/uri/commit/61c6a47ebf
* Update the license for the default gems to dual licensesHiroshi SHIBATA2020-08-181-1/+1
|
* [DOC] Use https:// instead of http:// [ci skip]Kazuhiro NISHIYAMA2020-07-131-2/+2
|
* [ruby/uri] Check if DN existsNobuyoshi Nakada2020-05-051-0/+1
| | | | | | https://bugs.ruby-lang.org/issues/16830 https://github.com/ruby/uri/commit/b4bf8c1217
* * remove trailing spaces. [ci skip]git2020-03-261-1/+1
|
* [ruby/uri] Remove RCS keywordsDavid Rodríguez2020-03-268-8/+0
| | | | https://github.com/ruby/uri/commit/1bcb1203ad
* [ruby/uri] Remove revision lines from commentsMatt Muller2020-03-262-2/+0
| | | | https://github.com/ruby/uri/commit/f1c133a7d6
* [ruby/uri] Add support for WebSocketsMatt Muller2020-03-262-0/+108
| | | | https://github.com/ruby/uri/commit/805a95786a
* [ruby/uri] Simplify construction of URI instances using parser interface.Samuel Williams2020-03-263-25/+16
| | | | https://github.com/ruby/uri/commit/c145017dd7
* Add workaround for test-bundler failureKazuhiro NISHIYAMA2020-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/ruby/actions/runs/500526558?check_suite_focus=true#step:16:127 ``` Failures: 1) Bundler.setup when Bundler is bundled doesn't blow up Failure/Error: expect(err).to be_empty expected `"fatal: not a git repository (or any of the parent directories): .git\nfatal: not a git repository (o...the parent directories): .git\nfatal: not a git repository (or any of the parent directories): .git".empty?` to return true, got false Commands: $ /home/runner/work/actions/actions/snapshot-master/ruby \ -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \ -rsupport/hax -rsupport/artifice/fail \ /home/runner/work/actions/actions/snapshot-master/libexec/bundle install --retry 0 Resolving dependencies... Using bundler 2.1.4 Bundle complete! 1 Gemfile dependency, 1 gem now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git # $? => 0 $ /home/runner/work/actions/actions/snapshot-master/ruby \ -I/home/runner/work/actions/actions/snapshot-master/lib:/home/runner/work/actions/actions/snapshot-master/spec/bundler \ -rsupport/hax -rsupport/artifice/fail \ /home/runner/work/actions/actions/snapshot-master/libexec/bundle exec ruby -e \ require\ \'bundler\'\;\ Bundler.setup fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git # $? => 0 # ./spec/bundler/runtime/setup_spec.rb:1056:in `block (3 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:111:in `block (3 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:111:in `block (2 levels) in <top (required)>' # ./spec/bundler/spec_helper.rb:78:in `block (2 levels) in <top (required)>' make: *** [yes-test-bundler] Error 1 ```
* Fix warnings for URI.encode and URI.decodeJeremy Evans2020-01-091-2/+2
| | | | | | Use __callee__ to display the called method. Fixes [Bug #16469]
* Revert "Revert "Promote uri to default gems""Hiroshi SHIBATA2019-11-112-0/+35
| | | | | | This reverts commit fdfad905227a0e2e4c224d87181041fb75d5082e. f1f27da6c457684fdbfc0352297e6847f675ce4c resolved this.
* Revert "Promote uri to default gems"Hiroshi SHIBATA2019-11-092-35/+0
| | | | | | | This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026a. This commit affects with activation feature of RubyGems. [Bug #16337][ruby-core:95768]