path 2.0.0 → 2.0.1
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/lib/path/identity.rb +2 -0
- data/lib/path/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60cfd69ac4a3518dcbcf8784282be2f8af06e695
|
4
|
+
data.tar.gz: 799af180a02aad1474adfc4d16cd97882f105aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f341205f30d2c2871f81dc5b1b4d295839df5eb2276a6351325c95ff31dbd91b38fd04d24d6a250d4ea6d1fb79231b288b3ff80924ab8900b0fddae0c46ae3bd
|
7
|
+
data.tar.gz: 4aa31494bde760d396677e0ffb55fd9846ce844672d0f643f7b962ad50e25d5f103fb862b25a42b1786633cb1e2c18d54585ad1c0da39be047b9430251c5bca9
|
data/lib/path/identity.rb
CHANGED
@@ -80,9 +80,11 @@ class Path
|
|
80
80
|
# Returns the +path+ as a String.
|
81
81
|
# {#path} is implemented for better readability (+file.path+ instead of +file.to_s+) and as an accessor.
|
82
82
|
# {#to_path} is implemented so Path objects are usable with +open+, etc.
|
83
|
+
# {#to_str} is implemented so Path objects are usable with +open+, etc with Ruby 1.8 (it is not defined in Ruby 1.9).
|
83
84
|
attr_reader :path
|
84
85
|
alias :to_s :path
|
85
86
|
alias :to_path :path
|
87
|
+
alias :to_str :path if RUBY_VERSION < '1.9'
|
86
88
|
|
87
89
|
# Compare this path with +other+. The comparison is string-based.
|
88
90
|
# Be aware that two different paths (+foo.txt+ and +./foo.txt+)
|
data/lib/path/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eregon
|
@@ -54,9 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.5
|
57
|
+
rubygems_version: 2.4.5
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: The Path manipulation library
|
61
61
|
test_files: []
|
62
|
-
has_rdoc:
|