pathname 0.2.1 → 0.3.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/.github/workflows/test.yml +9 -3
- data/Gemfile +1 -0
- data/Rakefile +0 -7
- data/ext/pathname/pathname.c +0 -28
- data/lib/pathname.rb +2 -0
- data/pathname.gemspec +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a656bfd312a6e64a60dbe0587adb442864e7e243112dfd2de00818faa81ddd8
|
4
|
+
data.tar.gz: 4bb517d92a8f16923bb2c2e0b3e6cd6336f7b384e69d6a8f93f5fb9c9db4be6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 257242ff8d0cad1b3510f8baa055b53c613d62b8be2975e559824f202cf2500ef700ca714223c0978b03befac7c5daae9eaa3847c6c8b12e50952504ca966f90
|
7
|
+
data.tar.gz: 13061a06efa6cbfd3b08799e0974691f1e3d52df1210031d080d2bdb2bfd24081b9c241a21f7115ee859d78d1da8a57cfbf4cd26d68b4eb1446a3886019f3017
|
data/.github/workflows/test.yml
CHANGED
@@ -3,11 +3,17 @@ name: build
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
ruby-versions:
|
7
|
+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
8
|
+
with:
|
9
|
+
engine: cruby
|
10
|
+
|
11
|
+
test:
|
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, windows-latest ]
|
12
18
|
exclude:
|
13
19
|
- { os: windows-latest , ruby: head }
|
@@ -16,7 +22,7 @@ jobs:
|
|
16
22
|
- { os: windows-latest , ruby: mswin }
|
17
23
|
runs-on: ${{ matrix.os }}
|
18
24
|
steps:
|
19
|
-
- uses: actions/checkout@
|
25
|
+
- uses: actions/checkout@v4
|
20
26
|
- name: Set up Ruby
|
21
27
|
uses: ruby/setup-ruby@v1
|
22
28
|
with:
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -7,13 +7,6 @@ Rake::TestTask.new(:test) do |t|
|
|
7
7
|
t.test_files = FileList["test/**/test_*.rb"]
|
8
8
|
end
|
9
9
|
|
10
|
-
task :sync_tool do
|
11
|
-
require 'fileutils'
|
12
|
-
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
13
|
-
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
14
|
-
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
15
|
-
end
|
16
|
-
|
17
10
|
require 'rake/extensiontask'
|
18
11
|
Rake::ExtensionTask.new("pathname")
|
19
12
|
|
data/ext/pathname/pathname.c
CHANGED
@@ -130,32 +130,6 @@ path_freeze(VALUE self)
|
|
130
130
|
return self;
|
131
131
|
}
|
132
132
|
|
133
|
-
/*
|
134
|
-
* call-seq:
|
135
|
-
* pathname.taint -> obj
|
136
|
-
*
|
137
|
-
* Returns pathname. This method is deprecated and will be removed in Ruby 3.2.
|
138
|
-
*/
|
139
|
-
static VALUE
|
140
|
-
path_taint(VALUE self)
|
141
|
-
{
|
142
|
-
rb_warn("Pathname#taint is deprecated and will be removed in Ruby 3.2.");
|
143
|
-
return self;
|
144
|
-
}
|
145
|
-
|
146
|
-
/*
|
147
|
-
* call-seq:
|
148
|
-
* pathname.untaint -> obj
|
149
|
-
*
|
150
|
-
* Returns pathname. This method is deprecated and will be removed in Ruby 3.2.
|
151
|
-
*/
|
152
|
-
static VALUE
|
153
|
-
path_untaint(VALUE self)
|
154
|
-
{
|
155
|
-
rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2.");
|
156
|
-
return self;
|
157
|
-
}
|
158
|
-
|
159
133
|
/*
|
160
134
|
* Compare this pathname with +other+. The comparison is string-based.
|
161
135
|
* Be aware that two different paths (<tt>foo.txt</tt> and <tt>./foo.txt</tt>)
|
@@ -1537,8 +1511,6 @@ Init_pathname(void)
|
|
1537
1511
|
rb_cPathname = rb_define_class("Pathname", rb_cObject);
|
1538
1512
|
rb_define_method(rb_cPathname, "initialize", path_initialize, 1);
|
1539
1513
|
rb_define_method(rb_cPathname, "freeze", path_freeze, 0);
|
1540
|
-
rb_define_method(rb_cPathname, "taint", path_taint, 0);
|
1541
|
-
rb_define_method(rb_cPathname, "untaint", path_untaint, 0);
|
1542
1514
|
rb_define_method(rb_cPathname, "==", path_eq, 1);
|
1543
1515
|
rb_define_method(rb_cPathname, "===", path_eq, 1);
|
1544
1516
|
rb_define_method(rb_cPathname, "eql?", path_eq, 1);
|
data/lib/pathname.rb
CHANGED
data/pathname.gemspec
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
+
name = File.basename(__FILE__, ".gemspec")
|
2
|
+
version = ["lib", "ext/lib"].find do |dir|
|
3
|
+
break File.foreach(File.join(__dir__, dir, "#{name}.rb")) do |line|
|
4
|
+
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
5
|
+
end rescue nil
|
6
|
+
end
|
7
|
+
|
1
8
|
Gem::Specification.new do |spec|
|
2
|
-
spec.name =
|
3
|
-
spec.version =
|
9
|
+
spec.name = name
|
10
|
+
spec.version = version
|
4
11
|
spec.authors = ["Tanaka Akira"]
|
5
12
|
spec.email = ["akr@fsij.org"]
|
6
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pathname
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanaka Akira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Representation of the name of a file or directory on the filesystem
|
14
14
|
email:
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
rubygems_version: 3.
|
57
|
+
rubygems_version: 3.5.0.dev
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Representation of the name of a file or directory on the filesystem
|