rural 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +11 -0
- data/README.txt +63 -0
- data/Rakefile +39 -0
- data/ext/extconf.rb +4 -0
- data/ext/vlerq.c +4531 -0
- data/ext/vlerq.h +350 -0
- data/ext/vlerq_ext.c +394 -0
- data/ext/vlerq_ext.h +197 -0
- data/lib/rural.rb +65 -0
- data/test/test_rural.rb +127 -0
- metadata +65 -0
data/History.txt
ADDED
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
rural
|
2
|
+
http://rural.rubyforge.org/
|
3
|
+
http://www.vlerq.org/
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Rural adds relational algebra operators and persistence to Ruby applications.
|
8
|
+
|
9
|
+
This is a Ruby binding to Vlerq, a vector-oriented query engine using relational
|
10
|
+
algebra and set-wise operations. The data can be either in memory or on file.
|
11
|
+
|
12
|
+
== FEATURES/PROBLEMS:
|
13
|
+
|
14
|
+
* The current code is proof of concept.
|
15
|
+
|
16
|
+
== SYNOPSYS:
|
17
|
+
|
18
|
+
require 'rural'
|
19
|
+
meta = View.mdesc 'A,B:I'
|
20
|
+
view = View.data meta, ['a','bb','ccc'], [1,22,333]
|
21
|
+
puts view.dump
|
22
|
+
|
23
|
+
== REQUIREMENTS:
|
24
|
+
|
25
|
+
* Ruby 1.8+
|
26
|
+
* Test::Unit
|
27
|
+
* Rake or rubygems for install/uninstall
|
28
|
+
|
29
|
+
== INSTALL:
|
30
|
+
|
31
|
+
Using Rubygems:
|
32
|
+
|
33
|
+
* sudo gem install rural
|
34
|
+
|
35
|
+
Using Rake:
|
36
|
+
|
37
|
+
* rake test
|
38
|
+
* sudo rake install
|
39
|
+
|
40
|
+
== LICENSE:
|
41
|
+
|
42
|
+
(The MIT License)
|
43
|
+
|
44
|
+
Copyright (c) 2006 Jean-Claude Wippler
|
45
|
+
|
46
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
47
|
+
a copy of this software and associated documentation files (the
|
48
|
+
'Software'), to deal in the Software without restriction, including
|
49
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
50
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
51
|
+
permit persons to whom the Software is furnished to do so, subject to
|
52
|
+
the following conditions:
|
53
|
+
|
54
|
+
The above copyright notice and this permission notice shall be
|
55
|
+
included in all copies or substantial portions of the Software.
|
56
|
+
|
57
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
58
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
59
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
60
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
61
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
62
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
63
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'hoe'
|
3
|
+
|
4
|
+
EXT_SHLIB = "ext/vlerq.#{Config::CONFIG['DLEXT']}"
|
5
|
+
EXT_FILES = FileList[
|
6
|
+
"ext/*.c",
|
7
|
+
"ext/*.h",
|
8
|
+
"ext/extconf.rb",
|
9
|
+
"ext/Makefile",
|
10
|
+
]
|
11
|
+
|
12
|
+
Hoe.new('rural', '0.1.0') do |p|
|
13
|
+
p.description = p.paragraphs_of('README.txt', 2..3).join("\n\n")
|
14
|
+
p.summary = p.description.split("\n")[0]
|
15
|
+
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
16
|
+
|
17
|
+
p.author = 'Jean-Claude Wippler'
|
18
|
+
p.email = 'jcw@equi4.com'
|
19
|
+
p.url = 'http://rural.rubyforge.org/'
|
20
|
+
|
21
|
+
p.spec_extras[:extensions] = 'ext/extconf.rb'
|
22
|
+
p.clean_globs += ['ext/*.o', 'ext/Makefile', EXT_SHLIB]
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Compile the Vlerq extension"
|
26
|
+
task :compile => ["ext/Makefile", EXT_SHLIB ]
|
27
|
+
|
28
|
+
file 'ext/Makefile' => 'ext/extconf.rb' do
|
29
|
+
Dir.chdir('ext') do ruby 'extconf.rb', '--with-cflags=-DDEBUG' end
|
30
|
+
end
|
31
|
+
|
32
|
+
file EXT_SHLIB => EXT_FILES do
|
33
|
+
Dir.chdir('ext') do
|
34
|
+
sh(PLATFORM =~ /win32/ ? 'nmake' : 'make')
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
task :audit => :compile
|
39
|
+
task :test => :compile
|
data/ext/extconf.rb
ADDED