activerecord-jdbcteradata-adapter 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'activerecord-jdbcteradata-adapter'
|
3
|
-
s.version = '0.5.
|
3
|
+
s.version = '0.5.1'
|
4
4
|
s.authors = ['Chris Parker']
|
5
5
|
s.email = %w(mrcsparker@gmail.com)
|
6
6
|
s.homepage = 'https://github.com/mrcsparker/activerecord-jdbcteradata-adapter'
|
@@ -23,7 +23,11 @@ class ActiveRecord::Base
|
|
23
23
|
|
24
24
|
# For ARJDBC we only need the URL, username, and password
|
25
25
|
# We set the database config entry because it's used by the adapter to determine database_name
|
26
|
-
|
26
|
+
if ds.respond_to?('getJdbcUrl')
|
27
|
+
config[:url] = ds.getJdbcUrl
|
28
|
+
else
|
29
|
+
config[:url] = ds.getUrl
|
30
|
+
end
|
27
31
|
config[:username] ||= ds.getUsername
|
28
32
|
config[:database] ||= config[:url][/DATABASE=(.*?),/m, 1] unless config[:url].nil?
|
29
33
|
config[:password] ||= ds.getPassword
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbcteradata-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.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-09-
|
12
|
+
date: 2013-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|