pairtree 0.1.0 → 0.3.0

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.
data/README.textile DELETED
@@ -1,37 +0,0 @@
1
- h1. pairtree
2
-
3
- Ruby implementation of the "Pairtree":https://confluence.ucop.edu/display/Curation/PairTree microservice specification from the California Digital Library
4
-
5
- h2. Usage
6
-
7
- <pre><code>
8
- # Initiate a tree
9
- pairtree = Pairtree.at('./data', :prefix => 'pfx:', :create => true)
10
-
11
- # Create a ppath
12
- obj = pairtree.mk('pfx:abc123def')
13
-
14
- # Access an existing ppath
15
- obj = pairtree['pfx:abc123def']
16
- obj = pairtree.get('pfx:abc123def')
17
-
18
- # ppaths are Dir instances with some File and Dir class methods mixed in
19
- obj.read('content.xml')
20
- => "<content/>"
21
- obj.open('my_file.txt','w') { |io| io.write("Write text to file") }
22
- obj.entries
23
- => ["content.xml","my_file.txt"]
24
- obj['*.xml']
25
- => ["content.xml"]
26
- obj.each { |file| ... }
27
- obj.unlink('my_file.txt')
28
-
29
- # Delete a ppath and all its contents
30
- pairtree.purge!('pfx:abc123def')
31
- </code></pre>
32
-
33
- h2. Copyright
34
-
35
- Copyright (c) 2010 Chris Beer. See LICENSE.txt for
36
- further details.
37
-