pathname2 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5165531aa35752840081d667777773d0c9454469
4
- data.tar.gz: 57adf11db15d378dc9ed2842eba73c97870c892d
3
+ metadata.gz: a45bf8835ded8326c6c8d0667803b5ddfc1ce513
4
+ data.tar.gz: bddb0aa47ca5a98b5e513d0203e1ed9b086d3ef5
5
5
  SHA512:
6
- metadata.gz: af28207a0de15d27d2e117ef3a1816782d38b0457b068a461d25bef71edc23cbc86e5813e7815363e42ffc215f714aeeba9f616965dea007b9842ed2727ae16f
7
- data.tar.gz: 818a838fd0ced9406064a7d698f7b23d74f0b2cc5f39a1d41c92cb1ffa620db22e241edcc4f9e96a70dc26246ef8a65eff888954079ec5b59a5c69ee411bd7bb
6
+ metadata.gz: a86e59426f9e6c587859d464616d968671764581615e519775ee9f3150237c170eaeb7311999ddf557e2ebe55fed5d5a0220d967f386ca9be5e1677ab3982307
7
+ data.tar.gz: 2e8b806858a9c318e8b7704981208d848ffadf08d589bcdde4277ef409b8d49e39255b20b14667bb0e1cfa02780b133b63107a4406d2bf1572ad7c9fb6dcb2c2
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.7.1 - 28-Mar-2014
2
+ * Updated gemspec for Windows vs Unix.
3
+ * Updated README and MANIFEST.
4
+
1
5
  == 1.7.0 - 28-Mar-2014
2
6
  * Windows now uses FFI internally instead of win32-api.
3
7
  * Added a custom pretty_print method for the pp library.
data/MANIFEST CHANGED
@@ -8,4 +8,31 @@
8
8
  * examples/example_pathname.rb
9
9
  * lib/pathname2.rb
10
10
  * test/test_pathname.rb
11
- * test/test_pathname_windows.rb
11
+ * test/test_version.rb
12
+ * test/windows/test_append.rb
13
+ * test/windows/test_aref.rb
14
+ * test/windows/test_ascend.rb
15
+ * test/windows/test_children.rb
16
+ * test/windows/test_clean.rb
17
+ * test/windows/test_clean_bang.rb
18
+ * test/windows/test_constructor.rb
19
+ * test/windows/test_descend.rb
20
+ * test/windows/test_drive_number.rb
21
+ * test/windows/test_each.rb
22
+ * test/windows/test_facade.rb
23
+ * test/windows/test_is_absolute.rb
24
+ * test/windows/test_is_relative.rb
25
+ * test/windows/test_is_root.rb
26
+ * test/windows/test_is_unc.rb
27
+ * test/windows/test_long_path.rb
28
+ * test/windows/test_misc.rb
29
+ * test/windows/test_parent.rb
30
+ * test/windows/test_pstrip.rb
31
+ * test/windows/test_pstrip_bang.rb
32
+ * test/windows/test_realpath.rb
33
+ * test/windows/test_relative_path_from.rb
34
+ * test/windows/test_root.rb
35
+ * test/windows/test_short_path.rb
36
+ * test/windows/test_to_a.rb
37
+ * test/windows/test_undecorate.rb
38
+ * test/windows/test_undecorate_bang.rb
data/README CHANGED
@@ -2,8 +2,9 @@
2
2
  A drop-in replacement for the current Pathname class.
3
3
 
4
4
  == Prerequisites
5
- * facade 1.0.4 or later
6
- * windows-pr 1.1.2 or later (Windows only)
5
+ * facade
6
+ * ffi (Windows only)
7
+ * test-unit (testing only)
7
8
 
8
9
  == Installation
9
10
 
@@ -76,9 +77,7 @@
76
77
  supposed to be private. See ruby-core:7383.
77
78
 
78
79
  Any other issues should be reported on the project page at
79
- http://www.rubyforge.org/projects/shards
80
-
81
- The git repo itself is located at https://github.com/djberg96/pathname2
80
+ https://github.com/djberg96/pathname2
82
81
 
83
82
  == Future Plans
84
83
  Suggestions welcome.
@@ -87,7 +86,7 @@
87
86
  Artistic 2.0
88
87
 
89
88
  == Copyright
90
- (C) 2003-2011 Daniel J. Berger
89
+ (C) 2003-2014 Daniel J. Berger
91
90
  All rights reserved.
92
91
 
93
92
  == Warranty
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.0'
96
+ VERSION = '1.7.1'
97
97
 
98
98
  # The maximum length of a path
99
99
  MAXPATH = 1024 unless defined? MAXPATH # Yes, I willfully violate POSIX
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.0'
5
+ spec.version = '1.7.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -16,6 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.add_development_dependency('test-unit')
17
17
  spec.add_development_dependency('rake')
18
18
 
19
+ if File::ALT_SEPARATOR
20
+ spec.add_dependency('ffi')
21
+ spec.test_files = FileList['test/windows/*.rb', 'test/test_version.rb']
22
+ spec.platform = Gem::Platform.new(['universal', 'mingw32'])
23
+ else
24
+ spec.test_files = FileList['test/test_pathname.rb', 'test/test_version.rb']
25
+ end
26
+
19
27
  spec.description = <<-EOF
20
28
  The pathname2 library provides an implementation of the Pathname
21
29
  class different from the one that ships as part of the Ruby standard
@@ -67,10 +67,6 @@ class TC_Pathname < Test::Unit::TestCase
67
67
  }
68
68
  end
69
69
 
70
- def test_version
71
- assert_equal('1.7.0', Pathname::VERSION)
72
- end
73
-
74
70
  def test_file_url_path
75
71
  assert_equal('/foo bar/baz', @url_path)
76
72
  end
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.0', Pathname::VERSION)
11
+ assert_equal('1.7.1', Pathname::VERSION)
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pathname2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -130,4 +130,6 @@ rubygems_version: 2.2.2
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: An alternate implementation of the Pathname class
133
- test_files: []
133
+ test_files:
134
+ - test/test_pathname.rb
135
+ - test/test_version.rb