hyperion-postgres 0.0.1.alpha2 → 0.0.1.alpha3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ require 'hyperion/postgres/db_strategy'
7
7
  module Hyperion
8
8
  module Postgres
9
9
 
10
- def self.create_datastore
10
+ def self.new(opts={})
11
11
  Sql::Datastore.new(DbStrategy.new, QueryExecutorStrategy.new, QueryBuilderStrategy.new)
12
12
  end
13
13
 
@@ -26,8 +26,7 @@ describe Hyperion::Postgres do
26
26
  end
27
27
 
28
28
  around :each do |example|
29
- Hyperion::Sql.with_connection('postgres://localhost/hyperion_ruby') do |connection|
30
- Hyperion::API.datastore = Hyperion::Postgres.create_datastore
29
+ Hyperion::Sql.with_connection_and_ds('postgres://localhost/hyperion_ruby', :postgres) do
31
30
  example.run
32
31
  end
33
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperion-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha2
4
+ version: 0.0.1.alpha3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.0.1.alpha2
37
+ version: 0.0.1.alpha3
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.0.1.alpha2
45
+ version: 0.0.1.alpha3
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: do_postgres
48
48
  requirement: !ruby/object:Gem::Requirement