pathutil 0.0.1 → 0.0.2

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: 312093b72daeed797421e82320e9b69dbe8cca1c
4
- data.tar.gz: be2774aba80baf6d8ec0638ba69a5014d5ca2bdf
3
+ metadata.gz: 10d721903c0073128042033159066e2ab6fa5270
4
+ data.tar.gz: 8145fee7a51fdef0d35723a224c64f1a8edf5318
5
5
  SHA512:
6
- metadata.gz: c66c018dc735686f536246dd21ada663d5e676add05f1eca73a351bbd636c49a0aaf1bc0269294266d4922a591feeddeef8114c8d33b032cacc1cfdda1d73004
7
- data.tar.gz: 9103cd6a157ae019af799844af46116158500317942575a4f8e1f939fabed3003f8af1bbe06eac26f8f0d1b8758758154bea80fbf7f457bb9aa1a7313a8155ad
6
+ metadata.gz: 82e16926972667047c562e3acd978570e803ff92d2b605902fe827c73ce632890484d3ec31adc1cd08af692ef7d0c3603d81894fba40055c8f566fb22ccade47
7
+ data.tar.gz: 4acb4a1e48fba18914318dd53e31d4295b9f3c94a45ccacbf5127ba12704f3ee80a99589ddedd8037f9d4b2f434219da5a2d1de88fd8e4d8a553ed037f7c5d6f
@@ -46,7 +46,7 @@ class Pathutil
46
46
  # --------------------------------------------------------------------------
47
47
 
48
48
  def initialize(path)
49
- @path = path.to_s
49
+ @path = path.respond_to?(:to_path) ? path.to_path : path.to_s
50
50
  end
51
51
 
52
52
  # --------------------------------------------------------------------------
@@ -741,6 +741,7 @@ class Pathutil
741
741
 
742
742
  rb_delegate :rm_rf, :to => :FileUtils, :args => :@path
743
743
  rb_delegate :rm_r, :to => :FileUtils, :args => :@path
744
+ rb_delegate :rm_f, :to => :FileUtils, :args => :@path
744
745
  rb_delegate :rm, :to => :FileUtils, :args => :@path
745
746
  rb_delegate :cp_r, :to => :FileUtils, :args => :@path
746
747
  rb_delegate :touch, :to => :FileUtils, :args => :@path
@@ -5,5 +5,5 @@
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
7
  class Pathutil
8
- VERSION = "0.0.1"
8
+ VERSION = "0.0.2"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pathutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: forwardable-extended