path 2.0.0 → 2.0.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: dc79568913620a232363ac1c8337e5b163a1a910
4
- data.tar.gz: 3b1e928062bba5999f0ffd1afd6ac8895b7838a0
3
+ metadata.gz: 60cfd69ac4a3518dcbcf8784282be2f8af06e695
4
+ data.tar.gz: 799af180a02aad1474adfc4d16cd97882f105aee
5
5
  SHA512:
6
- metadata.gz: 81762a43a917e1b34e483753bdb72bfe5256a4eb777c07f32a5ae108b166ef67da09bef20af735b4c3e3154bdb606fffd7cc5134c99e9e474d4bb1d5ed99927e
7
- data.tar.gz: 8456c2c9eda72afbe858e5a22cf6648297acd75a3101d5b5abc7a4d4a117dcae2e86b807f0ec585367295a2b2354f4ce3272917ef6e0a7c16d3f9ce7d7530b0f
6
+ metadata.gz: f341205f30d2c2871f81dc5b1b4d295839df5eb2276a6351325c95ff31dbd91b38fd04d24d6a250d4ea6d1fb79231b288b3ff80924ab8900b0fddae0c46ae3bd
7
+ data.tar.gz: 4aa31494bde760d396677e0ffb55fd9846ce844672d0f643f7b962ad50e25d5f103fb862b25a42b1786633cb1e2c18d54585ad1c0da39be047b9430251c5bca9
@@ -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+)
@@ -1,5 +1,5 @@
1
1
  class Path
2
2
  # The version of the gem.
3
3
  # Set here to avoid duplication and allow introspection.
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
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.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.1
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: