active_wrapper 0.2.5 → 0.2.6

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.
Files changed (3) hide show
  1. data/gemspec.rb +1 -1
  2. data/lib/active_wrapper.rb +3 -2
  3. metadata +2 -2
data/gemspec.rb CHANGED
@@ -19,5 +19,5 @@ GEM_SPEC = Gem::Specification.new do |s|
19
19
  s.name = GEM_NAME
20
20
  s.platform = Gem::Platform::RUBY
21
21
  s.require_path = "lib"
22
- s.version = "0.2.5"
22
+ s.version = "0.2.6"
23
23
  end
@@ -20,10 +20,11 @@ module ActiveWrapper
20
20
 
21
21
  def setup(options={})
22
22
 
23
+ env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || ENV['MERB_ENV'] || 'development'
23
24
  options = {
24
25
  :base => File.dirname($0),
25
- :env => ENV['RACK_ENV'] || ENV['RAILS_ENV'] || ENV['MERB_ENV'] || 'development',
26
- :log => options[:env] || 'development'
26
+ :env => options[:env] || env,
27
+ :log => options[:env] || env
27
28
  }.merge(options.reject { |k, v| v.nil? })
28
29
 
29
30
  db = Db.new(options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-03 00:00:00 -08:00
12
+ date: 2010-04-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency