hyperion-mysql 0.0.1.alpha2 → 0.0.1.alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ require 'hyperion/mysql/db_strategy'
7
7
  module Hyperion
8
8
  module Mysql
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
 
@@ -27,8 +27,7 @@ describe Hyperion::Mysql do
27
27
  end
28
28
 
29
29
  around :each do |example|
30
- Hyperion::Sql.with_connection('mysql://localhost/hyperion_ruby') do |connection|
31
- Hyperion::API.datastore = Hyperion::Mysql.create_datastore
30
+ Hyperion::Sql.with_connection_and_ds('mysql://localhost/hyperion_ruby', :mysql) do |connection|
32
31
  example.run
33
32
  end
34
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperion-mysql
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_mysql
48
48
  requirement: !ruby/object:Gem::Requirement