app_reset 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AppReset
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -3,10 +3,11 @@ require 'awesome_print'
3
3
  unless Rails.env.production?
4
4
  host_is_engine = ! Rake::Task.tasks.map { |t| t.name =~ /app:/ }.uniq.compact.empty?
5
5
  task_name = host_is_engine ? 'reset' : 'app:reset'
6
+ rails_envs = [ENV['RAILS_ENV']] || ['development', 'test']
6
7
 
7
8
  desc 'Resets (and if available, seeds) your development and test databases'
8
9
  task task_name => 'db:create' do
9
- ['development', 'test'].each do |env|
10
+ rails_envs.each do |env|
10
11
  ap '=' * 35
11
12
  ap "Resetting #{env} database ..."
12
13
  ap '=' * 35
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_reset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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-31 00:00:00.000000000 Z
12
+ date: 2012-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: -2676733641275906127
76
+ hash: 2797318221640259502
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  segments:
84
84
  - 0
85
- hash: -2676733641275906127
85
+ hash: 2797318221640259502
86
86
  requirements: []
87
87
  rubyforge_project:
88
88
  rubygems_version: 1.8.24