micro_sql 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
- require 'pg'
2
-
3
1
  class MicroSql::PgAdapter < MicroSql
4
2
  def initialize(url)
3
+ require 'pg'
4
+
5
5
  uri = URI.parse(url)
6
6
 
7
7
  @impl = PG.connect :host => uri.host,
@@ -1,7 +1,7 @@
1
- require "sqlite3"
2
-
3
1
  class MicroSql::SqliteAdapter < MicroSql
4
2
  def initialize(url)
3
+ require "sqlite3"
4
+
5
5
  uri = URI.parse(url)
6
6
  @impl = SQLite3::Database.new(uri.path)
7
7
  exec! "PRAGMA synchronous = OFF"
@@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
36
36
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
37
37
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
38
38
  gem.require_paths = ["lib"]
39
- gem.version = "0.4.2"
39
+ gem.version = "0.4.3"
40
40
  gem.date = Time.now.strftime "%Y-%m-%d"
41
41
 
42
42
  gem.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: 3574959270032136388
56
+ hash: 2497191340232602195
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements: