Граф коммитов

256 Коммитов

Автор SHA1 Сообщение Дата
Alexander Popov 35457ebb8f [ruby/uri] Replace RubyDoc.info links with Ruby.GitHub.io
As requested.

https://github.com/ruby/uri/commit/c272f205f9
2023-03-01 23:42:50 +00:00
Alexander Popov bc668d75f6 [ruby/uri] Take out GitHub link for gemspec metadata
https://github.com/ruby/uri/commit/ca4638a4b3
2023-03-01 23:42:49 +00:00
Alexander Popov 8a5110b664 [ruby/uri] Populate gemspec metadata object
https://github.com/ruby/uri/commit/31748915d0
2023-03-01 23:42:48 +00:00
Alexander Popov 93a54a3c30 [ruby/uri] Sort gemspec `metadata` object alphabetical
https://github.com/ruby/uri/commit/1e9420b57c
2023-03-01 23:42:47 +00:00
Alexander Popov 932c0e77ee [ruby/uri] Remake `metadata` object in `gemspec` into one assignment
https://github.com/ruby/uri/commit/19a19ccde6
2023-03-01 23:42:47 +00:00
Alexander Popov 57e6d66450 [ruby/uri] Add documentation link into gemspec
https://github.com/ruby/uri/commit/19ced145f4
2023-03-01 23:42:46 +00:00
Burdette Lamar 41a947e72a [ruby/uri] [DOC] Enhanced RDoc for URI
(https://github.com/ruby/uri/pull/55)

https://github.com/ruby/uri/commit/89ab4f1407
2023-01-08 23:14:50 +00:00
Burdette Lamar 20b691d664 [ruby/uri] [DOC] Enhanced RDoc for URI.decode_www_form
(https://github.com/ruby/uri/pull/53)

https://github.com/ruby/uri/commit/ce379e6125
2023-01-08 17:11:12 +00:00
Burdette Lamar fd98169e00 [ruby/uri] [DOC] Common rdoc (https://github.com/ruby/uri/pull/52)
https://github.com/ruby/uri/commit/be8047028f
2023-01-07 19:22:36 +00:00
Burdette Lamar ddbf7be94d [ruby/uri] [DOC] Enhanced RDoc for common methods
(https://github.com/ruby/uri/pull/50)

https://github.com/ruby/uri/commit/7ff4fb372b
2023-01-06 14:20:38 +00:00
Burdette Lamar f7243d1afb [ruby/uri] [DOC] Common methods rdoc
(https://github.com/ruby/uri/pull/49)

https://github.com/ruby/uri/commit/02dfc79366
2023-01-04 19:59:05 +00:00
Burdette Lamar 59cf9ebf4d [ruby/uri] [DOC] Enhanced RDoc for common methods
(https://github.com/ruby/uri/pull/48)

https://github.com/ruby/uri/commit/2bfd848c26
2023-01-03 15:33:45 +00:00
Hiroshi SHIBATA b62b7dc705 [ruby/uri] Bump version to 0.12.0
https://github.com/ruby/uri/commit/72f22716f8
2022-12-05 08:20:24 +00:00
Nobuyoshi Nakada 4b1504ae0a [ruby/uri] Fix splitting relative URI
https://github.com/ruby/uri/commit/ffbab83de6
2022-10-13 16:24:53 +09:00
NARUSE, Yui dd5118f852
URI.parse should set empty string in host instead of nil 2022-10-13 11:04:06 +09:00
Benoit Daloze 40ca208a6d [ruby/uri] Improve URI.register_scheme tests and automatically upcase the 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
2022-05-12 18:19:17 +09:00
Jeremy Evans fbebfe1697 [ruby/uri] Add URI::Generic#decoded_#{user,password}
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
2022-05-12 14:54:37 +09:00
Frank Schmitt 054ae999dc [ruby/uri] Update file.rb
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
2022-05-12 10:06:57 +09:00
Peter Zhu eab354e17b [ruby/uri] Include RFC2396_REGEXP module directly
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
2022-04-22 12:00:14 +09:00
Tiago 553f234a07 [ruby/uri] URI#HTTP#origin and URI#HTTP#authority (https://github.com/ruby/uri/pull/30)
https://github.com/ruby/uri/commit/bf13946c32

Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
2021-10-22 19:48:36 +09:00
Hiroshi SHIBATA 8ef125c838 [ruby/uri] Bump up uri version to 0.11.0
https://github.com/ruby/uri/commit/1619f713e6
2021-10-21 21:00:04 +09:00
Benoit Daloze 59a65f2d24 Update to latest uri
* bc47bf71df
* To include the fix from https://github.com/ruby/uri/pull/27
2021-07-28 12:26:31 +02:00
Hiroshi SHIBATA 6656309fe2
Fix test failure for parallel testing 2021-07-27 17:34:13 +09:00
Benoit Daloze 1cf111774f
[ruby/uri] Add proper Ractor support to URI
* 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
2021-07-27 16:54:27 +09:00
Benoit Daloze 090d799c24
[ruby/uri] Revert "Fix to support Ruby 3.0 Ractor"
* 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
2021-07-27 16:54:26 +09:00
kvokka a288c21a5d
[ruby/uri] Fix to support Ruby 3.0 Ractor
https://github.com/ruby/uri/commit/1faa4fdc16
2021-07-27 16:54:26 +09:00
Steven Harman bbee6968f8 [ruby/uri] Use Regexp#match? to avoid extra allocations
`#=~` 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
2021-04-22 14:55:44 +09:00
Jeremy Evans d4a490f26a [ruby/uri] Set required_ruby_version to 2.4 in gemspec
Tests pass on Ruby 2.4, but not on Ruby 2.3.

https://github.com/ruby/uri/commit/594418079a
2021-04-22 14:54:56 +09:00
Jeremy Evans 10ad81eb2d [ruby/uri] Only use UnboundMethod#bind_call if it is available
This allows tests to pass on Ruby 2.4-2.6.

Fixes #19

https://github.com/ruby/uri/commit/67ca99ca87
2021-04-22 14:54:47 +09:00
Lukas Zapletal c46a4b8c7f [ruby/uri] Optimize URI#hostname and URI#hostname=
https://github.com/ruby/uri/commit/3b7ccfd835
2021-04-22 14:54:28 +09:00
Charles Oliver Nutter 6e06c980da [ruby/uri] Upstream Java proxy property checks from JRuby
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
2021-04-22 14:54:19 +09:00
aycabta 66d2fc7989 Enclose the code that was accidentally a link in "tt" 2021-03-31 15:18:52 +09:00
Hiroshi SHIBATA 9b9cbbbc17
Update library versions of the default gems.
They are followed up with
  8fb02b7a97
2020-12-22 21:45:28 +09:00
d-m-u ccf9da079f fix doc typo
s/it's/its
2020-12-16 23:22:15 -05:00
Nobuyoshi Nakada 3198e7abd7
Separate `send` into `public_send` and `__send__` 2020-10-27 16:12:45 +09:00
Jeremy Evans abbd324152 [ruby/uri] Remove deprecated URI.escape/URI.unescape
https://github.com/ruby/uri/commit/61c6a47ebf
2020-09-15 21:17:20 +09:00
Hiroshi SHIBATA 8fb02b7a97
Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
Kazuhiro NISHIYAMA 16bc9bf7e8
[DOC] Use https:// instead of http:// [ci skip] 2020-07-13 11:33:40 +09:00
Nobuyoshi Nakada e04418bb16 [ruby/uri] Check if DN exists
https://bugs.ruby-lang.org/issues/16830

https://github.com/ruby/uri/commit/b4bf8c1217
2020-05-05 23:29:39 +09:00
git b0b6d0a688 * remove trailing spaces. [ci skip] 2020-03-26 18:06:32 +09:00
David Rodríguez 9e8d75e881
[ruby/uri] Remove RCS keywords
https://github.com/ruby/uri/commit/1bcb1203ad
2020-03-26 18:06:14 +09:00
Matt Muller 5e9e16292a
[ruby/uri] Remove revision lines from comments
https://github.com/ruby/uri/commit/f1c133a7d6
2020-03-26 18:06:14 +09:00
Matt Muller 92a238a21c
[ruby/uri] Add support for WebSockets
https://github.com/ruby/uri/commit/805a95786a
2020-03-26 18:06:14 +09:00
Samuel Williams 844ff7ea45
[ruby/uri] Simplify construction of URI instances using parser interface.
https://github.com/ruby/uri/commit/c145017dd7
2020-03-26 18:06:14 +09:00
Kazuhiro NISHIYAMA de10631dcf
Add workaround for test-bundler failure
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
```
2020-03-12 19:17:08 +09:00
Jeremy Evans d3b28ebc7a Fix warnings for URI.encode and URI.decode
Use __callee__ to display the called method.

Fixes [Bug #16469]
2020-01-09 13:09:06 -08:00
Hiroshi SHIBATA bcfe94b7f2
Revert "Revert "Promote uri to default gems""
This reverts commit fdfad90522.

  f1f27da6c4 resolved this.
2019-11-11 22:21:43 +09:00
Hiroshi SHIBATA fdfad90522
Revert "Promote uri to default gems"
This reverts commit c5b4d2a259.

  This commit affects with activation feature of RubyGems.
  [Bug #16337][ruby-core:95768]
2019-11-09 20:16:03 +09:00
Hiroshi SHIBATA c5b4d2a259
Promote uri to default gems 2019-11-09 07:32:34 +09:00
Kazuhiro NISHIYAMA d6c80876b7
Use `bind_call` instead of `bind` and `call` 2019-10-11 13:50:27 +09:00