rapid-app 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -142,6 +142,10 @@ module Rapid
142
142
  sqlite? || mysql?
143
143
  end
144
144
 
145
+ def sqlite3?
146
+ sqlite?
147
+ end
148
+
145
149
  end
146
150
 
147
151
  setting.class_eval 'test' do
@@ -1,5 +1,5 @@
1
1
  module Rapid
2
2
  module App
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -105,6 +105,30 @@ describe "templates/config/deploy.rb" do
105
105
 
106
106
  end
107
107
 
108
+ describe "database.sqlite3" do
109
+
110
+ it "should push true" do
111
+ push 'database.sqlite' => true
112
+ @result.should include %(/system/production.sqlite3)
113
+ end
114
+
115
+ it "should push false" do
116
+ push 'database.sqlite' => false
117
+ @result.should_not include %(/system/production.sqlite3)
118
+ end
119
+
120
+ it "should pull true" do
121
+ pull 'database.sqlite' => true
122
+ @result['database.sqlite3'].should == true
123
+ end
124
+
125
+ it "should pull false" do
126
+ pull 'database.sqlite' => false, 'upload.private' => true
127
+ @result['database.sqlite3'].should == false
128
+ end
129
+
130
+ end
131
+
108
132
  describe "database.mongoid" do
109
133
 
110
134
  it "should push true" do
@@ -40,6 +40,9 @@ namespace :deploy do
40
40
  <% if upload.private? %>
41
41
  run "ln -s #{shared_path}/private #{release_path}/private"
42
42
  <% end %>
43
+ <% if database.sqlite3? %>
44
+ run "ln -s #{shared_path}/system/production.sqlite3 #{release_path}/db/production.sqlite3"
45
+ <% end %>
43
46
  end
44
47
 
45
48
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapid-app
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Cunning