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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7667d4cec31df28ffcfe85b035246a5efc867339ff3cc3c53712b3c61529534
4
- data.tar.gz: 12cfe37fad1b656250d6b777ceedd9f5ef7f7ff96a1a1bf70db29a3fdd458eda
3
+ metadata.gz: 1d3a5a963ff55840af8c955596de8b3f96287b4f3cddeb3162746ac49acb76e3
4
+ data.tar.gz: 9cbc8072e3e8ba04a184f581fca93e3c16a55fc3f18a2409b70c8fa83ba31e11
5
5
  SHA512:
6
- metadata.gz: a7cdeaf870f2eef4c8cb394fbe16d2c9aa36f950787da7f2bde6e65b4294b16a01ed28341df955f8fb1f0caa0ede2fdc585242470611ee164a4caca6312701dc
7
- data.tar.gz: 3ca9f67a7d1cc76df2b89e578b297ae860dd388293f400534b2ea45bbedb06e48ba49995ece6d99384f93d2f86389b125073363a76f48ddf32b63c7d789b04b2
6
+ metadata.gz: 3c7791de39d5d3ddd68dda49647263e9c8a8abaea896bdf5c7cef36521b5621a193f52dc8dff3f940d6f3a3e670569b0e3bf2a3a4e9a5b85689e6508dda8b7d6
7
+ data.tar.gz: 0cc11770855910d17f8189c9ea55e23ee2e234a6971f73b5cb7dff9f7532a749fa2e7733940093eb4e9a0b38d7823677442238b7ecd201b9951aa16ea2e13105
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ BSDL
2
+ COPYING
3
+ README.md
4
+ ext/pathname/*.c
5
+ lib/*.rb
@@ -23,14 +23,14 @@ jobs:
23
23
 
24
24
  steps:
25
25
  - name: Harden Runner
26
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
26
+ uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
27
27
  with:
28
28
  egress-policy: audit
29
29
 
30
- - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
30
+ - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
31
31
 
32
32
  - name: Set up Ruby
33
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
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.MATZBOT_GITHUB_WORKFLOW_TOKEN }}
66
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -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: cruby
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@v4
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
- require 'rake/extensiontask'
11
- Rake::ExtensionTask.new("pathname")
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]
@@ -1,3 +1,9 @@
1
1
  # frozen_string_literal: false
2
+
2
3
  require 'mkmf'
3
- create_makefile('pathname')
4
+
5
+ if RUBY_ENGINE == "ruby"
6
+ create_makefile('pathname')
7
+ else
8
+ File.write("Makefile", dummy_makefile($srcdir).join(""))
9
+ end