activerecord-jdbcnuodb-adapter 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.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/README.md +11 -11
- data/Rakefile +1 -1
- data/activerecord-jdbcnuodb-adapter.gemspec +1 -1
- data/lib/activerecord-jdbcnuodb-adapter.rb +1 -1
- data/spec/functional/connection_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e351781ac3982f4ffc5013626886c7bb8a0b592
|
4
|
+
data.tar.gz: 7f9d8de71a522bfb96d889f90f518812fc19f13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af58d190f821f75584b505c65979370a898b7d82bb4436e135ba2ff1775b8cf4daab597079b3ccf9278eb709872e77cbcfc404377213781aef89797c01aa3b1b
|
7
|
+
data.tar.gz: d965946bd8378a23231cb9eb3a90624f35d8816576edfb5703d07afe8aee6cb27287b3c9a43c1dc74c3a25c81d8ab147350f5048c183755abe67ec97cedc2c88
|
data/.travis.yml
CHANGED
@@ -5,24 +5,24 @@ rvm:
|
|
5
5
|
- jruby-19mode
|
6
6
|
|
7
7
|
env:
|
8
|
-
- NUODB_HOME=/opt/nuodb NUODB_VERSION=2.0
|
9
|
-
- NUODB_HOME=/opt/nuodb NUODB_VERSION=1.2
|
8
|
+
- NUODB_HOME=/opt/nuodb NUODB_VERSION=2.0.3
|
10
9
|
|
11
10
|
notifications:
|
12
11
|
recipients:
|
13
12
|
- buck.robert.j@gmail.com
|
14
13
|
- rbuck@nuodb.com
|
15
14
|
- jgetto@nuodb.com
|
15
|
+
- tgates@nuodb.com
|
16
16
|
|
17
17
|
before_install:
|
18
|
-
- wget http://
|
18
|
+
- wget http://download.nuohub.org/nuodb-${NUODB_VERSION}.linux.x64.deb --output-document=/var/tmp/nuodb.deb
|
19
19
|
- sudo dpkg -i /var/tmp/nuodb.deb
|
20
20
|
- sleep 2
|
21
21
|
|
22
22
|
before_script:
|
23
23
|
- 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"
|
24
|
-
- 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
|
25
|
-
- echo "create user cloud password 'user';" | ${NUODB_HOME}/bin/nuosql test@localhost --user dba --password
|
24
|
+
- 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 dba' waitForRunning true"
|
25
|
+
- echo "create user cloud password 'user';" | ${NUODB_HOME}/bin/nuosql test@localhost --user dba --password dba
|
26
26
|
|
27
27
|
script:
|
28
28
|
- jruby -S bundle install
|
data/README.md
CHANGED
@@ -24,21 +24,21 @@ An ActiveRecord JDBC Adapter for NuoDB.
|
|
24
24
|
database: development
|
25
25
|
schema: test
|
26
26
|
username: dba
|
27
|
-
password:
|
27
|
+
password: dba
|
28
28
|
|
29
29
|
test:
|
30
30
|
adapter: nuodb
|
31
31
|
database: development
|
32
32
|
schema: test
|
33
33
|
username: dba
|
34
|
-
password:
|
34
|
+
password: dba
|
35
35
|
|
36
36
|
production:
|
37
37
|
adapter: nuodb
|
38
38
|
database: development
|
39
39
|
schema: test
|
40
40
|
username: dba
|
41
|
-
password:
|
41
|
+
password: dba
|
42
42
|
|
43
43
|
2. In the Gemfile, call the nuodb gem with:
|
44
44
|
|
@@ -73,7 +73,7 @@ Place the following content in your lib/override_task.rb file:
|
|
73
73
|
|
74
74
|
def alias_task_chain(*args, &block)
|
75
75
|
name, params, deps = Rake.application.resolve_args(args.dup)
|
76
|
-
fq_name = Rake.application.instance_variable_get(:@scope).
|
76
|
+
fq_name = Rake.application.instance_variable_get(:@scope).to_a.reverse.push(name).join(':')
|
77
77
|
alias_task(fq_name)
|
78
78
|
Rake::Task.define_task(*args, &block)
|
79
79
|
end
|
@@ -158,13 +158,13 @@ Or from the source tree:
|
|
158
158
|
Start up a minimal chorus as follows:
|
159
159
|
|
160
160
|
java -jar ${NUODB_ROOT}/jar/nuoagent.jar --broker &
|
161
|
-
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password
|
162
|
-
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password
|
161
|
+
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password dba --verbose debug --archive /var/tmp/nuodb --initialize --force &
|
162
|
+
${NUODB_ROOT}/bin/nuodb --chorus test --password bar --dba-user dba --dba-password dba &
|
163
163
|
|
164
164
|
Create a user in the database:
|
165
165
|
|
166
|
-
${NUODB_ROOT}/bin/nuosql test@localhost --user dba --password
|
167
|
-
> create user
|
166
|
+
${NUODB_ROOT}/bin/nuosql test@localhost --user dba --password dba
|
167
|
+
> create user cloud password 'user';
|
168
168
|
> exit
|
169
169
|
|
170
170
|
Run the tests:
|
@@ -176,9 +176,9 @@ Run the tests:
|
|
176
176
|
|
177
177
|
1. Install the NuoDB gems:
|
178
178
|
|
179
|
-
jruby -S gem install rails
|
180
|
-
jruby -S gem install jdbc-nuodb-
|
181
|
-
jruby -S gem install activerecord-jdbcnuodb-adapter-
|
179
|
+
jruby -S gem install rails --version 3.2.8
|
180
|
+
jruby -S gem install jdbc-nuodb-2.0.3.gem
|
181
|
+
jruby -S gem install activerecord-jdbcnuodb-adapter-2.0.3.gem
|
182
182
|
|
183
183
|
2. Verify the gems are installed:
|
184
184
|
|
data/Rakefile
CHANGED
@@ -117,7 +117,7 @@ namespace :nuodb do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
task :create_user do
|
120
|
-
#puts %x( echo "create user arunit password 'arunit';" | nuosql arunit@localhost --user dba --password
|
120
|
+
#puts %x( echo "create user arunit password 'arunit';" | nuosql arunit@localhost --user dba --password dba )
|
121
121
|
end
|
122
122
|
|
123
123
|
task :start_server do
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.test_files = spec.files.select { |path| path =~ /^test\/.*test.*\.rb/ }
|
23
23
|
|
24
|
-
spec.add_dependency 'jdbc-nuodb', '~> 2.0'
|
24
|
+
spec.add_dependency 'jdbc-nuodb', '~> 2.0.3'
|
25
25
|
spec.add_dependency 'activerecord-jdbc-adapter', '>= 1.0.0'
|
26
26
|
|
27
27
|
%w(rake).each { |gem| spec.add_development_dependency gem }
|
@@ -23,7 +23,7 @@ describe ActiveRecord::ConnectionAdapters::NuoDBAdapter do
|
|
23
23
|
:adapter => 'nuodb',
|
24
24
|
:database => 'test',
|
25
25
|
:username => 'dba',
|
26
|
-
:password => '
|
26
|
+
:password => 'dba'
|
27
27
|
)
|
28
28
|
|
29
29
|
ActiveRecord::Schema.define do
|
@@ -68,4 +68,4 @@ describe ActiveRecord::ConnectionAdapters::NuoDBAdapter do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
71
|
-
end
|
71
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbcnuodb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Buck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jdbc-nuodb
|
@@ -17,12 +17,12 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 2.0.3
|
21
21
|
requirement: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - ~>
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: 2.0.3
|
26
26
|
prerelease: false
|
27
27
|
type: :runtime
|
28
28
|
- !ruby/object:Gem::Dependency
|