pathname2 1.7.1-universal-mingw32 → 1.8.3-universal-mingw32

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDcxYjA1NDMxNWUyNWYzNGZlOTE4NGJhNzM5NDUzNGFhNTZlMDY4Yg==
5
- data.tar.gz: !binary |-
6
- YTM1ZGMwYzJlODBlM2E0OGUyZjZmZmJmOTE1ZjU5Y2IyMjk3NWJjOA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MWEwM2Y2ZGZlY2I0NjhhNzY2ZWNjZjRiMzE2ZTIwNGY2NGZmNmE0MTI2NmJh
10
- Y2ZhNmJkZTRjOTIxZmZiYmRhMzcyYTk1YjQ2MzAyZDgyYjJlM2E0MjViMmVh
11
- ZGY1MjZmM2NjZTViM2Y4N2IzYzFjZmQzZjQwOTUxNWY4OTVjZGQ=
12
- data.tar.gz: !binary |-
13
- YzMwMDNmMmI0YTdlZThhMTAxYWIzN2Y1OGQzM2FkYmQ4NzlmNjYyOTZkMWU0
14
- Y2RmNWJjZDUyYTNkM2RlODJiNjVlMjA5ZGM1YTdlZTIwZjdhNjkyZjdkMzUx
15
- ZTdlM2UyMzczMDYzYjgwNzJmMzNjOTcwMTE0Y2M0NGUzNmU3MzY=
2
+ SHA256:
3
+ metadata.gz: '08183bb79046805921894e46d99615a8503ba1d806b6c3053fb380ebeac7c895'
4
+ data.tar.gz: ff95f1dc5a57a8068fbb3906ceea1522d1369b20472ec41d2ef9e28751e04c15
5
+ SHA512:
6
+ metadata.gz: 9c3f2890b451a85b8832003b2a3fe6838bec86dfc9eb8a075408ebeada0cce924b25823534fb685c68f7f8849d4d6b132ca223da7424da832da97e6c570258d8
7
+ data.tar.gz: 7c6cc4c684ae3a7717da5f96ec744d5e37e5f8ad310350eafb3bb529c64bd8418800cbbda1a3fd45a7a6b05bbe64673d8e294a837e16708cae8ff11c2c183c65
@@ -0,0 +1,2 @@
1
+ ��5�"�$�'}��uO�Z`8������-8�;\O*�Й��8����c�Dzt�U�.c�]t̖���?��7J,�7�An��7�oT�lƛi��~b�Gt���$bJ��Zba����*i�V;h�]9��;S4�n\{��„�!��>�E�̐�#��МI��nX���C��P%ni� �OG2x.wr��/\q7C�<F��Gcܡyү��oF-��X�Uw�X�m0
2
+ �W�O��d�L]x��.���fC6��R�o�B/֎�{d.pOs!��(D��x����IJ��������Σ��D�-�z]0����<�������Ș
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,34 @@
1
+ == 1.8.3 - 30-Aug-2020
2
+ * Updated the tests to match the version. Thanks go to Cédric Boutillier for the spot.
3
+ * Fixed a redefinition warning for the :children method.
4
+ * Fixed a Fixnum deprecation warning.
5
+
6
+ == 1.8.2 - 21-Jul-2020
7
+ * Added a LICENSE file as required by the Apache-2.0 license.
8
+
9
+ == 1.8.1 - 31-Jan-2019
10
+ * The VERSION constant is now frozen.
11
+ * Added metadata to the gemspec.
12
+ * Fixed missing hyphen in license name.
13
+ * Updated cert, should be good for about 10 years.
14
+
15
+ == 1.8.0 - 19-Jun-2016
16
+ * Changed license to Apache-2.0.
17
+ * Some cleanup and updates to the Rakefile and benchmarks.
18
+ * Refactored some realpath tests so they're not touching system files like
19
+ /dev/stdin any more. Thanks go to Michael R. Crusoe for pointing out the
20
+ potential pitfalls of doing that.
21
+
22
+ == 1.7.4 - 7-Sep-2015
23
+ * This gem is now signed.
24
+ * Rakefile now assumes Rubygems 2.x for some tasks.
25
+
26
+ == 1.7.3 - 24-Apr-2014
27
+ * The basename and dirname methods now return Pathname objects.
28
+
29
+ == 1.7.2 - 23-Apr-2014
30
+ * The join and expand_path methods now return Pathname objects.
31
+
1
32
  == 1.7.1 - 28-Mar-2014
2
33
  * Updated gemspec for Windows vs Unix.
3
34
  * Updated README and MANIFEST.
data/LICENSE ADDED
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
data/MANIFEST CHANGED
@@ -1,10 +1,12 @@
1
1
  * CHANGES
2
+ * LICENSE
2
3
  * MANIFEST
3
4
  * Rakefile
4
5
  * README
5
6
  * pathname2.gempsec
6
7
  * benchmarks/bench_all.rb
7
8
  * benchmarks/bench_plus.rb
9
+ * certs/djberg96_pub.pem
8
10
  * examples/example_pathname.rb
9
11
  * lib/pathname2.rb
10
12
  * test/test_pathname.rb
data/README CHANGED
@@ -14,8 +14,8 @@
14
14
  require 'pathname2'
15
15
 
16
16
  # Unix
17
- path1 = "/foo/bar/baz"
18
- path2 = "../zap"
17
+ path1 = Pathname.new("/foo/bar/baz")
18
+ path2 = Pathname.new("../zap")
19
19
 
20
20
  path1 + path2 # "/foo/bar/zap"
21
21
  path1 / path2 # "/foo/bar/zap" (same as +)
@@ -24,8 +24,8 @@
24
24
  path1.to_a # ['foo','bar','baz']
25
25
 
26
26
  # Windows
27
- path1 = "C:/foo/bar/baz"
28
- path2 = "../zap"
27
+ path1 = Pathname.new("C:/foo/bar/baz")
28
+ path2 = Pathname.new("../zap")
29
29
 
30
30
  path1 + path2 # "C:\\foo\\bar\\zap"
31
31
  path1.root # "C:\\"
@@ -72,21 +72,20 @@
72
72
  method that is used by the pathname2 library.
73
73
 
74
74
  == Known Issues
75
- In Ruby 1.8.3 and 1.8.4 you will see a failure in the test suite regarding
76
- 'fu_world_writable?' from FileUtils. You can ignore this. That method is
77
- supposed to be private. See ruby-core:7383.
75
+ On MS Windows, some methods may not work on pathnames greater than 260
76
+ characters because of internal function limitations.
78
77
 
79
- Any other issues should be reported on the project page at
78
+ Any issues you find should be reported on the project page at
80
79
  https://github.com/djberg96/pathname2
81
80
 
82
81
  == Future Plans
83
82
  Suggestions welcome.
84
83
 
85
84
  == License
86
- Artistic 2.0
85
+ Apache-2.0
87
86
 
88
87
  == Copyright
89
- (C) 2003-2014 Daniel J. Berger
88
+ (C) 2003-2020 Daniel J. Berger
90
89
  All rights reserved.
91
90
 
92
91
  == Warranty
data/Rakefile CHANGED
@@ -7,19 +7,16 @@ CLEAN.include("**/*.gem", "**/*.rbc")
7
7
  namespace :gem do
8
8
  desc "Build the pathname2 gem"
9
9
  task :create => [:clean] do
10
+ require 'rubygems/package'
10
11
  spec = eval(IO.read('pathname2.gemspec'))
11
- if Gem::VERSION < "2.0"
12
- Gem::Builder.new(spec).build
13
- else
14
- require 'rubygems/package'
15
- Gem::Package.build(spec)
16
- end
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
+ Gem::Package.build(spec, true)
17
14
  end
18
15
 
19
16
  desc "Install the pathname2 gem"
20
17
  task :install => [:create] do
21
18
  file = Dir["*.gem"].first
22
- sh "gem install #{file}"
19
+ sh "gem install -l #{file}"
23
20
  end
24
21
  end
25
22
 
@@ -132,6 +129,12 @@ namespace :test do
132
129
  t.verbose = true
133
130
  t.test_files = FileList["test/#{dir}/test_is_unc.rb"]
134
131
  end
132
+
133
+ Rake::TestTask.new(:join) do |t|
134
+ t.warning = true
135
+ t.verbose = true
136
+ t.test_files = FileList["test/#{dir}/test_join.rb"]
137
+ end
135
138
 
136
139
  Rake::TestTask.new(:long_path) do |t|
137
140
  t.warning = true
@@ -12,7 +12,7 @@ require 'benchmark'
12
12
  require 'pathname2'
13
13
  require 'rbconfig'
14
14
 
15
- if Config::CONFIG['host_os'].match("mswin")
15
+ if RbConfig::CONFIG['host_os'] =~ /mingw|mswin/i
16
16
  path1 = Pathname.new("C:\\Program Files\\Windows NT")
17
17
  path2 = Pathname.new("Accessories")
18
18
  path3 = Pathname.new("C:\\Program Files\\..\\.\\Windows NT")
@@ -26,102 +26,102 @@ end
26
26
  MAX = 10000
27
27
 
28
28
  Benchmark.bm(25) do |bench|
29
- bench.report("Pathname.new(path)"){
30
- MAX.times{ Pathname.new("/usr/local/bin") }
31
- }
32
-
33
- bench.report("Pathname#+(Pathname)"){
34
- MAX.times{ path1 + path2 }
35
- }
36
-
37
- bench.report("Pathname#+(String)"){
38
- MAX.times{ path1 + path2 }
39
- }
40
-
41
- bench.report("Pathname#children"){
42
- MAX.times{ path1.children }
43
- }
44
-
45
- bench.report("Pathname#pstrip"){
46
- MAX.times{ path1.pstrip }
47
- }
48
-
49
- bench.report("Pathname#pstrip!"){
50
- MAX.times{ path1.pstrip! }
51
- }
52
-
53
- bench.report("Pathname#to_a"){
54
- MAX.times{ path1.to_a }
55
- }
56
-
57
- bench.report("Pathname#descend"){
58
- MAX.times{ path1.descend{} }
59
- }
60
-
61
- bench.report("Pathname#ascend"){
62
- MAX.times{ path1.ascend{} }
63
- }
64
-
65
- bench.report("Pathname#root"){
66
- MAX.times{ path1.root }
67
- }
68
-
69
- bench.report("Pathname#root?"){
70
- MAX.times{ path1.root? }
71
- }
72
-
73
- bench.report("Pathname#<=>"){
74
- MAX.times{ path1 <=> path2 }
75
- }
76
-
77
- bench.report("Pathname#absolute?"){
78
- MAX.times{ path1.absolute? }
79
- }
80
-
81
- bench.report("Pathname#relative?"){
82
- MAX.times{ path1.relative? }
83
- }
84
-
85
- bench.report("Pathname#clean"){
86
- MAX.times{ path3.clean }
87
- }
88
-
89
- bench.report("Pathname#clean!"){
90
- MAX.times{ path3.clean! }
91
- }
92
-
93
- # Platform specific tests
94
- if Config::CONFIG['host_os'].match("mswin")
95
- bench.report("Pathname.new(file_url)"){
96
- MAX.times{ Pathname.new("file:///C:/usr/local/bin") }
97
- }
98
-
99
- bench.report("Pathname#drive_number"){
100
- MAX.times{ path1.drive_number }
101
- }
102
-
103
- bench.report("Pathname#unc?"){
104
- MAX.times{ path1.unc? }
105
- }
106
-
107
- bench.report("Pathname#undecorate"){
108
- MAX.times{ path1.undecorate }
109
- }
110
-
111
- bench.report("Pathname#undecorate!"){
112
- MAX.times{ path1.undecorate! }
113
- }
114
-
115
- bench.report("Pathname#short_path"){
116
- MAX.times{ path1.short_path }
117
- }
118
-
119
- bench.report("Pathname#long_path"){
120
- MAX.times{ path1.long_path }
121
- }
122
- else
123
- bench.report("Pathname#realpath"){
124
- MAX.times{ path4.realpath }
125
- }
126
- end
29
+ bench.report("Pathname.new(path)"){
30
+ MAX.times{ Pathname.new("/usr/local/bin") }
31
+ }
32
+
33
+ bench.report("Pathname#+(Pathname)"){
34
+ MAX.times{ path1 + path2 }
35
+ }
36
+
37
+ bench.report("Pathname#+(String)"){
38
+ MAX.times{ path1 + path2 }
39
+ }
40
+
41
+ bench.report("Pathname#children"){
42
+ MAX.times{ path1.children }
43
+ }
44
+
45
+ bench.report("Pathname#pstrip"){
46
+ MAX.times{ path1.pstrip }
47
+ }
48
+
49
+ bench.report("Pathname#pstrip!"){
50
+ MAX.times{ path1.pstrip! }
51
+ }
52
+
53
+ bench.report("Pathname#to_a"){
54
+ MAX.times{ path1.to_a }
55
+ }
56
+
57
+ bench.report("Pathname#descend"){
58
+ MAX.times{ path1.descend{} }
59
+ }
60
+
61
+ bench.report("Pathname#ascend"){
62
+ MAX.times{ path1.ascend{} }
63
+ }
64
+
65
+ bench.report("Pathname#root"){
66
+ MAX.times{ path1.root }
67
+ }
68
+
69
+ bench.report("Pathname#root?"){
70
+ MAX.times{ path1.root? }
71
+ }
72
+
73
+ bench.report("Pathname#<=>"){
74
+ MAX.times{ path1 <=> path2 }
75
+ }
76
+
77
+ bench.report("Pathname#absolute?"){
78
+ MAX.times{ path1.absolute? }
79
+ }
80
+
81
+ bench.report("Pathname#relative?"){
82
+ MAX.times{ path1.relative? }
83
+ }
84
+
85
+ bench.report("Pathname#clean"){
86
+ MAX.times{ path3.clean }
87
+ }
88
+
89
+ bench.report("Pathname#clean!"){
90
+ MAX.times{ path3.clean! }
91
+ }
92
+
93
+ # Platform specific tests
94
+ if RbConfig::CONFIG['host_os'] =~ /mingw|mswin/i
95
+ bench.report("Pathname.new(file_url)"){
96
+ MAX.times{ Pathname.new("file:///C:/usr/local/bin") }
97
+ }
98
+
99
+ bench.report("Pathname#drive_number"){
100
+ MAX.times{ path1.drive_number }
101
+ }
102
+
103
+ bench.report("Pathname#unc?"){
104
+ MAX.times{ path1.unc? }
105
+ }
106
+
107
+ bench.report("Pathname#undecorate"){
108
+ MAX.times{ path1.undecorate }
109
+ }
110
+
111
+ bench.report("Pathname#undecorate!"){
112
+ MAX.times{ path1.undecorate! }
113
+ }
114
+
115
+ bench.report("Pathname#short_path"){
116
+ MAX.times{ path1.short_path }
117
+ }
118
+
119
+ bench.report("Pathname#long_path"){
120
+ MAX.times{ path1.long_path }
121
+ }
122
+ else
123
+ bench.report("Pathname#realpath"){
124
+ MAX.times{ path4.realpath }
125
+ }
126
+ end
127
127
  end
@@ -0,0 +1,26 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
3
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
7
+ A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
8
+ u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
9
+ 75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
10
+ 6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
11
+ iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
12
+ ctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
13
+ 74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq
14
+ 058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
15
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
16
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
17
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
18
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
19
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
20
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
21
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
22
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
26
+ -----END CERTIFICATE-----
@@ -61,7 +61,7 @@ class Pathname < String
61
61
  ]
