nuodb 2.0 → 2.0.3
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/.gitignore +7 -6
- data/.travis.yml +8 -12
- data/AUTHORS +3 -3
- data/LICENSE +1 -1
- data/README.rdoc +45 -0
- data/Rakefile +3 -3
- data/ext/nuodb/nuodb.cpp +7 -6
- data/lib/nuodb.rb +1 -1
- data/lib/nuodb/column.rb +29 -0
- data/lib/nuodb/error.rb +29 -0
- data/lib/nuodb/version.rb +3 -2
- data/nuodb.gemspec +1 -1
- data/tasks/rdoc.rb +4 -4
- metadata +10 -6
- data/CONTRIBUTION.md +0 -71
- data/Gemfile.lock +0 -56
- data/README.md +0 -43
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,32 +5,28 @@ rvm:
|
|
5
5
|
- 1.9.3
|
6
6
|
|
7
7
|
env:
|
8
|
-
-
|
9
|
-
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.1.1
|
10
|
-
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.1
|
11
|
-
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.0.2
|
12
|
-
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.0.1
|
8
|
+
- NUODB_HOME=/opt/nuodb NUODB_VERSION=2.0.3
|
13
9
|
|
14
10
|
notifications:
|
15
11
|
recipients:
|
16
12
|
- buck.robert.j@gmail.com
|
17
13
|
- rbuck@nuodb.com
|
18
14
|
- lbayas@nuodb.com
|
15
|
+
- jgetto@nuodb.com
|
16
|
+
- tgates@nuodb.com
|
19
17
|
|
20
18
|
before_install:
|
21
|
-
- wget http://
|
19
|
+
- wget http://download.nuohub.org/nuodb-${NUODB_VERSION}.linux.x64.deb --output-document=/var/tmp/nuodb.deb
|
22
20
|
- sudo dpkg -i /var/tmp/nuodb.deb
|
23
21
|
- sleep 2
|
24
22
|
|
25
23
|
before_script:
|
26
|
-
- ${
|
27
|
-
-
|
28
|
-
- ${
|
29
|
-
- sleep 4
|
30
|
-
- echo "create user cloud password 'user';" | ${NUODB_ROOT}/bin/nuosql test@localhost --user dba --password baz
|
24
|
+
- java -jar ${NUODB_HOME}/jar/nuodbmanager.jar --broker localhost --user domain --password bird --command "start process sm database test host localhost archive /var/tmp/nuodb initialize true waitForRunning true"
|
25
|
+
- java -jar ${NUODB_HOME}/jar/nuodbmanager.jar --broker localhost --user domain --password bird --command "start process te database test host localhost options '--dba-user dba --dba-password baz' waitForRunning true"
|
26
|
+
- echo "create user cloud password 'user';" | ${NUODB_HOME}/bin/nuosql test@localhost --user dba --password baz
|
31
27
|
|
32
28
|
script:
|
33
|
-
- NUODB_ROOT
|
29
|
+
- NUODB_ROOT="$NUODB_HOME" bundle exec rake spec
|
34
30
|
|
35
31
|
after_script:
|
36
32
|
- sudo dpkg -r nuodb
|
data/AUTHORS
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
The following people have contributed to ruby-nuodb:
|
2
2
|
|
3
|
-
Robert Buck
|
4
|
-
Dave Meppelink
|
3
|
+
* Robert Buck
|
4
|
+
* Dave Meppelink
|
data/LICENSE
CHANGED
data/README.rdoc
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
== NuoDB Ruby Interface
|
2
|
+
|
3
|
+
{<img src="https://api.travis-ci.org/nuodb/ruby-nuodb.png?branch=master" alt="Build Status" />}[http://travis-ci.org/nuodb/ruby-nuodb]
|
4
|
+
{<img src="https://gemnasium.com/nuodb/ruby-nuodb.png?travis" alt="Dependency Status" />}[https://gemnasium.com/nuodb/ruby-nuodb]
|
5
|
+
{<img src="https://codeclimate.com/github/nuodb/ruby-nuodb.png" />}[https://codeclimate.com/github/nuodb/ruby-nuodb]
|
6
|
+
|
7
|
+
== Description
|
8
|
+
|
9
|
+
This is the official Ruby Gem for {NuoDB}[http://www.nuodb.com/]. It wraps the
|
10
|
+
NuoDB C++ API, providing a natural API for Ruby.
|
11
|
+
|
12
|
+
To use NuoDB with Rails you will also want the {ActiveRecord NuoDB
|
13
|
+
Adapter}[https://github.com/nuodb/ruby-activerecord-nuodb-adapter]
|
14
|
+
|
15
|
+
Note: At this time the Ruby/NuoDB Interface does not support Windows.
|
16
|
+
|
17
|
+
== Getting Started
|
18
|
+
|
19
|
+
1. If you haven't already, {Download and Install NuoDB}[http://nuodb.com/download-nuodb/]
|
20
|
+
|
21
|
+
2. Install the gem
|
22
|
+
|
23
|
+
gem install nuodb
|
24
|
+
|
25
|
+
3. Use NuoDB in Ruby
|
26
|
+
|
27
|
+
require "nuodb"
|
28
|
+
|
29
|
+
conn = NuoDB::Connection.new(:database => 'test@localhost', :username => 'dba', :password => 'goalie', :schema => 'hockey')
|
30
|
+
stmt = conn.statement
|
31
|
+
stmt.execute("SELECT * FROM hockey")
|
32
|
+
stmt.results.each do |res|
|
33
|
+
puts res.inspect
|
34
|
+
end
|
35
|
+
|
36
|
+
== More Information
|
37
|
+
|
38
|
+
* {Ruby/NuoDB Interface Rdoc}[http://nuodb.github.io/ruby-nuodb/site/]
|
39
|
+
* {NuoDB Community Forum}[http://www.nuodb.com/community/forum.php]
|
40
|
+
* {NuoDB Online Documentation}[http://doc.nuodb.com/display/doc/NuoDB+Online+Documentation]
|
41
|
+
|
42
|
+
== Contributing
|
43
|
+
|
44
|
+
See {Contribution}[http://nuodb.github.io/ruby-nuodb/site/files/rdoc/GETTING_STARTED_rdoc.html] for information about contributing to
|
45
|
+
the NuoDB Ruby Adapter.
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright (c) 2012, NuoDB, Inc.
|
2
|
+
# Copyright (c) 2012 - 2013, NuoDB, Inc.
|
3
3
|
# All rights reserved.
|
4
4
|
#
|
5
5
|
# Redistribution and use in source and binary forms, with or without
|
@@ -129,7 +129,7 @@ namespace :nuodb do
|
|
129
129
|
case RUBY_PLATFORM
|
130
130
|
when /linux/i
|
131
131
|
unless File.exists? '/etc/redhat-release'
|
132
|
-
puts %x(wget http://
|
132
|
+
puts %x(wget http://download.nuohub.org/nuodb-2.0.3.linux.x64.deb --output-document=/var/tmp/nuodb.deb)
|
133
133
|
puts %x(sudo dpkg -i /var/tmp/nuodb.deb)
|
134
134
|
end
|
135
135
|
else
|
@@ -152,7 +152,7 @@ namespace :nuodb do
|
|
152
152
|
end
|
153
153
|
|
154
154
|
task :create_user do
|
155
|
-
#puts %x( echo "create user arunit password 'arunit';" | nuosql arunit@localhost --user dba --password
|
155
|
+
#puts %x( echo "create user arunit password 'arunit';" | nuosql arunit@localhost --user dba --password dba )
|
156
156
|
end
|
157
157
|
|
158
158
|
task :start_server do
|
data/ext/nuodb/nuodb.cpp
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/****************************************************************************
|
2
|
-
* Copyright (c)2012, NuoDB, Inc.
|
2
|
+
* Copyright (c) 2012 - 2013, NuoDB, Inc.
|
3
3
|
* All rights reserved.
|
4
4
|
*
|
5
5
|
* Redistribution and use in source and binary forms, with or without
|
@@ -26,10 +26,6 @@
|
|
26
26
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
27
|
****************************************************************************/
|
28
28
|
|
29
|
-
/*
|
30
|
-
* NuoDB Adapter
|
31
|
-
*/
|
32
|
-
|
33
29
|
#include <ruby.h>
|
34
30
|
#include "atomic.h"
|
35
31
|
#include <assert.h>
|
@@ -505,6 +501,7 @@ VALUE nuodb_map_sql_type(int type)
|
|
505
501
|
}
|
506
502
|
return symbol;
|
507
503
|
}
|
504
|
+
|
508
505
|
static
|
509
506
|
VALUE nuodb_result_init(VALUE parent, NuoDB::ResultSet* results, NuoDB::Connection* connection)
|
510
507
|
{
|
@@ -2151,8 +2148,12 @@ void nuodb_define_connection_api()
|
|
2151
2148
|
extern "C" void Init_nuodb(void)
|
2152
2149
|
{
|
2153
2150
|
/*
|
2151
|
+
* Document-module: NuoDB
|
2152
|
+
*
|
2153
|
+
* == Description
|
2154
|
+
*
|
2154
2155
|
* The NuoDB module contains classes and function definitions enabling use
|
2155
|
-
* of the NuoDB database.
|
2156
|
+
* of the NuoDB database from the Ruby language.
|
2156
2157
|
*/
|
2157
2158
|
m_nuodb = rb_define_module("NuoDB");
|
2158
2159
|
|
data/lib/nuodb.rb
CHANGED
data/lib/nuodb/column.rb
CHANGED
@@ -1,5 +1,34 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2012 - 2013, NuoDB, Inc.
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
7
|
+
#
|
8
|
+
# * Redistributions of source code must retain the above copyright
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
10
|
+
# * Redistributions in binary form must reproduce the above copyright
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
13
|
+
# * Neither the name of NuoDB, Inc. nor the names of its contributors may
|
14
|
+
# be used to endorse or promote products derived from this software
|
15
|
+
# without specific prior written permission.
|
16
|
+
#
|
17
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
18
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
19
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
# DISCLAIMED. IN NO EVENT SHALL NUODB, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
21
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
23
|
+
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
25
|
+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
26
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
#
|
28
|
+
|
1
29
|
require 'set'
|
2
30
|
|
31
|
+
# :nodoc:
|
3
32
|
module NuoDB
|
4
33
|
|
5
34
|
class Column
|
data/lib/nuodb/error.rb
CHANGED
@@ -1,3 +1,32 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2012 - 2013, NuoDB, Inc.
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
7
|
+
#
|
8
|
+
# * Redistributions of source code must retain the above copyright
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
10
|
+
# * Redistributions in binary form must reproduce the above copyright
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
13
|
+
# * Neither the name of NuoDB, Inc. nor the names of its contributors may
|
14
|
+
# be used to endorse or promote products derived from this software
|
15
|
+
# without specific prior written permission.
|
16
|
+
#
|
17
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
18
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
19
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
20
|
+
# DISCLAIMED. IN NO EVENT SHALL NUODB, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
21
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
23
|
+
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
25
|
+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
26
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
#
|
28
|
+
|
29
|
+
# :nodoc:
|
1
30
|
module NuoDB
|
2
31
|
|
3
32
|
class DatabaseError < StandardError
|
data/lib/nuodb/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright (c) 2012, NuoDB, Inc.
|
2
|
+
# Copyright (c) 2012 - 2013, NuoDB, Inc.
|
3
3
|
# All rights reserved.
|
4
4
|
#
|
5
5
|
# Redistribution and use in source and binary forms, with or without
|
@@ -26,6 +26,7 @@
|
|
26
26
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
27
|
#
|
28
28
|
|
29
|
+
# :nodoc:
|
29
30
|
module NuoDB
|
30
|
-
VERSION = '2.0'
|
31
|
+
VERSION = '2.0.3'
|
31
32
|
end
|
data/nuodb.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = 'BSD'
|
15
15
|
|
16
16
|
spec.rdoc_options = %w(--charset=UTF-8)
|
17
|
-
|
17
|
+
spec.extra_rdoc_files = %w[AUTHORS rdoc/CONTRIBUTION.rdoc rdoc/GETTING_STARTED.rdoc LICENSE]
|
18
18
|
|
19
19
|
spec.extensions = %w(ext/nuodb/extconf.rb)
|
20
20
|
|
data/tasks/rdoc.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
require 'rdoc/task'
|
2
2
|
|
3
|
-
RDOC_FILES = FileList['
|
3
|
+
RDOC_FILES = FileList['rdoc/GETTING_STARTED.rdoc', 'rdoc/CONTRIBUTION.rdoc', 'LICENSE', 'ext/nuodb/nuodb.cpp', 'lib/**/*.rb']
|
4
4
|
|
5
5
|
require 'rdoc/task'
|
6
6
|
Rake::RDocTask.new do |rdoc|
|
7
7
|
rdoc.title = "#{name} #{version}"
|
8
|
-
rdoc.main = '
|
8
|
+
rdoc.main = 'GETTING_STARTED.rdoc'
|
9
9
|
rdoc.rdoc_dir = 'doc/site/api'
|
10
10
|
rdoc.options << "-a" << "-U" << "-D" << "-v" << '-f' << 'hanna'
|
11
11
|
rdoc.rdoc_files.include(RDOC_FILES)
|
12
12
|
end
|
13
13
|
|
14
14
|
Rake::RDocTask.new(:ri) do |rdoc|
|
15
|
-
rdoc.main =
|
16
|
-
rdoc.rdoc_dir =
|
15
|
+
rdoc.main = 'GETTING_STARTED.rdoc'
|
16
|
+
rdoc.rdoc_dir = 'doc/ri'
|
17
17
|
rdoc.options << "--ri-system"
|
18
18
|
rdoc.rdoc_files.include(RDOC_FILES)
|
19
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nuodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubis
|
@@ -257,19 +257,21 @@ email:
|
|
257
257
|
executables: []
|
258
258
|
extensions:
|
259
259
|
- ext/nuodb/extconf.rb
|
260
|
-
extra_rdoc_files:
|
260
|
+
extra_rdoc_files:
|
261
|
+
- AUTHORS
|
262
|
+
- rdoc/CONTRIBUTION.rdoc
|
263
|
+
- rdoc/GETTING_STARTED.rdoc
|
264
|
+
- LICENSE
|
261
265
|
files:
|
262
266
|
- .gitignore
|
263
267
|
- .rspec
|
264
268
|
- .travis.yml
|
265
269
|
- AUTHORS
|
266
|
-
- CONTRIBUTION.md
|
267
270
|
- Gemfile
|
268
|
-
- Gemfile.lock
|
269
271
|
- History.txt
|
270
272
|
- LICENSE
|
271
273
|
- Manifest.txt
|
272
|
-
- README.
|
274
|
+
- README.rdoc
|
273
275
|
- Rakefile
|
274
276
|
- ext/nuodb/atomic.c
|
275
277
|
- ext/nuodb/atomic.h
|
@@ -280,6 +282,8 @@ files:
|
|
280
282
|
- lib/nuodb/error.rb
|
281
283
|
- lib/nuodb/version.rb
|
282
284
|
- nuodb.gemspec
|
285
|
+
- rdoc/CONTRIBUTION.rdoc
|
286
|
+
- rdoc/GETTING_STARTED.rdoc
|
283
287
|
- spec/data/.gitignore
|
284
288
|
- spec/functional/column_spec.rb
|
285
289
|
- spec/functional/connection_spec.rb
|
data/CONTRIBUTION.md
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
# Contributing to the Ruby NuoDB Driver
|
2
|
-
|
3
|
-
## BUILDING THE GEM
|
4
|
-
|
5
|
-
To compile and test run this command:
|
6
|
-
|
7
|
-
rake clean build rdoc spec
|
8
|
-
|
9
|
-
## INSTALLING THE GEM
|
10
|
-
|
11
|
-
NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install nuodb-1.1.gem
|
12
|
-
|
13
|
-
Or from the source tree:
|
14
|
-
|
15
|
-
NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install pkg/nuodb-1.1.gem
|
16
|
-
|
17
|
-
## TESTING THE GEM
|
18
|
-
|
19
|
-
Start up a minimal chorus as follows:
|
20
|
-
|
21
|
-
java -jar ${NUODB_ROOT}/jar/nuoagent.jar --broker &
|
22
|
-
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password baz --verbose debug --archive /var/tmp/nuodb --initialize --force &
|
23
|
-
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password baz &
|
24
|
-
|
25
|
-
Create a user in the database:
|
26
|
-
|
27
|
-
${NUODB_ROOT}/bin/nuosql test@localhost --user dba --password baz
|
28
|
-
> create user cloud password 'user';
|
29
|
-
> exit
|
30
|
-
|
31
|
-
Run the tests:
|
32
|
-
|
33
|
-
rake spec
|
34
|
-
|
35
|
-
## PUBLISHING THE GEM
|
36
|
-
|
37
|
-
### TAGGING
|
38
|
-
|
39
|
-
Tag the product using tags per the SemVer specification; our tags have a
|
40
|
-
v-prefix:
|
41
|
-
|
42
|
-
git tag -a v1.1 -m "SemVer Version: v1.1"
|
43
|
-
|
44
|
-
If you make a mistake, take it back quickly:
|
45
|
-
|
46
|
-
git tag -d v1.1
|
47
|
-
git push origin :refs/tags/v1.1
|
48
|
-
|
49
|
-
### PUBLISHING
|
50
|
-
|
51
|
-
Here are the commands used to publish:
|
52
|
-
|
53
|
-
gem push pkg/nuodb-1.1.gem
|
54
|
-
|
55
|
-
## INSPECTING THE GEM
|
56
|
-
|
57
|
-
It is often useful to inspect the contents of a Gem before distribution. To do
|
58
|
-
this you dump the contents of a gem thus:
|
59
|
-
|
60
|
-
gem unpack pkg/nuodb-1.1.gem
|
61
|
-
|
62
|
-
## INSPECTING THE EXPORTED SYMBOLS
|
63
|
-
|
64
|
-
To inspec the symbols on Linux:
|
65
|
-
|
66
|
-
nm -gU ext/nuodb/nuodb.bundle
|
67
|
-
|
68
|
-
To inspec the symbols on Mac:
|
69
|
-
|
70
|
-
otool -l ext/nuodb/nuodb.bundle
|
71
|
-
|
data/Gemfile.lock
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
nuodb (2.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.1.3)
|
10
|
-
erubis (2.7.0)
|
11
|
-
haml (3.0.25)
|
12
|
-
hanna-nouveau (0.2.7)
|
13
|
-
haml (= 3.0.25)
|
14
|
-
rdoc (~> 3.1)
|
15
|
-
json (1.8.0)
|
16
|
-
multi_json (1.7.9)
|
17
|
-
optiflag (0.7)
|
18
|
-
rake (10.1.0)
|
19
|
-
rdoc (3.12.2)
|
20
|
-
json (~> 1.4)
|
21
|
-
rspec (2.11.0)
|
22
|
-
rspec-core (~> 2.11.0)
|
23
|
-
rspec-expectations (~> 2.11.0)
|
24
|
-
rspec-mocks (~> 2.11.0)
|
25
|
-
rspec-core (2.11.1)
|
26
|
-
rspec-expectations (2.11.3)
|
27
|
-
diff-lcs (~> 1.1.3)
|
28
|
-
rspec-mocks (2.11.3)
|
29
|
-
ruby-prof (0.13.0)
|
30
|
-
rubydoc (0.0.1)
|
31
|
-
optiflag (~> 0.7)
|
32
|
-
sdoc (0.3.20)
|
33
|
-
json (>= 1.1.3)
|
34
|
-
rdoc (~> 3.10)
|
35
|
-
simplecov (0.7.1)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
simplecov-html (~> 0.7.1)
|
38
|
-
simplecov-html (0.7.1)
|
39
|
-
|
40
|
-
PLATFORMS
|
41
|
-
ruby
|
42
|
-
|
43
|
-
DEPENDENCIES
|
44
|
-
erubis (~> 2.7.0)
|
45
|
-
hanna-nouveau
|
46
|
-
nuodb!
|
47
|
-
rake (~> 10.1.0)
|
48
|
-
rdoc
|
49
|
-
rspec (~> 2.11.0)
|
50
|
-
rspec-core (~> 2.11.0)
|
51
|
-
rspec-expectations (~> 2.11.0)
|
52
|
-
rspec-mocks (~> 2.11.0)
|
53
|
-
ruby-prof
|
54
|
-
rubydoc
|
55
|
-
sdoc
|
56
|
-
simplecov
|
data/README.md
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# Ruby/NuoDB Interface [<img src="https://api.travis-ci.org/nuodb/ruby-nuodb.png?branch=master" alt="Build Status" />](http://travis-ci.org/nuodb/ruby-nuodb) [<img src="https://gemnasium.com/nuodb/ruby-nuodb.png?travis" alt="Dependency Status" />](https://gemnasium.com/nuodb/ruby-nuodb) [<img src="https://codeclimate.com/github/nuodb/ruby-nuodb.png" />](https://codeclimate.com/github/nuodb/ruby-nuodb)
|
2
|
-
|
3
|
-
This is the official Ruby Gem for [NuoDB](http://www.nuodb.com/). It wraps the
|
4
|
-
NuoDB C++ API, providing a natural API for Ruby.
|
5
|
-
|
6
|
-
To use NuoDB with Rails you will also want the [ActiveRecord NuoDB
|
7
|
-
Adapter](https://github.com/nuodb/ruby-activerecord-nuodb-adapter)
|
8
|
-
|
9
|
-
Note: At this time the Ruby/NuoDB Interface does not support Windows.
|
10
|
-
|
11
|
-
## Getting Started
|
12
|
-
|
13
|
-
1. If you haven't already, [Download and Install NuoDB](http://nuodb.com/download-nuodb/)
|
14
|
-
|
15
|
-
2. Install the gem
|
16
|
-
|
17
|
-
gem install nuodb
|
18
|
-
|
19
|
-
3. Use NuoDB in Ruby
|
20
|
-
|
21
|
-
require "nuodb"
|
22
|
-
|
23
|
-
conn = NuoDB::Connection.new(:database => 'test@localhost', :username => 'dba', :password => 'goalie', :schema => 'hockey')
|
24
|
-
stmt = conn.statement
|
25
|
-
stmt.execute("SELECT * FROM hockey")
|
26
|
-
stmt.results.each do |res|
|
27
|
-
puts res.inspect
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
## More Information
|
32
|
-
|
33
|
-
* [Ruby/NuoDB Interface Rdoc](http://nuodb.github.io/ruby-nuodb/rdoc/)
|
34
|
-
* [NuoDB Community Forum](http://www.nuodb.com/community/forum.php)
|
35
|
-
* [NuoDB Online Documentation](http://www.nuodb.com/community/documentation.php)
|
36
|
-
|
37
|
-
|
38
|
-
## Contributing
|
39
|
-
|
40
|
-
See [Contribution](CONTRIBUTION.md) for information about contributing to
|
41
|
-
the Ruby ActiveRecord NuoDB Adapter.
|
42
|
-
|
43
|
-
[](http://githalytics.com/nuodb/ruby-nuodb)
|