app_reset 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # AppReset
2
2
 
3
+ ## Installation
4
+
5
+ It is recommended you only include `app_reset` in your development environment:
6
+
7
+ ```ruby
8
+ gem 'app_reset', :group => :development
9
+ ```
10
+
11
+ If you are using it in a rails engine, don't forget to require it:
12
+
13
+ ```ruby
14
+ require 'app_reset' if Rails.env.development?
15
+ ```
16
+
17
+ ## Usage
18
+
3
19
  Resets (and if available, seeds) your development and test databases via:
4
20
 
5
21
  rake app:reset
@@ -1,3 +1,3 @@
1
1
  module AppReset
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -20,9 +20,7 @@ if Rails.env.development? || Rails.env.test?
20
20
 
21
21
  Rails.env = env
22
22
 
23
- Rake::Task['db:drop'].invoke
24
- Rake::Task['db:create'].invoke
25
- Rake::Task['db:migrate'].invoke
23
+ Rake::Task['db:migrate:reset'].invoke
26
24
 
27
25
  # execute the main app's seeds.rb file
28
26
  load 'db/seeds.rb'
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: 787325732472438340
76
+ hash: 1997090058352444834
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: 787325732472438340
85
+ hash: 1997090058352444834
86
86
  requirements: []
87
87
  rubyforge_project:
88
88
  rubygems_version: 1.8.24