folio 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +12 -0
- data/MANIFEST +13 -227
- data/NEWS +8 -6
- data/TODO +8 -0
- data/VERSION +1 -0
- data/doc/book/basedir-spec-0.6.html +138 -0
- data/lib/folio.rb +16 -5
- data/lib/folio/directory.rb +8 -3
- data/lib/folio/document.rb +4 -0
- data/lib/folio/errors.rb +3 -0
- data/lib/folio/fileobject.rb +19 -10
- data/lib/folio/link.rb +10 -4
- data/lib/folio/pipe.rb +4 -0
- data/lib/folio/{prompt.rb → shell.rb} +92 -21
- data/lib/folio/xdg.rb +136 -0
- data/meta/abstract +1 -0
- data/meta/authors +1 -0
- data/meta/contact +1 -0
- data/meta/homepage +1 -0
- data/meta/releases +2 -0
- data/meta/summary +1 -0
- metadata +26 -239
- data/METADATA +0 -9
- data/doc/rdoc/classes/Enumerator.html +0 -92
- data/doc/rdoc/classes/Folio.html +0 -158
- data/doc/rdoc/classes/Folio/BlockDevice.html +0 -117
- data/doc/rdoc/classes/Folio/CharacterDevice.html +0 -117
- data/doc/rdoc/classes/Folio/Device.html +0 -119
- data/doc/rdoc/classes/Folio/Directory.html +0 -548
- data/doc/rdoc/classes/Folio/Document.html +0 -340
- data/doc/rdoc/classes/Folio/FileNotFound.html +0 -92
- data/doc/rdoc/classes/Folio/FileObject.html +0 -1205
- data/doc/rdoc/classes/Folio/Link.html +0 -238
- data/doc/rdoc/classes/Folio/Pipe.html +0 -131
- data/doc/rdoc/classes/Folio/Prompt.html +0 -839
- data/doc/rdoc/classes/Folio/Socket.html +0 -115
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/CHANGES.html +0 -92
- data/doc/rdoc/files/COPYING.html +0 -992
- data/doc/rdoc/files/METADATA.html +0 -102
- data/doc/rdoc/files/NEWS.html +0 -102
- data/doc/rdoc/files/README.html +0 -171
- data/doc/rdoc/files/lib/folio/device_rb.html +0 -96
- data/doc/rdoc/files/lib/folio/directory_rb.html +0 -96
- data/doc/rdoc/files/lib/folio/document_rb.html +0 -96
- data/doc/rdoc/files/lib/folio/errors_rb.html +0 -92
- data/doc/rdoc/files/lib/folio/fileobject_rb.html +0 -97
- data/doc/rdoc/files/lib/folio/link_rb.html +0 -96
- data/doc/rdoc/files/lib/folio/pipe_rb.html +0 -96
- data/doc/rdoc/files/lib/folio/prompt_rb.html +0 -92
- data/doc/rdoc/files/lib/folio/socket_rb.html +0 -96
- data/doc/rdoc/files/lib/folio_rb.html +0 -105
- data/doc/rdoc/fr_class_index.html +0 -59
- data/doc/rdoc/fr_file_index.html +0 -61
- data/doc/rdoc/fr_method_index.html +0 -195
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -175
- data/doc/ri/Enumerator/cdesc-Enumerator.yaml +0 -15
- data/doc/ri/Folio/BlockDevice/blockdev%3f-i.yaml +0 -10
- data/doc/ri/Folio/BlockDevice/cdesc-BlockDevice.yaml +0 -18
- data/doc/ri/Folio/CharacterDevice/cdesc-CharacterDevice.yaml +0 -18
- data/doc/ri/Folio/CharacterDevice/chardev%3f-i.yaml +0 -10
- data/doc/ri/Folio/Device/cdesc-Device.yaml +0 -18
- data/doc/ri/Folio/Device/new-c.yaml +0 -10
- data/doc/ri/Folio/Directory/%2b-i.yaml +0 -12
- data/doc/ri/Folio/Directory/%2f-i.yaml +0 -13
- data/doc/ri/Folio/Directory/cd-i.yaml +0 -12
- data/doc/ri/Folio/Directory/cdesc-Directory.yaml +0 -57
- data/doc/ri/Folio/Directory/chdir-i.yaml +0 -13
- data/doc/ri/Folio/Directory/chmod_r-i.yaml +0 -12
- data/doc/ri/Folio/Directory/chown_r-i.yaml +0 -12
- data/doc/ri/Folio/Directory/chroot-i.yaml +0 -12
- data/doc/ri/Folio/Directory/cp_r-i.yaml +0 -12
- data/doc/ri/Folio/Directory/delete-i.yaml +0 -12
- data/doc/ri/Folio/Directory/directories-i.yaml +0 -12
- data/doc/ri/Folio/Directory/directory%3f-i.yaml +0 -10
- data/doc/ri/Folio/Directory/directory_entries-i.yaml +0 -12
- data/doc/ri/Folio/Directory/document_entries-i.yaml +0 -12
- data/doc/ri/Folio/Directory/documents-i.yaml +0 -12
- data/doc/ri/Folio/Directory/entries-i.yaml +0 -12
- data/doc/ri/Folio/Directory/files-i.yaml +0 -12
- data/doc/ri/Folio/Directory/foreach-i.yaml +0 -12
- data/doc/ri/Folio/Directory/new-c.yaml +0 -10
- data/doc/ri/Folio/Directory/rm_r-i.yaml +0 -12
- data/doc/ri/Folio/Directory/rm_rf-i.yaml +0 -12
- data/doc/ri/Folio/Directory/rmdir-i.yaml +0 -15
- data/doc/ri/Folio/Directory/unlink-i.yaml +0 -12
- data/doc/ri/Folio/Document/%3c%3c-i.yaml +0 -12
- data/doc/ri/Folio/Document/%3c-i.yaml +0 -12
- data/doc/ri/Folio/Document/append-i.yaml +0 -13
- data/doc/ri/Folio/Document/cdesc-Document.yaml +0 -42
- data/doc/ri/Folio/Document/delete-i.yaml +0 -10
- data/doc/ri/Folio/Document/document%3f-i.yaml +0 -12
- data/doc/ri/Folio/Document/executable%3f-i.yaml +0 -10
- data/doc/ri/Folio/Document/executable_real%3f-i.yaml +0 -10
- data/doc/ri/Folio/Document/intialize-i.yaml +0 -10
- data/doc/ri/Folio/Document/open-i.yaml +0 -10
- data/doc/ri/Folio/Document/read-i.yaml +0 -10
- data/doc/ri/Folio/Document/readlines-i.yaml +0 -10
- data/doc/ri/Folio/Document/truncate-i.yaml +0 -10
- data/doc/ri/Folio/Document/unlink-i.yaml +0 -12
- data/doc/ri/Folio/Document/write-i.yaml +0 -13
- data/doc/ri/Folio/FileNotFound/cdesc-FileNotFound.yaml +0 -15
- data/doc/ri/Folio/FileObject/%3c%3d%3e-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/%3d%3d-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/%5b%5d-c.yaml +0 -12
- data/doc/ri/Folio/FileObject/atime-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/basename-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/blockdev%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +0 -154
- data/doc/ri/Folio/FileObject/chardev%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/chmod-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/chown-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/cp-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/ctime-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/delete-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/delete_force-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/directory%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/dirname-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/document%3f-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/exist%3f-i.yaml +0 -13
- data/doc/ri/Folio/FileObject/exists%3f-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/extname-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/fnmatch%3f-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/fnmatch-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/grpowned%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/identical%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/inspect-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/install-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/link-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/link_force-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/ln-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/ln_f-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/ln_s-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/ln_sf-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/mtime-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/mv-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/new-c.yaml +0 -10
- data/doc/ri/Folio/FileObject/owned%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/pipe%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/readable%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/readable_real%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/relative-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/rename-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/restat-i.yaml +0 -13
- data/doc/ri/Folio/FileObject/rm-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/rm_f-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/setgid%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/setuid%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/size%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/size-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/socket%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/split-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/stat%21-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/stat-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/sticky%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/symlink-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/symlink_force-i.yaml +0 -11
- data/doc/ri/Folio/FileObject/to_s-i.yaml +0 -12
- data/doc/ri/Folio/FileObject/touch-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/unlink-i.yaml +0 -15
- data/doc/ri/Folio/FileObject/unlink_force-i.yaml +0 -13
- data/doc/ri/Folio/FileObject/util-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/utime-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/writable%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/writable_real%3f-i.yaml +0 -10
- data/doc/ri/Folio/FileObject/zero%3f-i.yaml +0 -10
- data/doc/ri/Folio/Link/cdesc-Link.yaml +0 -29
- data/doc/ri/Folio/Link/lchmod-i.yaml +0 -10
- data/doc/ri/Folio/Link/lchown-i.yaml +0 -10
- data/doc/ri/Folio/Link/link%3f-i.yaml +0 -10
- data/doc/ri/Folio/Link/lstat-i.yaml +0 -10
- data/doc/ri/Folio/Link/method_missing-i.yaml +0 -11
- data/doc/ri/Folio/Link/new-c.yaml +0 -10
- data/doc/ri/Folio/Link/readlink-i.yaml +0 -10
- data/doc/ri/Folio/Link/symlink%3f-i.yaml +0 -10
- data/doc/ri/Folio/Pipe/cdesc-Pipe.yaml +0 -17
- data/doc/ri/Folio/Pipe/new-c.yaml +0 -10
- data/doc/ri/Folio/Pipe/pipe%3f-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/%2b-i.yaml +0 -13
- data/doc/ri/Folio/Prompt/%2f-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/%5b%5d-c.yaml +0 -10
- data/doc/ri/Folio/Prompt/%5b%5d-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/cd-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +0 -95
- data/doc/ri/Folio/Prompt/chmod-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/chmod_r-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/chown-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/chown_r-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/cp-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/cp_r-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/directories-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/directory_entries-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/document_entries-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/documents-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/entries-i.yaml +0 -13
- data/doc/ri/Folio/Prompt/file-i.yaml +0 -13
- data/doc/ri/Folio/Prompt/files-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/fileutils-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/glob-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/install-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/ln-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/ln_s-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/ln_sf-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/localize-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/ls-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/mkdir-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/mkdir_p-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/mode-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/mv-i.yaml +0 -12
- data/doc/ri/Folio/Prompt/new-c.yaml +0 -11
- data/doc/ri/Folio/Prompt/rm-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/rm_r-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/rm_rf-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/rmdir-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/to_s-i.yaml +0 -10
- data/doc/ri/Folio/Prompt/touch-i.yaml +0 -12
- data/doc/ri/Folio/Socket/cdesc-Socket.yaml +0 -16
- data/doc/ri/Folio/Socket/new-c.yaml +0 -10
- data/doc/ri/Folio/cdesc-Folio.yaml +0 -15
- data/doc/ri/created.rid +0 -1
- data/test/fixture/bar.txt +0 -0
- data/test/fixture/foo.txt +0 -0
- data/test/test_folio.rb +0 -28
- data/test/test_helper.rb +0 -7
@@ -1,102 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>File: METADATA</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
-
<tr><td>
|
55
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
-
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />METADATA</td>
|
57
|
-
<td align="right">
|
58
|
-
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
-
<tr>
|
60
|
-
<td>Path:</td>
|
61
|
-
<td>METADATA
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td>Modified:</td>
|
66
|
-
<td>Sat Aug 30 23:06:37 -0400 2008</td>
|
67
|
-
</tr>
|
68
|
-
</table>
|
69
|
-
</td></tr>
|
70
|
-
</table>
|
71
|
-
</td></tr>
|
72
|
-
</table><br />
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><p>
|
79
|
-
name : folio version : 0.2.0 status : alpha homepage : <a
|
80
|
-
href="http://folio.rubyforge.org">folio.rubyforge.org</a> contact :
|
81
|
-
tigerops-community@rubyforge.org author : 7rans <transfire@gmail.com>
|
82
|
-
summary : <a href="../classes/Folio.html">Folio</a> is a better way to
|
83
|
-
access the file system. abstract : <a
|
84
|
-
href="../classes/Folio.html">Folio</a> is a better way to access the file
|
85
|
-
system.
|
86
|
-
</p>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
</body>
|
102
|
-
</html>
|
data/doc/rdoc/files/NEWS.html
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>File: NEWS</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
-
<tr><td>
|
55
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
-
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />NEWS</td>
|
57
|
-
<td align="right">
|
58
|
-
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
-
<tr>
|
60
|
-
<td>Path:</td>
|
61
|
-
<td>NEWS
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td>Modified:</td>
|
66
|
-
<td>Fri Aug 22 16:41:52 -0400 2008</td>
|
67
|
-
</tr>
|
68
|
-
</table>
|
69
|
-
</td></tr>
|
70
|
-
</table>
|
71
|
-
</td></tr>
|
72
|
-
</table><br />
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><h1>News & Release Notes</h1>
|
79
|
-
<h2>0.1.0 // 2008-08-18</h2>
|
80
|
-
<p>
|
81
|
-
<a href="../classes/Folio.html">Folio</a> was spawned by ruby-talk:311762.
|
82
|
-
</p>
|
83
|
-
<p>
|
84
|
-
This is the initial release of <a href="../classes/Folio.html">Folio</a>.
|
85
|
-
As such it is very much an alpha release!!!
|
86
|
-
</p>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
</body>
|
102
|
-
</html>
|
data/doc/rdoc/files/README.html
DELETED
@@ -1,171 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>File: README</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
-
<tr><td>
|
55
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
-
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />README</td>
|
57
|
-
<td align="right">
|
58
|
-
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
-
<tr>
|
60
|
-
<td>Path:</td>
|
61
|
-
<td>README
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td>Modified:</td>
|
66
|
-
<td>Wed Aug 27 02:48:35 -0400 2008</td>
|
67
|
-
</tr>
|
68
|
-
</table>
|
69
|
-
</td></tr>
|
70
|
-
</table>
|
71
|
-
</td></tr>
|
72
|
-
</table><br />
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><h1><a href="../classes/Folio.html">Folio</a></h1>
|
79
|
-
<pre>
|
80
|
-
http://folio.rubyforge.org
|
81
|
-
</pre>
|
82
|
-
<h2>Introduction</h2>
|
83
|
-
<p>
|
84
|
-
<a href="../classes/Folio.html">Folio</a> is a "better way" to
|
85
|
-
access the filesystem in your Ruby programs. It works by elmulating the
|
86
|
-
behavior of a command shell. So just as you @cd@ up and down the file
|
87
|
-
hierarchy at a shell prompt, you do the same against a Filio Prompt object.
|
88
|
-
</p>
|
89
|
-
<p>
|
90
|
-
In addition <a href="../classes/Folio.html">Folio</a> wraps all the common
|
91
|
-
File System objects, providing a more intutive means of handling these in
|
92
|
-
an dobject-oriented manner. For instance, <a
|
93
|
-
href="../classes/Folio/Link.html">Folio::Link</a> represents a link on the
|
94
|
-
file system, and just as the link references another file, so de the <a
|
95
|
-
href="../classes/Folio/Link.html">Folio::Link</a> object deletgate to
|
96
|
-
another <a href="../classes/Folio.html">Folio</a> file object.
|
97
|
-
</p>
|
98
|
-
<h2>Usage</h2>
|
99
|
-
<p>
|
100
|
-
Since this is such an early release the API is still subject to change. But
|
101
|
-
the basic idea remains the same:
|
102
|
-
</p>
|
103
|
-
<pre>
|
104
|
-
require 'folio'
|
105
|
-
|
106
|
-
# get a folio prompt on the current directory (Dir.pwd).
|
107
|
-
cursor = Folio::Prompt.new
|
108
|
-
|
109
|
-
# return a list of directory's entries as strings.
|
110
|
-
cursor.ls
|
111
|
-
|
112
|
-
# return a list of directories as Directory objects.
|
113
|
-
cursor.directories
|
114
|
-
|
115
|
-
# return a list of regular files as Document objects.
|
116
|
-
cursor.documents
|
117
|
-
|
118
|
-
# Change down to the foo directory.
|
119
|
-
cursor.cd('foo')
|
120
|
-
|
121
|
-
# return a list of all entries as File objects.
|
122
|
-
p cursor.files
|
123
|
-
</pre>
|
124
|
-
<h2>Install</h2>
|
125
|
-
<p>
|
126
|
-
You know the Gem drill.
|
127
|
-
</p>
|
128
|
-
<pre>
|
129
|
-
$ gem install folio
|
130
|
-
</pre>
|
131
|
-
<p>
|
132
|
-
And you may know the Setup drill.*
|
133
|
-
</p>
|
134
|
-
<pre>
|
135
|
-
$ tar -xvzf folio-0.1.0.tgz
|
136
|
-
$ cd folio-0.1.0.tgz
|
137
|
-
$ ruby setup.rb
|
138
|
-
</pre>
|
139
|
-
<p>
|
140
|
-
*requires <a href="<a
|
141
|
-
href="http://setup.rubyforge.org">Ruby">setup.rubyforge.org">Ruby</a>
|
142
|
-
Setup</a>
|
143
|
-
</p>
|
144
|
-
<h2>Resources</h2>
|
145
|
-
<p>
|
146
|
-
<a href="rio.rubyforge.org">Rio<a> is a similar too.
|
147
|
-
It‘s very well documented, but has a different design philiosophy
|
148
|
-
having it‘s own more unique DSL.
|
149
|
-
</p>
|
150
|
-
<h2>Copying</h2>
|
151
|
-
<p>
|
152
|
-
<a href="../classes/Folio.html">Folio</a> is Copyright (c)2008 Tiger Ops
|
153
|
-
& Thomas Sawyer <a href="../classes/Folio.html">Folio</a> is
|
154
|
-
distributed under the terms of the GPLv3.
|
155
|
-
</p>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
</div>
|
169
|
-
|
170
|
-
</body>
|
171
|
-
</html>
|
@@ -1,96 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>File: device.rb</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
-
<tr><td>
|
55
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
-
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />device.rb</td>
|
57
|
-
<td align="right">
|
58
|
-
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
-
<tr>
|
60
|
-
<td>Path:</td>
|
61
|
-
<td>lib/folio/device.rb
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td>Modified:</td>
|
66
|
-
<td>Wed Aug 20 09:51:02 -0400 2008</td>
|
67
|
-
</tr>
|
68
|
-
</table>
|
69
|
-
</td></tr>
|
70
|
-
</table>
|
71
|
-
</td></tr>
|
72
|
-
</table><br />
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
<div class="sectiontitle">Required Files</div>
|
80
|
-
<ul>
|
81
|
-
<li>folio/fileobject</li>
|
82
|
-
</ul>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
</body>
|
96
|
-
</html>
|