62
62
 
63
63
  facade Dir, Dir.methods(false).map{ |m| m.to_sym } - [
64
- :chdir, :entries, :glob, :foreach, :mkdir, :open
64
+ :chdir, :entries, :glob, :foreach, :mkdir, :open, :children
65
65
  ]
66
66
 
67
67
  private
@@ -93,7 +93,7 @@ class Pathname < String
93
93
  public
94
94
 
95
95
  # The version of the pathname2 library
96
- VERSION = '1.7.1'
96
+ VERSION = '1.8.3'.freeze
97
97
 
98
98
  # The maximum length of a path
99
99
  MAXPATH = 1024 unless defined? MAXPATH # Yes, I willfully violate POSIX
@@ -373,7 +373,7 @@ class Pathname < String
373
373
  # path[0..1] # => 'C:\Documents and Settings'
374
374
  #
375
375
  def [](index, length=nil)
376
- if index.is_a?(Fixnum)
376
+ if index.is_a?(Numeric)
377
377
  if length
378
378
  path = File.join(to_a[index, length])
379
379
  else
@@ -385,7 +385,7 @@ class Pathname < String
385
385
  end
386
386
  path = File.join(to_a[index])
387
387
  else
388
- raise TypeError, "Only Fixnums and Ranges allowed as first argument"
388
+ raise TypeError, "Only Numerics and Ranges allowed as first argument"
389
389
  end
