sqldroid 1.1.0.beta.3-java → 1.1.0.beta.4-java

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
  SHA256:
3
- metadata.gz: 00b5eff8e765aa927551428e917e8daa96340a8f0a506ee9d044e52bd8e0832f
4
- data.tar.gz: 81a8ce53f7a63e2dc0df7ac4394ab19109b53aa44627e598ae832f7866ecac2f
3
+ metadata.gz: 3a8c24e3841415f6410dc613dc4ff50dbffae0b095dcbc1844609d9880cb921d
4
+ data.tar.gz: 6cd7efddc2a6b32562f46221fe548d7f33f0f64b28a048ac4f475f193d5acd03
5
5
  SHA512:
6
- metadata.gz: 00b90a90883e5bb20919c1919cff1872daad1aa427e2000fa09ecc32bf282595f740c90bb5adc0cd481c52ec856225daee6053029b644c796e81b4b3aa8608c7
7
- data.tar.gz: 21301ad594b65add42627e34d8c7eb3ffe5f0de51e8f4df677387dffd3a212101c02f9ca7f2e4471087be37c383a25b5910381400e50956a6b8744b3f8952d7a
6
+ metadata.gz: 146a73c7d1c5b039bf7e12b181635dfabd4c404a911a15153e2160ca3c2eb61535debdb8d64f6d8646087ebff6005a1cfbc5885c8a392aa480e51be35478b159
7
+ data.tar.gz: 41fbcdd741f7df698ea8d060c3ec9b01f679a656631f6efc985ce698f7bd6bcae0050baa5821212e0b3f5a5e03dc2a436154c15587c3edae7f2289334282796d
@@ -0,0 +1,26 @@
1
+ warn 'SqlDroid is only for use with JRuby' if RUBY_ENGINE != 'jruby'
2
+
3
+ require 'sqldroid/version'
4
+
5
+ module Jdbc
6
+ module SQLite3
7
+ def self.driver_jar
8
+ "sqldroid/sqldroid-#{SQLDroid::MAVEN_VERSION}.jar"
9
+ end
10
+
11
+ def self.load_driver(method = :load)
12
+ send method, driver_jar
13
+ end
14
+
15
+ def self.driver_name
16
+ 'org.sqlite.JDBC'
17
+ end
18
+
19
+ if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
20
+ (Java::JavaLang::Boolean.get_boolean('jdbc.driver.autoload') ||
21
+ Java::JavaLang::Boolean.get_boolean('jdbc.sqlite3.autoload'))
22
+ warn "autoloading JDBC driver on require 'jdbc/sqlite3'" if $VERBOSE
23
+ load_driver :require
24
+ end
25
+ end
26
+ end
@@ -1,4 +1,4 @@
1
1
  module SQLDroid
2
- MAVEN_VERSION = '1.1.0beta3-SNAPSHOT'
2
+ MAVEN_VERSION = '1.1.0beta4-SNAPSHOT'
3
3
  VERSION = Gem::Version.new(MAVEN_VERSION.gsub('-SNAPSHOT', '')).send(:_segments).join('.')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqldroid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta.3
4
+ version: 1.1.0.beta.4
5
5
  platform: java
6
6
  authors:
7
7
  - donv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  SQLDroid is a JDBC driver for Android's sqlite database (android.database.sqlite.SQLiteDatabase).
@@ -19,8 +19,9 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - lib/jdbc/sqlite3.rb
22
23
  - lib/sqldroid.rb
23
- - lib/sqldroid/sqldroid-1.1.0beta3-SNAPSHOT.jar
24
+ - lib/sqldroid/sqldroid-1.1.0beta4-SNAPSHOT.jar
24
25
  - lib/sqldroid/version.rb
25
26
  homepage: http://sqldroid.org/
26
27
  licenses: