filetree 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/README.md +5 -0
- data/filetree.gemspec +2 -2
- data/lib/filetree.rb +2 -2
- data/lib/filetree/simple_tree.rb +1 -0
- 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: 05d761d32074272dc9b464dd7222f347cf100ded
|
4
|
+
data.tar.gz: 160b0350362fff8d14090e0fcdc0929e17dd39c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b1e705f4b8a2f81e7ba207a0fc3faf9e01d5e72b98d855032735aedafd4b1d0169b9a8eaf59d66250ea3002ad2d2f40e268a7cc748c1fb8913d69b24260ee0
|
7
|
+
data.tar.gz: e0e5c3435fd350d2fc608ef21b6cadaa47f7f0ec391cbc6f934d23bf0a4220e236305bad7633aa61d7eb8de301eb7895372f118a2a352c87012d9eee2a389f17
|
data/README.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
A simple tree structure for working with FilePath objects in ruby. I simply took the simple_tree module from https://github.com/ealdent/simple-tree and hacked it into [Pathname](http://www.ruby-doc.org/stdlib-2.0/libdoc/pathname/rdoc/Pathname.html) from the std-lib. This means you get all the awesome features of working with Pathname, as well as making it easy to examine a filepath's ancestors and descendants.
|
4
4
|
|
5
|
+
## Install
|
6
|
+
|
7
|
+
install with: `gem install filetree`
|
8
|
+
|
9
|
+
|
5
10
|
# Usage
|
6
11
|
|
7
12
|
```ruby
|
data/filetree.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'filetree'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.date = '2013-05-27'
|
5
5
|
s.summary = "A simple ruby library for manipulating filepaths as tree structures"
|
6
|
-
s.description = "A simple tree structure for working with FilePath objects in ruby. I simply took the simple_tree module from https://github.com/ealdent/simple-tree and hacked it into
|
6
|
+
s.description = "A simple tree structure for working with FilePath objects in ruby. I simply took the simple_tree module from https://github.com/ealdent/simple-tree and hacked it into Pathname (http://www.ruby-doc.org/stdlib-2.0/libdoc/pathname/rdoc/Pathname.html) from the std-lib. This means you get all the awesome features of working with Pathname, as well as making it easy to examine a filepath's ancestors and descendants."
|
7
7
|
s.authors = ["Eric West"]
|
8
8
|
s.email = 'nick@quaran.to'
|
9
9
|
s.files = ["lib/filetree.rb",
|
data/lib/filetree.rb
CHANGED
@@ -23,13 +23,13 @@ class FileTree < Pathname
|
|
23
23
|
@identifier ||= self.inspect
|
24
24
|
end
|
25
25
|
|
26
|
-
# See #
|
26
|
+
# See Pathname#parent
|
27
27
|
|
28
28
|
def parent
|
29
29
|
FileTree.new(_parent)
|
30
30
|
end
|
31
31
|
|
32
|
-
#See #
|
32
|
+
# See Pathname#children
|
33
33
|
|
34
34
|
def children(*args)
|
35
35
|
if self.directory?
|
data/lib/filetree/simple_tree.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filetree
|
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
|
- Eric West
|
@@ -12,7 +12,7 @@ date: 2013-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: A simple tree structure for working with FilePath objects in ruby. I
|
14
14
|
simply took the simple_tree module from https://github.com/ealdent/simple-tree and
|
15
|
-
hacked it into
|
15
|
+
hacked it into Pathname (http://www.ruby-doc.org/stdlib-2.0/libdoc/pathname/rdoc/Pathname.html)
|
16
16
|
from the std-lib. This means you get all the awesome features of working with Pathname,
|
17
17
|
as well as making it easy to examine a filepath's ancestors and descendants.
|
18
18
|
email: nick@quaran.to
|