390
390
 
391
391
  if path && @win
@@ -810,7 +810,27 @@ class Pathname < String
810
810
  local_path = self.dup
811
811
 
812
812
  level.times{ |n| local_path = File.dirname(local_path) }
813
- local_path
813
+ self.class.new(local_path)
814
+ end
815
+
816
+ # Joins the given pathnames onto +self+ to create a new Pathname object.
817
+ #
818
+ # path = Pathname.new("C:/Users")
819
+ # path = path.join("foo", "Downloads") # => C:/Users/foo/Downloads
820
+ #
821
+ def join(*args)
822
+ args.unshift self
823
+ result = args.pop
824
+ result = self.class.new(result) unless result === self.class
825
+ return result if result.absolute?
826
+
827
+ args.reverse_each{ |path|
828
+ path = self.class.new(path) unless path === self.class
829
+ result = path + result
830
+ break if result.absolute?
831
+ }
832
+
833
+ result
814
834
  end
815
835
 
816
836
  # A custom pretty printer
@@ -967,17 +987,12 @@ class Pathname < String
967
987
 
968
988
  # File.basename
969
989
  def basename(*args)
970
- File.basename(self, *args)
990
+ self.class.new(File.basename(self, *args))
971
991
  end
972
992
 
973
993
  # File.expand_path
