squixtures 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/squixtures/helper_factory.rb +2 -2
- data/lib/squixtures/version.rb +1 -1
- data/squixtures.gemspec +1 -1
- metadata +3 -3
@@ -13,7 +13,7 @@ module Squixtures
|
|
13
13
|
adapter = settings['adapter']
|
14
14
|
helper = nil
|
15
15
|
case adapter
|
16
|
-
when 'postgresql'
|
16
|
+
when 'postgresql', 'postgres'
|
17
17
|
helper = PostgresHelper.new
|
18
18
|
|
19
19
|
when 'sqlite3'
|
@@ -21,7 +21,7 @@ module Squixtures
|
|
21
21
|
end
|
22
22
|
|
23
23
|
if helper.nil?
|
24
|
-
raise
|
24
|
+
raise SquixtureError.new("Unrecognised database adapter '#{adapter}' encountered.")
|
25
25
|
end
|
26
26
|
helper
|
27
27
|
end
|
data/lib/squixtures/version.rb
CHANGED
data/squixtures.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["ruby@blacknorth.com"]
|
7
7
|
gem.description = %q{Squixtures is a library that provides a data fixtures facility ala the fixtures typically used in unit tests. The library makes use of the Sequel library to provide a degree of database independence (needs more work) and use the LogJam library to unify logging output.}
|
8
8
|
gem.summary = %q{Simple fixtures functionality.}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/free-beer/squixtures"
|
10
10
|
|
11
11
|
gem.add_dependency('sequel', '>= 3.36.1')
|
12
12
|
gem.add_dependency('logjam', '>= 0.0.3')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
@@ -83,7 +83,7 @@ files:
|
|
83
83
|
- test/test/fixtures/products.yml
|
84
84
|
- test/test/fixtures/users.yml
|
85
85
|
- test/test_squixtures_include.rb
|
86
|
-
homepage:
|
86
|
+
homepage: https://github.com/free-beer/squixtures
|
87
87
|
licenses: []
|
88
88
|
post_install_message:
|
89
89
|
rdoc_options: []
|