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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eca512f0553c41d9258bf2b4bb6e5fb8a0eac4e
4
- data.tar.gz: 5e96c3fbd0a6be1644a8e567786e040529f2cef2
3
+ metadata.gz: da83ccb5b4a3dd2a6f6c8b3e6f5e0b9c8f74fbcb
4
+ data.tar.gz: b3691c3879c4d5f007e25f2b0890f96448c0397d
5
5
  SHA512:
6
- metadata.gz: 90f5e288f86becab946179f1e2270bfb642cd267ea487cf31b4f617304912377da722e1196d324e1f408d0af2836d156a78e2711428abcfaed71338338b7d5ac
7
- data.tar.gz: 982627ffc369693216c45d976f7ff6a76572aa83a973e601cd5ceb5c534fd27a3bef2e7f99425bcdcf3654017a34c2b1d4ff0898fa2d487845bb21ab48613d4e
6
+ metadata.gz: 66ebfaf4881de314eb805ac540937caaf18ee909fa4c5d87bfcb3fdc5177f0af8762a1245ff7b405fc9435af754e55d300aaa4e7285091cd5e4e6fbc9333c848
7
+ data.tar.gz: 0427fa5eee4a60a999585fa2784aaa85963c881054f84c2cc75a6a04d1987e5d01edb08fd6e03c7b2537529e7d875161f27f5b1f6e76a146af5c2d5fa454483d
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.7.3 - 24-Apr-2014
2
+ * The basename and dirname methods now return Pathname objects.
3
+
1
4
  == 1.7.2 - 23-Apr-2014
2
5
  * The join and expand_path methods now return Pathname objects.
3
6
 
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.2'
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
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pathname2'
5
- spec.version = '1.7.2'
5
+ spec.version = '1.7.3'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
data/test/test_version.rb CHANGED
@@ -8,6 +8,6 @@ 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.2', Pathname::VERSION)
11
+ assert_equal('1.7.3', Pathname::VERSION)
12
12
  end
13
13
  end
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facade