974
994
  def expand_path(*args)
975
- File.expand_path(self, *args)
976
- end
977
-
978
- # File.join
979
- def join(*args)
980
- File.join(self, *args)
995
+ self.class.new(File.expand_path(self, *args))
981
996
  end
982
997
 
983
998
  #--
@@ -2,13 +2,14 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pathname2'
5
- spec.version = '1.7.1'
5
+ spec.version = '1.8.3'
6
6
  spec.author = 'Daniel J. Berger'
7
- spec.license = 'Artistic 2.0'
7
+ spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
9
  spec.homepage = 'https://github.com/djberg96/pathname2'
10
10
  spec.summary = 'An alternate implementation of the Pathname class'
11
11
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
12
+ spec.cert_chain = ['certs/djberg96_pub.pem']
12
13
 
13
14
  spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
14
15
 
@@ -16,6 +17,15 @@ Gem::Specification.new do |spec|
16
17
  spec.add_development_dependency('test-unit')
17
18
  spec.add_development_dependency('rake')
18
19
 
20
+ spec.metadata = {
21
+ 'homepage_uri' => 'https://github.com/djberg96/pathname2',
22
+ 'bug_tracker_uri' => 'https://github.com/djberg96/pathname2/issues',
23
+ 'changelog_uri' => 'https://github.com/djberg96/pathname2/blob/ffi/CHANGES',
24
+ 'documentation_uri' => 'https://github.com/djberg96/pathname2/wiki',
25
+ 'source_code_uri' => 'https://github.com/djberg96/pathname2',
26
+ 'wiki_uri' => 'https://github.com/djberg96/pathname2/wiki'
27
+ }
28
+
19
29
  if File::ALT_SEPARATOR
20
30
  spec.add_dependency('ffi')
21
31
  spec.test_files = FileList['test/windows/*.rb', 'test/test_version.rb']
@@ -5,6 +5,7 @@
5
5
  # should be run via the test rake task.
6
6
  ##############################################################################
7
7
  require 'pathname2'
8
+ require 'fileutils'
8
9
  require 'rbconfig'
9
10
  require 'test-unit'
10
11
  include RbConfig
@@ -30,6 +31,10 @@ class TC_Pathname < Test::Unit::TestCase
30
31
  @rel_array = []
31
32
 
32
33
  @mypath = MyPathname.new('/usr/bin')
34
+
35
+ @test_file = 'realpath_test.txt'
36
+ @link_file = 'realpath_symlink.txt'
37
+ @link_file2 = 'realpath_symlink2.txt'
33
38
  end
34
39
 
35
40
  # Convenience method to verify that the receiver was not modified
@@ -62,41 +67,30 @@ class TC_Pathname < Test::Unit::TestCase
62
67
 
63
68
  # Convenience method for test_relative_path_from_expected_errors
64
69
  def assert_relpath_err(to, from)
65
- assert_raise(ArgumentError) {
66
- Pathname.new(to).relative_path_from(from)
67
- }
70
+ assert_raise(ArgumentError) { Pathname.new(to).relative_path_from(from) }
68
71
  end
69
72
 
70
- def test_file_url_path
73
+ test "url_path returns expected result" do
71
74
  assert_equal('/foo bar/baz', @url_path)
72
75
  end
73
76
 
74
- def test_realpath
77
+ test "realpath basic functionality" do
78
+ FileUtils.touch(@test_file) && File.symlink(@test_file, @link_file)
75
79
  assert_respond_to(@abs_path, :realpath)
76
80
  assert_equal(@@pwd, Pathname.new('.').realpath)
