zentask 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,16 +2,9 @@
2
2
  namespace :db do
3
3
  desc "Hard development sqlite3 reset && seed"
4
4
  task :hard_reset do
5
- file_name = 'db/development.sqlite3'
6
- print "[del] #{file_name}"
7
- begin
8
- File.delete("#{Rails.root}/#{file_name}")
9
- print " OK\n"
10
- rescue
11
- print " FAIL\n"
12
- end
13
- puts "[rake] db:migrate && [rake] db:seed"
14
- exec "cd #{Rails.root} && rake db:migrate && rake db:seed"
5
+ cmd = "rake db:drop && rake db:create && rake db:migrate && rake db:seed"
6
+ puts cmd.gsub('rake','[rake]')
7
+ exec "cd #{Rails.root} && #{cmd}"
15
8
  end
16
9
 
17
10
  desc "Soft database reset && seed"
@@ -1,3 +1,3 @@
1
1
  module Zentask
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zentask
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-19 00:00:00.000000000 Z
12
+ date: 2012-07-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: zengile.com rake tasks
15
15
  email:
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 1.8.23
51
+ rubygems_version: 1.8.24
52
52
  signing_key:
53
53
  specification_version: 3
54
54
  summary: zengile.com rake tasks, we use every day