bard-rake 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bard-rake.gemspec +2 -2
  3. data/lib/bard/rake/db.rb +20 -0
  4. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.5.0
data/bard-rake.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bard-rake"
8
- s.version = "0.4.3"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Micah Geisel"]
12
- s.date = "2012-03-12"
12
+ s.date = "2012-04-11"
13
13
  s.description = "Rake tasks for all bard projects.\n* Bootstrap projects\n* Database backup"
14
14
  s.email = "micah@botandrose.com"
15
15
  s.extra_rdoc_files = [
data/lib/bard/rake/db.rb CHANGED
@@ -23,6 +23,26 @@ module BardRake
23
23
  @config ||= ActiveRecord::Base.configurations[Rails.env || "development"]
24
24
  end
25
25
 
26
+ class Sqlite3
27
+ class << self
28
+ include Rake::DSL
29
+
30
+ def dump
31
+ FileUtils.cp database, FILE_PATH
32
+ end
33
+
34
+ def load
35
+ FileUtils.cp FILE_PATH, database
36
+ end
37
+
38
+ private
39
+
40
+ def database
41
+ BardRake.database_config["database"]
42
+ end
43
+ end
44
+ end
45
+
26
46
  class Postgresql
27
47
  class << self
28
48
  include Rake::DSL
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-rake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 3
10
- version: 0.4.3
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Micah Geisel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-12 00:00:00 Z
18
+ date: 2012-04-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec