uri 0.10.3 → 0.13.3
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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/gh-pages.yml +46 -0
- data/.github/workflows/test.yml +13 -7
- data/.gitignore +1 -0
- data/README.md +4 -2
- data/Rakefile +6 -5
- data/lib/uri/common.rb +310 -136
- data/lib/uri/file.rb +7 -1
- data/lib/uri/ftp.rb +2 -1
- data/lib/uri/generic.rb +53 -20
- data/lib/uri/http.rb +40 -2
- data/lib/uri/https.rb +2 -1
- data/lib/uri/ldap.rb +1 -1
- data/lib/uri/ldaps.rb +2 -1
- data/lib/uri/mailto.rb +2 -2
- data/lib/uri/rfc2396_parser.rb +13 -7
- data/lib/uri/rfc3986_parser.rb +103 -34
- data/lib/uri/version.rb +1 -1
- data/lib/uri/ws.rb +1 -2
- data/lib/uri/wss.rb +2 -1
- data/lib/uri.rb +3 -2
- data/rakelib/sync_tool.rake +17 -0
- data/uri.gemspec +14 -4
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff198914bae27655aee5c90c174f209e283924fcedd3054a680a1fa13c38420
|
4
|
+
data.tar.gz: 318d1acef1b37a91a7932dd065956d7526ed27ffe36785b0097524e87bcd31df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d63fae0cebe8d47ba5d8042ed4c98935a991a8fdd95103ac86f0a31c8e1df5861dd38d4121d6b30be7f8079fae998569dab85c3b935efa924c9e3fc05d0effe3
|
7
|
+
data.tar.gz: a6a56ca12543502cf80b100720a635f443951af35b3c29e651e6cc46441e0c2e863aa20b110f73941a9087bcd4aa3a92e5f2ac5a48f286325e8acf6090303d72
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: Deploy RDoc site to Pages
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ 'master' ]
|
6
|
+
workflow_dispatch:
|
7
|
+
|
8
|
+
permissions:
|
9
|
+
contents: read
|
10
|
+
pages: write
|
11
|
+
id-token: write
|
12
|
+
|
13
|
+
concurrency:
|
14
|
+
group: "pages"
|
15
|
+
cancel-in-progress: true
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
build:
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
steps:
|
21
|
+
- name: Checkout
|
22
|
+
uses: actions/checkout@v4
|
23
|
+
- name: Setup Ruby
|
24
|
+
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
|
25
|
+
with:
|
26
|
+
ruby-version: '3.2'
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Setup Pages
|
29
|
+
id: pages
|
30
|
+
uses: actions/configure-pages@v3
|
31
|
+
- name: Build with RDoc
|
32
|
+
# Outputs to the './_site' directory by default
|
33
|
+
run: bundle exec rake rdoc
|
34
|
+
- name: Upload artifact
|
35
|
+
uses: actions/upload-pages-artifact@v2
|
36
|
+
|
37
|
+
deploy:
|
38
|
+
environment:
|
39
|
+
name: github-pages
|
40
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
41
|
+
runs-on: ubuntu-latest
|
42
|
+
needs: build
|
43
|
+
steps:
|
44
|
+
- name: Deploy to GitHub Pages
|
45
|
+
id: deployment
|
46
|
+
uses: actions/deploy-pages@v2
|
data/.github/workflows/test.yml
CHANGED
@@ -1,24 +1,30 @@
|
|
1
|
-
name:
|
1
|
+
name: CI
|
2
2
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
+
ruby-versions:
|
7
|
+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
8
|
+
with:
|
9
|
+
min_version: 2.5
|
10
|
+
|
6
11
|
build:
|
12
|
+
needs: ruby-versions
|
7
13
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
14
|
strategy:
|
9
15
|
matrix:
|
10
|
-
ruby:
|
16
|
+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
11
17
|
os: [ ubuntu-latest, macos-latest ]
|
18
|
+
exclude:
|
19
|
+
- ruby: 2.5
|
20
|
+
os: macos-latest
|
12
21
|
runs-on: ${{ matrix.os }}
|
13
22
|
steps:
|
14
|
-
- uses: actions/checkout@
|
23
|
+
- uses: actions/checkout@v4
|
15
24
|
- name: Set up Ruby
|
16
25
|
uses: ruby/setup-ruby@v1
|
17
26
|
with:
|
18
27
|
ruby-version: ${{ matrix.ruby }}
|
19
|
-
-
|
20
|
-
run: |
|
21
|
-
gem install bundler --no-document
|
22
|
-
bundle install
|
28
|
+
- run: bundle install --jobs 4 --retry 3
|
23
29
|
- name: Run test
|
24
30
|
run: rake test
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# URI
|
2
2
|
|
3
|
-
|
4
|
-
(
|
3
|
+
[](https://github.com/ruby/uri/actions/workflows/test.yml)
|
4
|
+
[](https://ruby.github.io/uri/)
|
5
|
+
|
6
|
+
URI is a module providing classes to handle Uniform Resource Identifiers [RFC2396](http://tools.ietf.org/html/rfc2396).
|
5
7
|
|
6
8
|
## Features
|
7
9
|
|
data/Rakefile
CHANGED
@@ -7,11 +7,12 @@ Rake::TestTask.new(:test) do |t|
|
|
7
7
|
t.test_files = FileList["test/**/test_*.rb"]
|
8
8
|
end
|
9
9
|
|
10
|
-
task
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
require "rdoc/task"
|
11
|
+
RDoc::Task.new do |doc|
|
12
|
+
doc.main = "README.md"
|
13
|
+
doc.title = "URI - handle Uniform Resource Identifiers"
|
14
|
+
doc.rdoc_files = FileList.new %w[lib README.md LICENSE.txt]
|
15
|
+
doc.rdoc_dir = "_site" # for github pages
|
15
16
|
end
|
16
17
|
|
17
18
|
task :default => :test
|