app_reset 0.0.3 → 0.0.4

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.
data/README.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # AppReset
2
2
 
3
+ ## Why?
4
+
5
+ Compared to __db:reset__:
6
+
7
+ `db:reset` resets your database from `schema.rb` - during early stage of development, the migration files are often edited directly to keep the sanity.
8
+
9
+ Compared to __db:migrate:reset__:
10
+
11
+ AppReset always calls `db:create` to ensure databases exist, and then calls `db:migrate:reset`. It also ensures `seeds.rb` will get called if you are in a rails engine environment.
12
+
13
+ AppReset basically replaces the following steps:
14
+
15
+ - db:create
16
+ - db:migrate:reset
17
+ - RAILS_ENV=test db:migrate:reset
18
+ - run seeds.rb from your rails engine
19
+
3
20
  ## Installation
4
21
 
5
22
  It is recommended you only include `app_reset` in your development environment:
@@ -1,3 +1,3 @@
1
1
  module AppReset
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'awesome_print'
2
2
 
3
- if Rails.env.development? || Rails.env.test?
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
6
 
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.3
4
+ version: 0.0.4
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-16 00:00:00.000000000 Z
12
+ date: 2012-07-31 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: 4181784856909428984
76
+ hash: -2676733641275906127
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: 4181784856909428984
85
+ hash: -2676733641275906127
86
86
  requirements: []
87
87
  rubyforge_project:
88
88
  rubygems_version: 1.8.24