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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 222ab05e8698152edf5c4d2db5215d1385281d77e408234a03e9417d8f7e33c6
4
- data.tar.gz: f267783875853911d60d63e08d7e871ba4562a84a73a335d1b72b453c3665a59
3
+ metadata.gz: 9a656bfd312a6e64a60dbe0587adb442864e7e243112dfd2de00818faa81ddd8
4
+ data.tar.gz: 4bb517d92a8f16923bb2c2e0b3e6cd6336f7b384e69d6a8f93f5fb9c9db4be6e
5
5
  SHA512:
6
- metadata.gz: 0b2b4a31d31f5e5dc9fe356c6a25a5a8f40b573604c073b9090ec53c09bafac5aafa61339b1396136659ef0ddeb1932955eb4e43f2ab7d83a906509a9412b313
7
- data.tar.gz: 789a9cd9d5929793cabecde7d8a023ce153d1b5c11ef85da85aa8e0a74a427c85162c7cc0d09e85c3f33e8ee2f2d43bfeabed665fdd5f2742dec3611662204dd
6
+ metadata.gz: 257242ff8d0cad1b3510f8baa055b53c613d62b8be2975e559824f202cf2500ef700ca714223c0978b03befac7c5daae9eaa3847c6c8b12e50952504ca966f90
7
+ data.tar.gz: 13061a06efa6cbfd3b08799e0974691f1e3d52df1210031d080d2bdb2bfd24081b9c241a21f7115ee859d78d1da8a57cfbf4cd26d68b4eb1446a3886019f3017
@@ -3,11 +3,17 @@ name: build
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
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: [ 2.7, '3.0', 3.1, head ]
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@v3
25
+ - uses: actions/checkout@v4
20
26
  - name: Set up Ruby
21
27
  uses: ruby/setup-ruby@v1
22
28
  with:
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
  gem "rake"
6
6
  gem "rake-compiler"
7
7
  gem "test-unit"
8
+ gem "test-unit-ruby-core"
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
 
@@ -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
@@ -14,6 +14,8 @@ require 'pathname.so'
14
14
 
15
15
  class Pathname
16
16
 
17
+ VERSION = "0.3.0"
18
+
17
19
  # :stopdoc:
18
20
 
19
21
  # to_path is implemented so Pathname objects are usable with File.open, etc.
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 = "pathname"
3
- spec.version = "0.2.1"
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.2.1
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: 2022-12-05 00:00:00.000000000 Z
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.4.0.dev
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