sniff 0.4.9 → 0.4.10

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.
@@ -38,9 +38,11 @@ module Sniff
38
38
 
39
39
  # Connect to the database and set up an ActiveRecord logger
40
40
  def db_init(options)
41
+ options[:db_adapter] ||= 'sqlite3'
42
+ options[:db_name] ||= ':memory:'
41
43
  ActiveRecord::Base.logger = Logger.new options[:sqllogdev]
42
- ActiveRecord::Base.establish_connection :adapter => 'sqlite3',
43
- :database => ':memory:'
44
+ ActiveRecord::Base.establish_connection :adapter => options[:db_adapter],
45
+ :database => options[:db_name]
44
46
  end
45
47
 
46
48
  # Initialize Earth, tell it to load schemas defined by each domain model's
@@ -136,8 +136,8 @@ module Sniff
136
136
  test_tasks << :examples if rspec
137
137
  test_tasks << :features if cucumber
138
138
  unless test_tasks.empty?
139
- task :default => test_tasks.first
140
139
  task :test => test_tasks
140
+ task :default => :test
141
141
  end
142
142
 
143
143
  Rake::RDocTask.new do |rdoc|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 9
9
- version: 0.4.9
8
+ - 10
9
+ version: 0.4.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Derek Kastner
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-21 00:00:00 -05:00
17
+ date: 2010-12-22 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
328
  requirements:
329
329
  - - ">="
330
330
  - !ruby/object:Gem::Version
331
- hash: -1042113649
331
+ hash: 594378447
332
332
  segments:
333
333
  - 0
334
334
  version: "0"