yasarg 0.0.6 → 0.0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/yasarg.rb +4 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.8.2
data/lib/yasarg.rb CHANGED
@@ -11,5 +11,8 @@ require "yasarg/rails_fake_app"
11
11
  require "yasarg/tasks"
12
12
  require "yasarg/connection"
13
13
 
14
- ActiveRecord::Base.configurations = Yasarg::RailsFakeApp.config.database_configuration
14
+ if !ENV["RAILS_ENV"]
15
+ ENV["RAILS_ENV"] = Rails.env || ENV["RACK_ENV"] || "development"
16
+ end
17
+
15
18
  Yasarg::Connection.establish
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yasarg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8.2
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: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord