activerecord-jdbcsplice-adapter 0.1.1 → 0.1.2

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: 2c265c9ec1b853fadf7e9e53c788da0f65ed1ce7
4
- data.tar.gz: a840b97d3459278038376960771fcfb528238057
3
+ metadata.gz: 8bd4c9f47550f6ded46b192947daca2a0f9ff9ba
4
+ data.tar.gz: 2ec9eaf99924671975b3d9395aa23b22149162f2
5
5
  SHA512:
6
- metadata.gz: 011516e56498e933161b20e3fb48977d0e64263f0aa5998216c4312a5bbf45415681582f0f73dfcb39ec5d4d76adffc6a8e50ddb75397d92bc16a4877c09a8dd
7
- data.tar.gz: a0273363559c68b6c91518be4e95be9321b6fdd1e29a00b7c6e113fd198ed4340944bbb8daebb42d752cfb3c6b18a1a2cdb8d0365a29a59c0dbda093636bb944
6
+ metadata.gz: b0f906e87dff9b8593c4b4d23ae2ffe1a0ef0abba5708a7c707fd2cb53e5533af36b2ce07c682ad8c5e6b2ddf598f72d4a5171886370f253563a6401ee014a54
7
+ data.tar.gz: c275f40f2f61d7f289e6c45eae46f8e63c837fdacc97a8ee60e3a75f63076be758c20543c3e7fee5803a6a319a4666ef125bb50974ba2c62f623bb0906840e83
@@ -1,5 +1 @@
1
- # NOTE: required by AR resolver with 'jdbcderby' adapter configuration :
2
- # we should make sure a jdbcderby_connection is setup on ActiveRecord::Base
3
- require 'arjdbc/splice'
4
- # all setup should be performed in arjdbc/derby to avoid circular requires
5
- # this should not be required from any loads perormed by arjdbc/derby code
1
+ require 'arjdbc/splice'
@@ -1,9 +1,5 @@
1
1
  require "active_record/jdbcsplice/adapter/version"
2
2
 
3
- # NOTE: here for Bundler to auto-load the gem unless :require => false
4
- # require 'arjdbc/derby'
5
- # require 'activerecord/connection_adapters/jdbcsplice_adapter'
6
-
7
3
  module Activerecord
8
4
  module Jdbcsplice
9
5
  module Adapter
@@ -1,7 +1,7 @@
1
1
  module Activerecord
2
2
  module Jdbcsplice
3
3
  module Adapter
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,11 @@
1
+ require 'rails/railtie'
2
+
3
+ module ArJdbc
4
+ class Railtie < ::Rails::Railtie
5
+ rake_tasks do
6
+ if defined? ActiveRecord::Railtie # only if AR being used
7
+ load File.expand_path('tasks.rb', File.dirname(__FILE__))
8
+ end
9
+ end
10
+ end
11
+ end
@@ -11,7 +11,6 @@ ArJdbc::ConnectionMethods.module_eval do
11
11
  end
12
12
 
13
13
  throw "Please specify Splice Cluster URL by defining 'server_url:' in database.yml" if config[:server_url].blank?
14
-
15
14
  config[:url] ||= "jdbc:splice://#{config[:server_url]}/#{config[:database]};create=true"
16
15
  config[:driver] ||= defined?(::Jdbc::Splice.driver_name) ?
17
16
  ::Jdbc::Splice.driver_name : 'com.splicemachine.db.jdbc.ClientDriver'
@@ -0,0 +1,13 @@
1
+ if defined?(Rake.application) && Rake.application
2
+ skip = ENV["SKIP_AR_JDBC_RAKE_REDEFINES"] # jruby -J-Darjdbc.tasks.skip=true -S rake ...
3
+ if !(Java::JavaLang::Boolean.getBoolean('arjdbc.tasks.skip') || ( skip && skip != 'false' ))
4
+ databases_rake = File.expand_path('tasks/databases.rake', File.dirname(__FILE__))
5
+ if Rake.application.lookup("db:create")
6
+ load databases_rake # load the override tasks now
7
+ else # rails tasks not loaded yet; load as an import
8
+ Rake.application.add_import(databases_rake)
9
+ end
10
+ end
11
+ else
12
+ warn "ArJdbc: could not load rake tasks - rake not loaded ..."
13
+ end
@@ -0,0 +1,7 @@
1
+ require 'arjdbc/tasks/derby_database_tasks'
2
+
3
+ module ArJdbc
4
+ module Tasks
5
+ ActiveRecord::Tasks::DatabaseTasks.register_task(/splice/, DerbyDatabaseTasks)
6
+ end
7
+ end
@@ -0,0 +1 @@
1
+ require 'arjdbc/tasks/database_tasks'
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kolosek
@@ -55,12 +55,16 @@ files:
55
55
  - lib/active_record/connection_adapters/jdbcsplice_adapter.rb
56
56
  - lib/active_record/jdbcsplice/adapter.rb
57
57
  - lib/active_record/jdbcsplice/adapter/version.rb
58
+ - lib/arjdbc/railtie.rb
58
59
  - lib/arjdbc/splice.rb
59
60
  - lib/arjdbc/splice/connection_jdbc_column.rb
60
61
  - lib/arjdbc/splice/connection_methods.rb
61
62
  - lib/arjdbc/splice/connection_schema_statements.rb
62
63
  - lib/arjdbc/splice/derby_adapter_overrides.rb
63
64
  - lib/arjdbc/splice/schema_creation.rb
65
+ - lib/arjdbc/tasks.rb
66
+ - lib/arjdbc/tasks/database_tasks.rb
67
+ - lib/arjdbc/tasks/databases.rake
64
68
  homepage: http://splicemachine.com
65
69
  licenses:
66
70
  - MIT