fsdb 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/README.txt +1 -1
- data/lib/fsdb/database.rb +1 -1
- data/rakefile +5 -3
- data/test/test-concurrency.rb +5 -3
- data/test/test-formats.rb +3 -1
- data/test/test-fsdb.rb +5 -3
- metadata +10 -148
- data/junk/OLDRakefile +0 -98
- data/junk/OLDRakefile2 +0 -55
- data/junk/check-cache.rb +0 -18
- data/junk/create-lock.rb +0 -25
- data/junk/doc/old-api/classes/FSDB.html +0 -139
- data/junk/doc/old-api/classes/FSDB/Database.html +0 -953
- data/junk/doc/old-api/classes/FSDB/Database.src/M000029.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000030.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000031.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000032.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000033.html +0 -33
- data/junk/doc/old-api/classes/FSDB/Database.src/M000034.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000035.html +0 -22
- data/junk/doc/old-api/classes/FSDB/Database.src/M000036.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000037.html +0 -22
- data/junk/doc/old-api/classes/FSDB/Database.src/M000038.html +0 -43
- data/junk/doc/old-api/classes/FSDB/Database.src/M000039.html +0 -25
- data/junk/doc/old-api/classes/FSDB/Database.src/M000040.html +0 -43
- data/junk/doc/old-api/classes/FSDB/Database.src/M000041.html +0 -23
- data/junk/doc/old-api/classes/FSDB/Database.src/M000042.html +0 -22
- data/junk/doc/old-api/classes/FSDB/Database.src/M000043.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000044.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000045.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000046.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000047.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000048.html +0 -16
- data/junk/doc/old-api/classes/FSDB/Database.src/M000049.html +0 -71
- data/junk/doc/old-api/classes/FSDB/Database.src/M000050.html +0 -43
- data/junk/doc/old-api/classes/FSDB/Database.src/M000051.html +0 -53
- data/junk/doc/old-api/classes/FSDB/Database.src/M000052.html +0 -44
- data/junk/doc/old-api/classes/FSDB/Database.src/M000053.html +0 -39
- data/junk/doc/old-api/classes/FSDB/Database.src/M000054.html +0 -72
- data/junk/doc/old-api/classes/FSDB/Database.src/M000055.html +0 -39
- data/junk/doc/old-api/classes/FSDB/Database.src/M000056.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000057.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000058.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000059.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000060.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000061.html +0 -23
- data/junk/doc/old-api/classes/FSDB/Database.src/M000062.html +0 -23
- data/junk/doc/old-api/classes/FSDB/Database.src/M000063.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database.src/M000064.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Database/AbortedTransaction.html +0 -118
- data/junk/doc/old-api/classes/FSDB/Database/CreateFileError.html +0 -120
- data/junk/doc/old-api/classes/FSDB/Database/DirIsImmutableError.html +0 -117
- data/junk/doc/old-api/classes/FSDB/Database/DirNotEmptyError.html +0 -117
- data/junk/doc/old-api/classes/FSDB/Database/FormatError.html +0 -117
- data/junk/doc/old-api/classes/FSDB/Database/MissingFileError.html +0 -117
- data/junk/doc/old-api/classes/FSDB/Database/MissingObjectError.html +0 -117
- data/junk/doc/old-api/classes/FSDB/Database/NotDirError.html +0 -118
- data/junk/doc/old-api/classes/FSDB/Database/PathComponentError.html +0 -120
- data/junk/doc/old-api/classes/FSDB/DatabaseDebuggable.html +0 -148
- data/junk/doc/old-api/classes/FSDB/DatabaseDebuggable.src/M000005.html +0 -21
- data/junk/doc/old-api/classes/FSDB/DatabaseDebuggable.src/M000007.html +0 -21
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.html +0 -210
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000006.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000007.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000008.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000009.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000010.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000011.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000012.html +0 -22
- data/junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000013.html +0 -22
- data/junk/doc/old-api/classes/FSDB/ForkSafely.html +0 -126
- data/junk/doc/old-api/classes/FSDB/Modex.html +0 -237
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000024.html +0 -21
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000025.html +0 -30
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000026.html +0 -21
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000027.html +0 -30
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000028.html +0 -44
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000029.html +0 -26
- data/junk/doc/old-api/classes/FSDB/Modex.src/M000030.html +0 -48
- data/junk/doc/old-api/classes/FSDB/Modex/ForkSafely.html +0 -105
- data/junk/doc/old-api/classes/FSDB/Mutex.html +0 -244
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000018.html +0 -19
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000019.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000020.html +0 -19
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000021.html +0 -18
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000022.html +0 -23
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000023.html +0 -30
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000024.html +0 -26
- data/junk/doc/old-api/classes/FSDB/Mutex.src/M000025.html +0 -21
- data/junk/doc/old-api/classes/FSDB/Mutex/ForkSafely.html +0 -105
- data/junk/doc/old-api/classes/FSDB/PathUtilities.html +0 -257
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000012.html +0 -23
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000013.html +0 -18
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000014.html +0 -23
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000015.html +0 -18
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000016.html +0 -18
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000017.html +0 -22
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000018.html +0 -23
- data/junk/doc/old-api/classes/FSDB/PathUtilities.src/M000019.html +0 -18
- data/junk/doc/old-api/classes/FSDB/PathUtilities/InvalidPathError.html +0 -111
- data/junk/doc/old-api/classes/File.html +0 -272
- data/junk/doc/old-api/classes/File.src/M000001.html +0 -17
- data/junk/doc/old-api/classes/File.src/M000002.html +0 -17
- data/junk/doc/old-api/classes/File.src/M000003.html +0 -20
- data/junk/doc/old-api/classes/File.src/M000004.html +0 -20
- data/junk/doc/old-api/classes/File.src/M000005.html +0 -32
- data/junk/doc/old-api/classes/File.src/M000006.html +0 -32
- data/junk/doc/old-api/created.rid +0 -1
- data/junk/doc/old-api/files/README.html +0 -112
- data/junk/doc/old-api/files/RELEASE-NOTES.html +0 -233
- data/junk/doc/old-api/files/fsdb_txt.html +0 -888
- data/junk/doc/old-api/files/lib/fsdb/database_rb.html +0 -115
- data/junk/doc/old-api/files/lib/fsdb/file-lock_rb.html +0 -109
- data/junk/doc/old-api/files/lib/fsdb/modex_rb.html +0 -121
- data/junk/doc/old-api/files/lib/fsdb/mutex_rb.html +0 -108
- data/junk/doc/old-api/files/lib/fsdb/util_rb.html +0 -108
- data/junk/doc/old-api/fr_class_index.html +0 -47
- data/junk/doc/old-api/fr_file_index.html +0 -34
- data/junk/doc/old-api/fr_method_index.html +0 -90
- data/junk/doc/old-api/index.html +0 -24
- data/junk/doc/old-api/rdoc-style.css +0 -208
- data/junk/file-lock-nb.rb +0 -15
- data/junk/fl.rb +0 -144
- data/junk/flock-test.rb +0 -39
- data/junk/fsdb.kateproject +0 -47
- data/junk/fsdb.prj +0 -196
- data/junk/fsdb.sf +0 -46
- data/junk/insert-dir.rb +0 -48
- data/junk/lock-test-bug.rb +0 -150
- data/junk/lock-test-too-simple.rb +0 -136
- data/junk/lock-test.rb +0 -151
- data/junk/mkrdoc +0 -7
- data/junk/restore-fsdb.rb +0 -37
- data/junk/rf.txt +0 -5
- data/junk/solaris-bug-fixed.rb +0 -184
- data/junk/solaris-bug.rb +0 -182
- data/junk/solaris-bug.txt +0 -43
- data/junk/sync.rb +0 -327
- data/junk/test-file-lock.html +0 -86
- data/junk/test-file-lock.rb +0 -84
- data/junk/test-processes.rb +0 -131
- data/junk/test-threads.rb +0 -113
- data/junk/wiki-mutex.rb +0 -108
- data/misc/fsdb-blorubu.txt +0 -47
- data/misc/mtime-and-file-id.txt +0 -23
- data/misc/posixlock.txt +0 -148
data/History.txt
CHANGED
data/README.txt
CHANGED
data/lib/fsdb/database.rb
CHANGED
data/rakefile
CHANGED
@@ -26,13 +26,15 @@ PROJ.version = FSDB::VERSION
|
|
26
26
|
PROJ.rubyforge.name = 'fsdb'
|
27
27
|
PROJ.summary = "File System Database"
|
28
28
|
PROJ.description = <<END
|
29
|
-
A file system data base. Provides a thread-safe, process-safe Database class.
|
29
|
+
A file system data base. Provides a thread-safe, process-safe Database class.
|
30
|
+
Each entry is a separate file referenced by its relative path. Allows multiple
|
31
|
+
file formats and serialization methods. Pure ruby and very light weight.
|
30
32
|
END
|
31
33
|
PROJ.changes = File.read(PROJ.history_file)[/^\w.*?(?=^\w)/m]
|
34
|
+
PROJ.exclude << %w{ junk misc }
|
32
35
|
|
33
36
|
PROJ.spec.opts << '--color'
|
34
|
-
|
35
|
-
###PROJ.test.files = Dir["test/*.rb"]
|
37
|
+
PROJ.test.files = Dir["test/*.rb"].select {|f| File.executable? f} ## ?
|
36
38
|
|
37
39
|
task :release => ["gem:release", "doc:release"]
|
38
40
|
|
data/test/test-concurrency.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
$:.unshift(File.expand_path("..", __FILE__))
|
4
4
|
|
5
|
-
require '
|
6
|
-
|
5
|
+
require 'test.rb'
|
6
|
+
|
7
|
+
require 'test-concurrency/init'
|
8
|
+
require 'test-concurrency/test-object'
|
7
9
|
|
8
10
|
module Enumerable
|
9
11
|
unless instance_methods.include?("sum")
|
data/test/test-formats.rb
CHANGED
data/test/test-fsdb.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
$:.unshift(File.expand_path("..", __FILE__))
|
4
|
+
|
3
5
|
require 'test/unit'
|
4
6
|
|
5
|
-
require '
|
7
|
+
require 'test.rb'
|
6
8
|
|
7
9
|
Dir.chdir('/') # just to show that the curr dir is irrelevant
|
8
10
|
|
@@ -174,8 +176,8 @@ class Test_FSDB < Test::Unit::TestCase
|
|
174
176
|
@db['browse_dir/y'] = 2
|
175
177
|
@db['browse_dir/z'] = 3
|
176
178
|
shakeup
|
177
|
-
assert_equal(%w{x y z}, @db['browse_dir'])
|
178
|
-
assert_equal(%w{x y z}, @db.browse('browse_dir') {|d|d})
|
179
|
+
assert_equal(%w{x y z}, @db['browse_dir'].sort)
|
180
|
+
assert_equal(%w{x y z}, @db.browse('browse_dir') {|d|d}.sort)
|
179
181
|
end
|
180
182
|
|
181
183
|
def test_glob
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fsdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel VanderWerf
|
@@ -23,7 +23,9 @@ dependencies:
|
|
23
23
|
version: 2.5.1
|
24
24
|
version:
|
25
25
|
description: |
|
26
|
-
A file system data base. Provides a thread-safe, process-safe Database class.
|
26
|
+
A file system data base. Provides a thread-safe, process-safe Database class.
|
27
|
+
Each entry is a separate file referenced by its relative path. Allows multiple
|
28
|
+
file formats and serialization methods. Pure ruby and very light weight.
|
27
29
|
|
28
30
|
email: vjoel@users.sourceforge.net
|
29
31
|
executables: []
|
@@ -33,11 +35,6 @@ extensions:
|
|
33
35
|
extra_rdoc_files:
|
34
36
|
- History.txt
|
35
37
|
- README.txt
|
36
|
-
- junk/rf.txt
|
37
|
-
- junk/solaris-bug.txt
|
38
|
-
- misc/fsdb-blorubu.txt
|
39
|
-
- misc/mtime-and-file-id.txt
|
40
|
-
- misc/posixlock.txt
|
41
38
|
- test/err.txt
|
42
39
|
files:
|
43
40
|
- History.txt
|
@@ -57,142 +54,6 @@ files:
|
|
57
54
|
- ext/fsdb/MANIFEST
|
58
55
|
- ext/fsdb/extconf.rb
|
59
56
|
- ext/fsdb/fcntl-lock.c
|
60
|
-
- junk/OLDRakefile
|
61
|
-
- junk/OLDRakefile2
|
62
|
-
- junk/check-cache.rb
|
63
|
-
- junk/create-lock.rb
|
64
|
-
- junk/doc/old-api/classes/FSDB.html
|
65
|
-
- junk/doc/old-api/classes/FSDB/Database.html
|
66
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000029.html
|
67
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000030.html
|
68
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000031.html
|
69
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000032.html
|
70
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000033.html
|
71
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000034.html
|
72
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000035.html
|
73
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000036.html
|
74
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000037.html
|
75
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000038.html
|
76
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000039.html
|
77
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000040.html
|
78
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000041.html
|
79
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000042.html
|
80
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000043.html
|
81
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000044.html
|
82
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000045.html
|
83
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000046.html
|
84
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000047.html
|
85
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000048.html
|
86
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000049.html
|
87
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000050.html
|
88
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000051.html
|
89
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000052.html
|
90
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000053.html
|
91
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000054.html
|
92
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000055.html
|
93
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000056.html
|
94
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000057.html
|
95
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000058.html
|
96
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000059.html
|
97
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000060.html
|
98
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000061.html
|
99
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000062.html
|
100
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000063.html
|
101
|
-
- junk/doc/old-api/classes/FSDB/Database.src/M000064.html
|
102
|
-
- junk/doc/old-api/classes/FSDB/Database/AbortedTransaction.html
|
103
|
-
- junk/doc/old-api/classes/FSDB/Database/CreateFileError.html
|
104
|
-
- junk/doc/old-api/classes/FSDB/Database/DirIsImmutableError.html
|
105
|
-
- junk/doc/old-api/classes/FSDB/Database/DirNotEmptyError.html
|
106
|
-
- junk/doc/old-api/classes/FSDB/Database/FormatError.html
|
107
|
-
- junk/doc/old-api/classes/FSDB/Database/MissingFileError.html
|
108
|
-
- junk/doc/old-api/classes/FSDB/Database/MissingObjectError.html
|
109
|
-
- junk/doc/old-api/classes/FSDB/Database/NotDirError.html
|
110
|
-
- junk/doc/old-api/classes/FSDB/Database/PathComponentError.html
|
111
|
-
- junk/doc/old-api/classes/FSDB/DatabaseDebuggable.html
|
112
|
-
- junk/doc/old-api/classes/FSDB/DatabaseDebuggable.src/M000005.html
|
113
|
-
- junk/doc/old-api/classes/FSDB/DatabaseDebuggable.src/M000007.html
|
114
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.html
|
115
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000006.html
|
116
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000007.html
|
117
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000008.html
|
118
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000009.html
|
119
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000010.html
|
120
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000011.html
|
121
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000012.html
|
122
|
-
- junk/doc/old-api/classes/FSDB/DirectoryIterators.src/M000013.html
|
123
|
-
- junk/doc/old-api/classes/FSDB/ForkSafely.html
|
124
|
-
- junk/doc/old-api/classes/FSDB/Modex.html
|
125
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000024.html
|
126
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000025.html
|
127
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000026.html
|
128
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000027.html
|
129
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000028.html
|
130
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000029.html
|
131
|
-
- junk/doc/old-api/classes/FSDB/Modex.src/M000030.html
|
132
|
-
- junk/doc/old-api/classes/FSDB/Modex/ForkSafely.html
|
133
|
-
- junk/doc/old-api/classes/FSDB/Mutex.html
|
134
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000018.html
|
135
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000019.html
|
136
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000020.html
|
137
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000021.html
|
138
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000022.html
|
139
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000023.html
|
140
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000024.html
|
141
|
-
- junk/doc/old-api/classes/FSDB/Mutex.src/M000025.html
|
142
|
-
- junk/doc/old-api/classes/FSDB/Mutex/ForkSafely.html
|
143
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.html
|
144
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000012.html
|
145
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000013.html
|
146
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000014.html
|
147
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000015.html
|
148
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000016.html
|
149
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000017.html
|
150
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000018.html
|
151
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities.src/M000019.html
|
152
|
-
- junk/doc/old-api/classes/FSDB/PathUtilities/InvalidPathError.html
|
153
|
-
- junk/doc/old-api/classes/File.html
|
154
|
-
- junk/doc/old-api/classes/File.src/M000001.html
|
155
|
-
- junk/doc/old-api/classes/File.src/M000002.html
|
156
|
-
- junk/doc/old-api/classes/File.src/M000003.html
|
157
|
-
- junk/doc/old-api/classes/File.src/M000004.html
|
158
|
-
- junk/doc/old-api/classes/File.src/M000005.html
|
159
|
-
- junk/doc/old-api/classes/File.src/M000006.html
|
160
|
-
- junk/doc/old-api/created.rid
|
161
|
-
- junk/doc/old-api/files/README.html
|
162
|
-
- junk/doc/old-api/files/RELEASE-NOTES.html
|
163
|
-
- junk/doc/old-api/files/fsdb_txt.html
|
164
|
-
- junk/doc/old-api/files/lib/fsdb/database_rb.html
|
165
|
-
- junk/doc/old-api/files/lib/fsdb/file-lock_rb.html
|
166
|
-
- junk/doc/old-api/files/lib/fsdb/modex_rb.html
|
167
|
-
- junk/doc/old-api/files/lib/fsdb/mutex_rb.html
|
168
|
-
- junk/doc/old-api/files/lib/fsdb/util_rb.html
|
169
|
-
- junk/doc/old-api/fr_class_index.html
|
170
|
-
- junk/doc/old-api/fr_file_index.html
|
171
|
-
- junk/doc/old-api/fr_method_index.html
|
172
|
-
- junk/doc/old-api/index.html
|
173
|
-
- junk/doc/old-api/rdoc-style.css
|
174
|
-
- junk/file-lock-nb.rb
|
175
|
-
- junk/fl.rb
|
176
|
-
- junk/flock-test.rb
|
177
|
-
- junk/fsdb.kateproject
|
178
|
-
- junk/fsdb.prj
|
179
|
-
- junk/fsdb.sf
|
180
|
-
- junk/insert-dir.rb
|
181
|
-
- junk/lock-test-bug.rb
|
182
|
-
- junk/lock-test-too-simple.rb
|
183
|
-
- junk/lock-test.rb
|
184
|
-
- junk/mkrdoc
|
185
|
-
- junk/restore-fsdb.rb
|
186
|
-
- junk/rf.txt
|
187
|
-
- junk/solaris-bug-fixed.rb
|
188
|
-
- junk/solaris-bug.rb
|
189
|
-
- junk/solaris-bug.txt
|
190
|
-
- junk/sync.rb
|
191
|
-
- junk/test-file-lock.html
|
192
|
-
- junk/test-file-lock.rb
|
193
|
-
- junk/test-processes.rb
|
194
|
-
- junk/test-threads.rb
|
195
|
-
- junk/wiki-mutex.rb
|
196
57
|
- lib/fsdb.rb
|
197
58
|
- lib/fsdb/compat.rb
|
198
59
|
- lib/fsdb/database.rb
|
@@ -210,9 +71,6 @@ files:
|
|
210
71
|
- lib/fsdb/read-write-object.rb
|
211
72
|
- lib/fsdb/server.rb
|
212
73
|
- lib/fsdb/util.rb
|
213
|
-
- misc/fsdb-blorubu.txt
|
214
|
-
- misc/mtime-and-file-id.txt
|
215
|
-
- misc/posixlock.txt
|
216
74
|
- rakefile
|
217
75
|
- tasks/ann.rake
|
218
76
|
- tasks/bones.rake
|
@@ -271,5 +129,9 @@ rubygems_version: 1.3.4
|
|
271
129
|
signing_key:
|
272
130
|
specification_version: 3
|
273
131
|
summary: File System Database
|
274
|
-
test_files:
|
275
|
-
|
132
|
+
test_files:
|
133
|
+
- test/test-formats.rb
|
134
|
+
- test/test-concurrency.rb
|
135
|
+
- test/test-fsdb.rb
|
136
|
+
- test/test-modex.rb
|
137
|
+
- test/test-mutex.rb
|
data/junk/OLDRakefile
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'rake'
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'rake/contrib/sshpublisher'
|
5
|
-
require 'rake/gempackagetask'
|
6
|
-
|
7
|
-
PKG_VERSION = IO::read 'VERSION'
|
8
|
-
PKG_VERSION.strip!
|
9
|
-
PKG_NAME = "fsdb"
|
10
|
-
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
11
|
-
|
12
|
-
#-----------------------------------------------------------------------
|
13
|
-
desc "Default Task"
|
14
|
-
task :default => :package
|
15
|
-
|
16
|
-
#-----------------------------------------------------------------------
|
17
|
-
# cleanup
|
18
|
-
#-----------------------------------------------------------------------
|
19
|
-
CLOBBER.include(
|
20
|
-
"pkg/**",
|
21
|
-
"README"
|
22
|
-
)
|
23
|
-
#-----------------------------------------------------------------------
|
24
|
-
# generate README
|
25
|
-
#
|
26
|
-
# - maybe make a task lib out of the gen_readme.rb code ?
|
27
|
-
#
|
28
|
-
#-----------------------------------------------------------------------
|
29
|
-
desc "Generate README"
|
30
|
-
task :readme => [:clobber] do
|
31
|
-
File.open('README','w') do |f|
|
32
|
-
$stdout = f
|
33
|
-
tmpl = IO::read 'gen_readme.rb'
|
34
|
-
eval tmpl
|
35
|
-
$stdout = STDOUT
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
#-----------------------------------------------------------------------
|
41
|
-
# Publish to website
|
42
|
-
#-----------------------------------------------------------------------
|
43
|
-
desc "Publish the gem on codeforpeople.com"
|
44
|
-
|
45
|
-
PUBLISH_HOST = "codeforpeople.com"
|
46
|
-
PUBLISH_ROOT = "/lib/ruby"
|
47
|
-
task :publish => [:package] do
|
48
|
-
`ssh #{PUBLISH_HOST} 'mkdir -p #{PUBLISH_ROOT}/#{PKG_NAME}/#{PKG_FILE_NAME}'`
|
49
|
-
`scp -rq ./ #{PUBLISH_HOST}:#{PUBLISH_ROOT}/#{PKG_NAME}/#{PKG_FILE_NAME}`
|
50
|
-
|
51
|
-
# if packages should go somewhere else
|
52
|
-
Rake::SshFilePublisher.new(PUBLISH_HOST, "#{PUBLISH_ROOT}/pkg", "pkg", "#{PKG_FILE_NAME}.zip").upload
|
53
|
-
Rake::SshFilePublisher.new(PUBLISH_HOST, "#{PUBLISH_ROOT}/pkg", "pkg", "#{PKG_FILE_NAME}.tgz").upload
|
54
|
-
Rake::SshFilePublisher.new(PUBLISH_HOST, "#{PUBLISH_ROOT}/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
|
55
|
-
|
56
|
-
end
|
57
|
-
|
58
|
-
#-----------------------------------------------------------------------
|
59
|
-
# install
|
60
|
-
#-----------------------------------------------------------------------
|
61
|
-
task :install => [:package] do
|
62
|
-
`gem install pkg/#{PKG_FILE_NAME}.gem`
|
63
|
-
end
|
64
|
-
|
65
|
-
#-----------------------------------------------------------------------
|
66
|
-
# gem specification for :package
|
67
|
-
#-----------------------------------------------------------------------
|
68
|
-
task :package => [:clobber, :readme]
|
69
|
-
|
70
|
-
spec = Gem::Specification.new do |s|
|
71
|
-
s.name = PKG_NAME
|
72
|
-
s.version = PKG_VERSION
|
73
|
-
s.platform = Gem::Platform::RUBY
|
74
|
-
s.summary = "better living through metaprogramming:"
|
75
|
-
s.description = <<DESC
|
76
|
-
traits.rb aims to be a better set of attr_* methods and encourages
|
77
|
-
better living through meta-programming and uniform access priciples.
|
78
|
-
traits.rb supercedes attributes.rb. why? the name is shorter ;-)
|
79
|
-
DESC
|
80
|
-
|
81
|
-
s.has_rdoc = false
|
82
|
-
|
83
|
-
# no dependencies
|
84
|
-
# s.add_dependency('gem', '>= version')
|
85
|
-
|
86
|
-
s.files = %w(README VERSION) + Dir['lib/**/*'] + Dir['sample/**/*']
|
87
|
-
s.require_path = '.'
|
88
|
-
|
89
|
-
s.author = "Ara T. Howard"
|
90
|
-
s.email = "ara [dot] t [dot] howard [at] noaa [dot] gov"
|
91
|
-
|
92
|
-
end
|
93
|
-
|
94
|
-
Rake::GemPackageTask.new(spec) do |p|
|
95
|
-
p.gem_spec = spec
|
96
|
-
p.need_tar = true
|
97
|
-
p.need_zip = true
|
98
|
-
end
|
data/junk/OLDRakefile2
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
@project = 'fsdb'
|
2
|
-
|
3
|
-
#==== Tasks
|
4
|
-
|
5
|
-
desc "make Ruby api docs"
|
6
|
-
task :rdoc
|
7
|
-
|
8
|
-
#==== Utility methods
|
9
|
-
|
10
|
-
def version
|
11
|
-
@version ||= `prcs info | tail -n1`[/^(.*) by \w+/, 1]
|
12
|
-
end
|
13
|
-
|
14
|
-
def ver
|
15
|
-
@ver ||= version[/^#{@project} (\S+)/, 1]
|
16
|
-
end
|
17
|
-
|
18
|
-
#==== Definitions
|
19
|
-
|
20
|
-
ruby_api_doc_dir = "doc/api"
|
21
|
-
ruby_doc_index = File.join(ruby_api_doc_dir, "index.html")
|
22
|
-
ruby_doc_files = FileList[%w{
|
23
|
-
fsdb.txt RELEASE-NOTES README
|
24
|
-
lib/fsdb/database.rb lib/fsdb/file-lock.rb lib/fsdb/util.rb
|
25
|
-
lib/fsdb/modex.rb lib/fsdb/mutex.rb lib/fsdb/util.rb
|
26
|
-
lib/fsdb/formats.rb
|
27
|
-
}]
|
28
|
-
|
29
|
-
project_web = "vjoel@rubyforge.org:/var/www/gforge-projects/#{@project}"
|
30
|
-
|
31
|
-
#==== Actions
|
32
|
-
|
33
|
-
file ruby_doc_index => ruby_doc_files do
|
34
|
-
sh %{
|
35
|
-
rdoc --template=jamis --inline-source -m fsdb.txt \
|
36
|
-
-o #{ruby_api_doc_dir} \
|
37
|
-
-t 'FSDB' -f html \
|
38
|
-
#{ruby_doc_files}
|
39
|
-
}
|
40
|
-
end
|
41
|
-
|
42
|
-
task :rdoc => ruby_doc_index
|
43
|
-
|
44
|
-
task :rubyforge => [:rdoc] do
|
45
|
-
## rdoc still doesn't work on rubyforge?
|
46
|
-
sh "scp -r doc/api/* #{project_web}"
|
47
|
-
end
|
48
|
-
|
49
|
-
task :version do
|
50
|
-
puts version
|
51
|
-
end
|
52
|
-
|
53
|
-
task :ver do
|
54
|
-
puts ver
|
55
|
-
end
|