activerecord-jdbcsplice-adapter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3f9e871cdb527698fbec03fde007091dfb44e25
4
- data.tar.gz: 50ca0ee40c1682d5686df2d06b60ece014b5a773
3
+ metadata.gz: 2c265c9ec1b853fadf7e9e53c788da0f65ed1ce7
4
+ data.tar.gz: a840b97d3459278038376960771fcfb528238057
5
5
  SHA512:
6
- metadata.gz: 737d40404678f1f919260877f7662ee996b67b03395f6e49d14af7789c53cfc0010d6de960ba48f570a7dadacc4ebc0411f53f8cf8b1d02ae33eadfa3f0d65a4
7
- data.tar.gz: 2665ff2fd00aac56bdf56012fe46741f37812b3c9e6a8c471dabb4d1c119314f11d7025bfe091b84aabe63d5200c446c60fde7a359cd9c1fef00c1d214a9c5eb
6
+ metadata.gz: 011516e56498e933161b20e3fb48977d0e64263f0aa5998216c4312a5bbf45415681582f0f73dfcb39ec5d4d76adffc6a8e50ddb75397d92bc16a4877c09a8dd
7
+ data.tar.gz: a0273363559c68b6c91518be4e95be9321b6fdd1e29a00b7c6e113fd198ed4340944bbb8daebb42d752cfb3c6b18a1a2cdb8d0365a29a59c0dbda093636bb944
@@ -1,7 +1,7 @@
1
1
  module Activerecord
2
2
  module Jdbcsplice
3
3
  module Adapter
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -10,7 +10,9 @@ ArJdbc::ConnectionMethods.module_eval do
10
10
  rescue LoadError # assuming driver.jar is on the class-path
11
11
  end
12
12
 
13
- config[:url] ||= "jdbc:splice:#{config[:database]};create=true"
13
+ throw "Please specify Splice Cluster URL by defining 'server_url:' in database.yml" if config[:server_url].blank?
14
+
15
+ config[:url] ||= "jdbc:splice://#{config[:server_url]}/#{config[:database]};create=true"
14
16
  config[:driver] ||= defined?(::Jdbc::Splice.driver_name) ?
15
17
  ::Jdbc::Splice.driver_name : 'com.splicemachine.db.jdbc.ClientDriver'
16
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbcsplice-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kolosek