pathname2 1.7.2 → 1.7.3
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/CHANGES +3 -0
- data/lib/pathname2.rb +3 -3
- data/pathname2.gemspec +1 -1
- data/test/test_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da83ccb5b4a3dd2a6f6c8b3e6f5e0b9c8f74fbcb
|
4
|
+
data.tar.gz: b3691c3879c4d5f007e25f2b0890f96448c0397d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ebfaf4881de314eb805ac540937caaf18ee909fa4c5d87bfcb3fdc5177f0af8762a1245ff7b405fc9435af754e55d300aaa4e7285091cd5e4e6fbc9333c848
|
7
|
+
data.tar.gz: 0427fa5eee4a60a999585fa2784aaa85963c881054f84c2cc75a6a04d1987e5d01edb08fd6e03c7b2537529e7d875161f27f5b1f6e76a146af5c2d5fa454483d
|
data/CHANGES
CHANGED
data/lib/pathname2.rb
CHANGED
@@ -93,7 +93,7 @@ class Pathname < String
|
|
93
93
|
public
|
94
94
|
|
95
95
|
# The version of the pathname2 library
|
96
|
-
VERSION = '1.7.
|
96
|
+
VERSION = '1.7.3'
|
97
97
|
|
98
98
|
# The maximum length of a path
|
99
99
|
MAXPATH = 1024 unless defined? MAXPATH # Yes, I willfully violate POSIX
|
@@ -810,7 +810,7 @@ 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
814
|
end
|
815
815
|
|
816
816
|
# Joins the given pathnames onto +self+ to create a new Pathname object.
|
@@ -987,7 +987,7 @@ class Pathname < String
|
|
987
987
|
|
988
988
|
# File.basename
|
989
989
|
def basename(*args)
|
990
|
-
File.basename(self, *args)
|
990
|
+
self.class.new(File.basename(self, *args))
|
991
991
|
end
|
992
992
|
|
993
993
|
# File.expand_path
|
data/pathname2.gemspec
CHANGED
data/test/test_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pathname2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facade
|