activerecord-nuodb-adapter 1.0.4 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +6 -20
- data/active_setup_linux.sh +10 -68
- data/activerecord-nuodb-adapter.gemspec +1 -1
- data/lib/active_record/connection_adapters/nuodb/version.rb +1 -1
- metadata +4 -4
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -10,29 +10,12 @@ env:
|
|
10
10
|
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.0.2
|
11
11
|
- NUODB_ROOT=/opt/nuodb NUODB_VERSION=1.0.1
|
12
12
|
|
13
|
-
install:
|
14
|
-
- gem install bundler
|
15
|
-
- gem install thread_safe
|
16
|
-
- gem install minitest
|
17
|
-
- gem install io-console
|
18
|
-
- gem install atomic
|
19
|
-
- gem install bigdecimal
|
20
|
-
- gem install mocha
|
21
|
-
- sudo apt-get update
|
22
|
-
- sudo apt-get install libtool libxml2 openssl sqlite
|
23
|
-
- sudo apt-get install rbenv
|
24
|
-
#- rbenv install 1.9.3-p392
|
25
|
-
#- rbenv global 1.9.3-p392
|
26
|
-
#- rbenv rehash
|
27
|
-
- gem install nuodb
|
28
|
-
- gem install activerecord-nuodb-adapter
|
29
|
-
- gem install rails -v "=3.2.8"
|
30
|
-
|
31
13
|
notifications:
|
32
14
|
recipients:
|
33
15
|
- buck.robert.j@gmail.com
|
34
16
|
- rbuck@nuodb.com
|
35
17
|
- lbayas@nuodb.com
|
18
|
+
- jgetto@nuodb.com
|
36
19
|
|
37
20
|
before_install:
|
38
21
|
- wget http://www.nuodb.com/latest/releases/nuodb-${NUODB_VERSION}.linux.x64.deb --output-document=/var/tmp/nuodb.deb
|
@@ -49,8 +32,11 @@ before_script:
|
|
49
32
|
- sleep 10
|
50
33
|
|
51
34
|
script:
|
52
|
-
- ./active_setup_linux.sh
|
53
|
-
-
|
35
|
+
- . ./active_setup_linux.sh
|
36
|
+
- cd ~/rails-latest
|
37
|
+
- bundle install
|
38
|
+
- gem list -d
|
39
|
+
- ARCONN=nuodb ruby -I"~/rails-latest/activerecord/test/" activerecord/test/cases/base_test.rb
|
54
40
|
|
55
41
|
after_script:
|
56
42
|
- sudo dpkg -r nuodb
|
data/active_setup_linux.sh
CHANGED
@@ -1,61 +1,13 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
#Script to set up activerecord tests on Ubuntu
|
3
3
|
|
4
|
-
#installing dependencies
|
5
|
-
# sudo apt-get update
|
6
|
-
# sudo apt-get install libtool libxml2 openssl sqlite
|
7
|
-
# sudo apt-get install rbenv
|
8
|
-
# sudo apt-get install ruby-build
|
9
|
-
|
10
|
-
echo "eval \"\$(rbenv init -)\"" >> ~/.bash_profile
|
11
|
-
|
12
|
-
# rbenv install 1.9.3-p392
|
13
|
-
# rbenv global 1.9.3-p392
|
14
|
-
# rbenv rehash
|
15
|
-
eval "$(rbenv init -)"
|
16
|
-
|
17
|
-
# sudo gem list | cut -d" " -f1 | xargs gem uninstall -aIx
|
18
|
-
# gem install bundler
|
19
|
-
|
20
|
-
# Writes to .bash_profile
|
21
|
-
echo "export NUODB_ROOT=/opt/nuodb/bin
|
22
|
-
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function" >> ~/.bash_profile
|
23
|
-
|
24
|
-
cd ~/
|
25
|
-
mkdir tmpy
|
26
|
-
git clone https://github.com/nuodb/ruby-nuodb.git ~/tmpy/ruby-nuodb-latest
|
27
|
-
cd ~/tmpy/ruby-nuodb-latest
|
28
|
-
bundle
|
29
|
-
rbenv rehash
|
30
|
-
|
31
|
-
cd ~/tmpy/ruby-nuodb-latest
|
32
|
-
chmod 777 nuodb.gemspec
|
33
|
-
sed -i '/README.rdoc/d' ./nuodb.gemspec #Removes README.rdoc to resolve rake errors
|
34
|
-
gem build nuodb.gemspec
|
35
|
-
#rake clean build
|
36
|
-
#cd pkg
|
37
|
-
sudo gem install nuodb-1.0.2.gem
|
38
|
-
|
39
|
-
#Getting the driver
|
40
|
-
# git clone https://github.com/nuodb/ruby-activerecord-nuodb-adapter.git ~/tmpy/ruby-activerecord-nuodb-adapter-latest
|
41
|
-
# cd ~/tmpy/ruby-activerecord-nuodb-adapter-latest
|
42
|
-
# bundle
|
43
|
-
# rbenv rehash
|
44
|
-
# rake clean build
|
45
|
-
# cd pkg
|
46
|
-
# gem install activerecord-nuodb-adapter-1.0.3.gem #Make robust
|
47
|
-
|
48
4
|
#Getting rails
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
rbenv rehash
|
54
|
-
cd activerecord
|
5
|
+
echo "=== Getting Rails Source ==="
|
6
|
+
git clone https://github.com/rails/rails.git ~/rails-latest
|
7
|
+
cd ~/rails-latest
|
8
|
+
git checkout v3.2.13
|
55
9
|
|
56
|
-
echo "
|
57
|
-
gem 'activerecord-nuodb-adapter'
|
58
|
-
end" >> ~/tmpy/rails-latest/Gemfile
|
10
|
+
echo "=== Apply NuoDB Specific Settings ==="
|
59
11
|
|
60
12
|
echo "
|
61
13
|
nuodb:
|
@@ -71,25 +23,15 @@ echo "
|
|
71
23
|
username: cloud
|
72
24
|
password: user
|
73
25
|
schema: test
|
74
|
-
" >> ~/
|
75
|
-
|
76
|
-
sed -i 's/%w( mysql mysql2 postgresql/%w( nuodb mysql mysql2 postgresql/g' Rakefile
|
26
|
+
" >> ~/rails-latest/activerecord/test/config.example.yml
|
77
27
|
|
78
|
-
|
79
|
-
bundle install
|
80
|
-
|
81
|
-
export GEM_PATH=/home/travis/.rvm/gems/ruby-1.9.3-p448
|
82
|
-
|
83
|
-
#RUBYLIB="~/tmpy/rails-latest/activerecord/test/cases:$RUBYLIB"
|
84
|
-
#export RUBYLIB
|
28
|
+
cp ~/rails-latest/activerecord/test/config.example.yml ~/rails-latest/activerecord/test/config.yml
|
85
29
|
|
30
|
+
sed -i 's/%w( mysql mysql2 postgresql/%w( nuodb mysql mysql2 postgresql/g' Rakefile
|
86
31
|
|
87
|
-
|
32
|
+
echo "gem 'activerecord-nuodb-adapter'" >> ~/rails-latest/Gemfile
|
88
33
|
|
89
|
-
|
90
|
-
#java -jar /opt/nuodb/jar/nuoagent.jar --broker &
|
91
|
-
#/opt/nuodb/bin/nuodb --chorus test --password bar --dba-user cloud --dba-password user --verbose debug --archive /var/tmp/nuodb --initialize --force &
|
92
|
-
#/opt/nuodb/bin/nuodb --chorus test --password bar --dba-user cloud --dba-password user &
|
34
|
+
echo "=== Finished Setting up AR tests ==="
|
93
35
|
|
94
36
|
# Running Tests
|
95
37
|
#cd /tmp/rails-latest/activerecord
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.add_dependency('activerecord', '~> 3.2.11')
|
18
18
|
gem.add_development_dependency('rake', '~> 10.0.3')
|
19
19
|
gem.add_development_dependency('rdoc', '~> 3.10')
|
20
|
-
gem.add_dependency('nuodb', '~> 1.
|
20
|
+
gem.add_dependency('nuodb', '~> 1.1')
|
21
21
|
|
22
22
|
gem.files = `git ls-files`.split($\)
|
23
23
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-nuodb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.1'
|
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: 2013-
|
12
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
69
|
+
version: '1.1'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.
|
77
|
+
version: '1.1'
|
78
78
|
description: An adapter for ActiveRecord and AREL to support the NuoDB distributed
|
79
79
|
database backend.
|
80
80
|
email:
|