pathname 0.4.0 → 0.5.0
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/.document +5 -0
- data/.github/workflows/push_gem.yml +4 -4
- data/.github/workflows/test.yml +28 -2
- data/Rakefile +6 -2
- data/ext/pathname/extconf.rb +7 -1
- data/ext/pathname/pathname.c +14 -1569
- data/lib/pathname.rb +3 -550
- data/lib/pathname_builtin.rb +1219 -0
- data/pathname.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d3a5a963ff55840af8c955596de8b3f96287b4f3cddeb3162746ac49acb76e3
|
|
4
|
+
data.tar.gz: 9cbc8072e3e8ba04a184f581fca93e3c16a55fc3f18a2409b70c8fa83ba31e11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c7791de39d5d3ddd68dda49647263e9c8a8abaea896bdf5c7cef36521b5621a193f52dc8dff3f940d6f3a3e670569b0e3bf2a3a4e9a5b85689e6508dda8b7d6
|
|
7
|
+
data.tar.gz: 0cc11770855910d17f8189c9ea55e23ee2e234a6971f73b5cb7dff9f7532a749fa2e7733940093eb4e9a0b38d7823677442238b7ecd201b9951aa16ea2e13105
|
data/.document
ADDED
|
@@ -23,14 +23,14 @@ jobs:
|
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
25
|
- name: Harden Runner
|
|
26
|
-
uses: step-security/harden-runner@
|
|
26
|
+
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
|
|
27
27
|
with:
|
|
28
28
|
egress-policy: audit
|
|
29
29
|
|
|
30
|
-
- uses: actions/checkout@
|
|
30
|
+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
31
31
|
|
|
32
32
|
- name: Set up Ruby
|
|
33
|
-
uses: ruby/setup-ruby@
|
|
33
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
34
34
|
with:
|
|
35
35
|
bundler-cache: true
|
|
36
36
|
ruby-version: ruby
|
|
@@ -63,4 +63,4 @@ jobs:
|
|
|
63
63
|
tag_name="$(git describe --tags --abbrev=0)"
|
|
64
64
|
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
65
65
|
env:
|
|
66
|
-
GITHUB_TOKEN: ${{ secrets.
|
|
66
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -6,23 +6,32 @@ jobs:
|
|
|
6
6
|
ruby-versions:
|
|
7
7
|
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
|
8
8
|
with:
|
|
9
|
-
engine:
|
|
9
|
+
engine: all
|
|
10
10
|
|
|
11
11
|
test:
|
|
12
12
|
needs: ruby-versions
|
|
13
13
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
|
14
14
|
strategy:
|
|
15
|
+
fail-fast: false
|
|
15
16
|
matrix:
|
|
16
17
|
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
|
17
18
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
18
19
|
exclude:
|
|
19
20
|
- { os: windows-latest , ruby: head }
|
|
21
|
+
- { os: windows-latest , ruby: truffleruby }
|
|
22
|
+
- { os: windows-latest , ruby: truffleruby-head }
|
|
23
|
+
# io/console warnings make CI fail
|
|
24
|
+
- { os: macos-latest , ruby: jruby }
|
|
25
|
+
- { os: macos-latest , ruby: jruby-head }
|
|
26
|
+
# Errno::ESRCH: No such process - File.symlink
|
|
27
|
+
- { os: windows-latest , ruby: jruby }
|
|
28
|
+
- { os: windows-latest , ruby: jruby-head }
|
|
20
29
|
include:
|
|
21
30
|
- { os: windows-latest , ruby: mingw }
|
|
22
31
|
- { os: windows-latest , ruby: mswin }
|
|
23
32
|
runs-on: ${{ matrix.os }}
|
|
24
33
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v6
|
|
26
35
|
- name: Set up Ruby
|
|
27
36
|
uses: ruby/setup-ruby@v1
|
|
28
37
|
with:
|
|
@@ -31,3 +40,20 @@ jobs:
|
|
|
31
40
|
run: bundle install
|
|
32
41
|
- name: Run test
|
|
33
42
|
run: rake compile test
|
|
43
|
+
|
|
44
|
+
spec:
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v6
|
|
48
|
+
- uses: ruby/setup-ruby@v1
|
|
49
|
+
with:
|
|
50
|
+
ruby-version: ruby
|
|
51
|
+
- uses: actions/checkout@v6
|
|
52
|
+
with:
|
|
53
|
+
repository: ruby/spec
|
|
54
|
+
path: rubyspec
|
|
55
|
+
- name: Clone MSpec
|
|
56
|
+
run: git clone https://github.com/ruby/mspec.git ../mspec
|
|
57
|
+
- run: bundle install
|
|
58
|
+
- run: rake compile
|
|
59
|
+
- run: ../mspec/bin/mspec -Ilib rubyspec/library/pathname
|
data/Rakefile
CHANGED
|
@@ -7,7 +7,11 @@ Rake::TestTask.new(:test) do |t|
|
|
|
7
7
|
t.test_files = FileList["test/**/test_*.rb"]
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
if RUBY_ENGINE == 'ruby'
|
|
11
|
+
require 'rake/extensiontask'
|
|
12
|
+
Rake::ExtensionTask.new("pathname")
|
|
13
|
+
else
|
|
14
|
+
task :compile
|
|
15
|
+
end
|
|
12
16
|
|
|
13
17
|
task :default => [:compile, :test]
|