77
- assert_kind_of(Pathname, Pathname.new('/dev/stdin').realpath)
78
- assert(Pathname.new('/dev/stdin') != Pathname.new('/dev/stdin').realpath)
79
- if CONFIG['host_os'] =~ /bsd|darwin|mac/i
80
- assert_raises(Errno::ENOENT){ Pathname.new('../blahblah/bogus').realpath }
81
- else
82
- assert_raises(Errno::ENOENT){ Pathname.new('../bogus').realpath }
83
- end
84
- end
85
-
86
- def test_realpath_platform
87
- case CONFIG['host_os']
88
- when /linux/i
89
- path1 = '/dev/stdin'
90
- assert_true(['/dev/pts/0', '/dev/proc/self/fd/0'].include?(Pathname.new(path1).realpath))
91
- when /sunos|solaris/i
92
- path1 = '/dev/null'
93
- path2 = '/dev/stdin'
94
- path3 = '/dev/fd0' # Multiple symlinks
95
-
96
- assert_equal('/devices/pseudo/mm@0:null', Pathname.new(path1).realpath)
97
- assert_equal('/dev/fd/0', Pathname.new(path2).realpath)
98
- assert_equal('/devices/pci@1f,0/isa@7/dma@0,0/floppy@0,3f0:c', Pathname.new(path3).realpath)
99
- end
81
+ assert_kind_of(Pathname, Pathname.new(@link_file).realpath)
82
+ end
83
+
84
+ test "realpath returns expected result for simple symlink" do
85
+ FileUtils.touch(@test_file) && File.symlink(@test_file, @link_file)
86
+ assert_true(Pathname.new(@link_file) != Pathname.new(@link_file).realpath)
87
+ assert_raises(Errno::ENOENT){ Pathname.new('../bogus').realpath }
88
+ end
89
+
90
+ test "realpath returns expected result for nested symlink" do
91
+ FileUtils.touch(@test_file) && File.symlink(@test_file, @link_file) && File.symlink(@link_file, @link_file2)
92
+ assert_true(Pathname.new(@link_file) != Pathname.new(@link_file2).realpath)
93
+ assert_equal(Pathname.new(@link_file).realpath, Pathname.new(@link_file2).realpath)
100
94
  end
101
95
 
102
96
  # These tests taken directly from Tanaka's pathname.rb. The one failure
@@ -476,6 +470,14 @@ class TC_Pathname < Test::Unit::TestCase
476
470
  @mypath = nil
477
471
  @abs_array.clear
478
472
  @rel_array.clear
473
+
474
+ File.delete(@link_file2) if File.exist?(@link_file2)
475
+ File.delete(@link_file) if File.exist?(@link_file)
476
+ File.delete(@test_file) if File.exist?(@test_file)
477
+
478
+ @link_file2 = nil
479
+ @link_file = nil
480
+ @test_file = nil
479
481
  end
480
482
 
481
483
  def self.shutdown
@@ -8,6 +8,10 @@ require 'test-unit'
8
8
 
9
9
  class TC_Pathname_Version < Test::Unit::TestCase
10
10
  test "version is set to expected value" do
11
- assert_equal('1.7.1', Pathname::VERSION)
11
+ assert_equal('1.8.3', Pathname::VERSION)
12
+ end
13
+
14
+ test "version is frozen" do
15
+ assert_true(Pathname::VERSION.frozen?)
12
16
  end
13
17
  end
@@ -51,11 +51,11 @@ class TC_Pathname_Facade < Test::Unit::TestCase
51
51
  assert_respond_to(@path, :sysopen)
52
52
  end
53
53
 
54
- test "exists? facade works as expected" do
55
- assert_respond_to(@path, :exists?)
56
- assert_nothing_raised{ @path.exists? }
57
- assert_true(Pathname.new("C:\\").exists?)
58
- assert_false(Pathname.new("X:\\foo\\bar\\baz").exists?)
54
+ test "exist? facade works as expected" do
55
+ assert_respond_to(@path, :exist?)
56
+ assert_nothing_raised{ @path.exist? }
57
+ assert_true(Pathname.new("C:\\").exist?)
58
+ assert_false(Pathname.new("X:\\foo\\bar\\baz").exist?)
59
59
  end
60
60
 
61
61
  def teardown
