pathutil 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pathutil.rb +2 -1
- data/lib/pathutil/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d721903c0073128042033159066e2ab6fa5270
|
4
|
+
data.tar.gz: 8145fee7a51fdef0d35723a224c64f1a8edf5318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e16926972667047c562e3acd978570e803ff92d2b605902fe827c73ce632890484d3ec31adc1cd08af692ef7d0c3603d81894fba40055c8f566fb22ccade47
|
7
|
+
data.tar.gz: 4acb4a1e48fba18914318dd53e31d4295b9f3c94a45ccacbf5127ba12704f3ee80a99589ddedd8037f9d4b2f434219da5a2d1de88fd8e4d8a553ed037f7c5d6f
|
data/lib/pathutil.rb
CHANGED
@@ -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
|
data/lib/pathutil/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: forwardable-extended
|