@@ -0,0 +1,52 @@
1
+ ########################################################################
2
+ # test_join.rb
3
+ #
4
+ # Test suite for the Pathname#join method.
5
+ ########################################################################
6
+ require 'test-unit'
7
+ require 'pathname2'
8
+
9
+ class TC_Pathname_Join < Test::Unit::TestCase
10
+ def setup
11
+ @apath = Pathname.new("C:\\foo\\bar")
12
+ @rpath = Pathname.new("foo\\bar\\baz")
13
+ end
14
+
15
+ def assert_pathname_join(final, initial, *rest)
16
+ a = Pathname.new(final)
17
+ b = Pathname.new(initial)
18
+ assert_equal(a, b.join(*rest))
19
+ end
20
+
21
+ test "join method accepts one or more arguments" do
22
+ assert_nothing_raised{ @apath.join("foo") }
23
+ assert_nothing_raised{ @apath.join("foo", "bar") }
24
+ assert_nothing_raised{ @apath.join("foo", "bar", "baz") }
25
+ end
26
+
27
+ test "join method returns expected results when joining relative paths to an absolute path" do
28
+ assert_pathname_join("C:\\foo", "C:\\", "foo")
29
+ assert_pathname_join("C:\\foo\\bar", "C:\\foo", "bar")
30
+ assert_pathname_join("C:\\foo\\bar\\baz", "C:\\foo", "bar", "baz")
31
+ end
32
+
33
+ test "join method returns expected results when joining relative paths to a relative path" do
34
+ assert_pathname_join("foo\\bar", "foo", "bar")
35
+ assert_pathname_join("foo\\bar\\baz", "foo", "bar", "baz")
36
+ end
37
+
38
+ test "join method returns expected results when joining an absolute path to an absolute path" do
39
+ assert_pathname_join("D:\\", "C:\\", "D:\\")
40
+ assert_pathname_join("D:\\foo", "C:\\", "D:\\", "foo")
41
+ assert_pathname_join("D:\\", "C:\\", "foo", "bar", "D:\\")
42
+ end
43
+
44
+ test "join returns an instance of Pathname" do
45
+ assert_kind_of(Pathname, @apath.join("foo"))
46
+ end
47
+
48
+ def teardown
49
+ @apath = nil
50
+ @rpath = nil
51
+ end
52
+ end
metadata CHANGED
@@ -1,77 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pathname2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.3
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
18
+ A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
19
+ u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
20
+ 75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
21
+ 6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
22
+ iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
23
+ ctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
24
+ 74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq
25
+ 058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
26
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
27
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
28
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
29
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
30
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
31
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
32
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
33
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
34
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
35
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
+ -----END CERTIFICATE-----
38
+ date:
12
39
  dependencies:
13
40
  - !ruby/object:Gem::Dependency
14
41
  name: facade
15
42
  requirement: !ruby/object:Gem::Requirement
16
43
  requirements:
17
- - - ! '>='
44
+ - - ">="
18
45
  - !ruby/object:Gem::Version
19
46
  version: '0'
20
47
  type: :runtime
21
48
  prerelease: false
22
49
  version_requirements: !ruby/object:Gem::Requirement
23
50
  requirements:
24
- - - ! '>='
51
+ - - ">="
25
52
  - !ruby/object:Gem::Version
26
53
  version: '0'
27
54
  - !ruby/object:Gem::Dependency
28
55
  name: test-unit
29
56
  requirement: !ruby/object:Gem::Requirement
30
57
  requirements:
31
- - - ! '>='
58
+ - - ">="
32
59
  - !ruby/object:Gem::Version
33
60
  version: '0'
34
61
  type: :development
35
62
  prerelease: false
36
63
  version_requirements: !ruby/object:Gem::Requirement
37
64
  requirements:
38
- - - ! '>='
65
+ - - ">="
39
66
  - !ruby/object:Gem::Version
40
67
  version: '0'
41
68
  - !ruby/object:Gem::Dependency
42
69
  name: rake
43
70
  requirement: !ruby/object:Gem::Requirement
44
71
  requirements:
45
- - - ! '>='
72
+ - - ">="
46
73
  - !ruby/object:Gem::Version
47
74
  version: '0'
48
75
  type: :development
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
52
- - - ! '>='
79
+ - - ">="
53
80
  - !ruby/object:Gem::Version
54
81
  version: '0'
55
82
  - !ruby/object:Gem::Dependency
56
83
  name: ffi
57
84
  requirement: !ruby/object:Gem::Requirement
58
85
  requirements:
59
- - - ! '>='
86
+ - - ">="
60
87
  - !ruby/object:Gem::Version
61
88
  version: '0'
62
89
  type: :runtime
63
90
  prerelease: false
64
91
  version_requirements: !ruby/object:Gem::Requirement
65
92
  requirements:
66
- - - ! '>='
93
+ - - ">="
67
94
  - !ruby/object:Gem::Version
68
95
  version: '0'
69
- description: ! " The pathname2 library provides an implementation of the Pathname\n
70
- \ class different from the one that ships as part of the Ruby standard\n library.
71
- It is a subclass of String, though several methods have been\n overridden to
72
- better fit a path context. In addition, it supports file\n URL's as paths, provides
73
- additional methods for Windows paths, and\n handles UNC paths on Windows properly.
74
- See the README file for more\n details.\n"
96
+ description: |2
97
+ The pathname2 library provides an implementation of the Pathname
98
+ class different from the one that ships as part of the Ruby standard
99
+ library. It is a subclass of String, though several methods have been
100
+ overridden to better fit a path context. In addition, it supports file
101
+ URL's as paths, provides additional methods for Windows paths, and
102
+ handles UNC paths on Windows properly. See the README file for more
103
+ details.
75
104
  email: djberg96@gmail.com
76
105
  executables: []
77
106
  extensions: []
@@ -80,17 +109,25 @@ extra_rdoc_files:
80
109
  - CHANGES
81
110
  - MANIFEST
82
111
  files:
112
+ - benchmarks
83
113
  - benchmarks/bench_pathname.rb
84
114
  - benchmarks/bench_plus.rb
115
+ - certs
116
+ - certs/djberg96_pub.pem
85
117
  - CHANGES
118
+ - examples
86
119
  - examples/example_pathname.rb
120
+ - lib
87
121
  - lib/pathname2.rb
122
+ - LICENSE
88
123
  - MANIFEST
89
124
  - pathname2.gemspec
90
125
  - Rakefile
91
126
  - README
127
+ - test
92
128
  - test/test_pathname.rb
93
129
  - test/test_version.rb
130
+ - test/windows
94
131
  - test/windows/test_append.rb
95
132
  - test/windows/test_aref.rb
96
133
  - test/windows/test_ascend.rb
@@ -106,6 +143,7 @@ files:
106
143
  - test/windows/test_is_relative.rb
107
144
  - test/windows/test_is_root.rb
108
145
  - test/windows/test_is_unc.rb
146
+ - test/windows/test_join.rb
109
147
  - test/windows/test_long_path.rb
110
148
  - test/windows/test_misc.rb
111
149
  - test/windows/test_parent.rb
@@ -120,25 +158,30 @@ files:
120
158
  - test/windows/test_undecorate_bang.rb
121
159
  homepage: https://github.com/djberg96/pathname2
122
160
  licenses:
123
- - Artistic 2.0
124
- metadata: {}
161
+ - Apache-2.0
162
+ metadata:
163
+ homepage_uri: https://github.com/djberg96/pathname2
164
+ bug_tracker_uri: https://github.com/djberg96/pathname2/issues
165
+ changelog_uri: https://github.com/djberg96/pathname2/blob/ffi/CHANGES
166
+ documentation_uri: https://github.com/djberg96/pathname2/wiki
167
+ source_code_uri: https://github.com/djberg96/pathname2
168
+ wiki_uri: https://github.com/djberg96/pathname2/wiki
125
169
  post_install_message:
126
170
  rdoc_options: []
127
171
  require_paths:
128
172
  - lib
129
173
  required_ruby_version: !ruby/object:Gem::Requirement
130
174
  requirements:
131
- - - ! '>='
175
+ - - ">="
132
176
  - !ruby/object:Gem::Version
133
177
  version: '0'
134
178
  required_rubygems_version: !ruby/object:Gem::Requirement
135
179
  requirements:
136
- - - ! '>='
180
+ - - ">="
137
181
  - !ruby/object:Gem::Version
138
182
  version: '0'
139
183
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.0.3
184
+ rubygems_version: 3.0.3
142
185
  signing_key:
143
186
  specification_version: 4
144
187
  summary: An alternate implementation of the Pathname class
@@ -158,6 +201,7 @@ test_files:
158
201
  - test/windows/test_is_relative.rb
159
202
  - test/windows/test_is_root.rb
160
203
  - test/windows/test_is_unc.rb
204
+ - test/windows/test_join.rb
161
205
  - test/windows/test_long_path.rb
162
206
  - test/windows/test_misc.rb
163
207
  - test/windows/test_parent.rb
Binary file