zen_garden 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tasks/db.rake +5 -0
- data/lib/tasks/test.rake +9 -7
- data/lib/zen_garden/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2ec367f71e469e18e9ba5cac41ba3de018653f
|
4
|
+
data.tar.gz: e0357f74dc4967662a206aa819542f3690bd7ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92b074fdee0edb11beaed2d66c317b4f3a937ac2c833b195d596593bf99ed9a9efef6d7e90bf2ab1dce2e699e2bc840f5faa5f0042ebb35fd41ee7912abe78f
|
7
|
+
data.tar.gz: f87e728b653c31d2211ca6272007e31afc202889f8582c0ab03585a7bafbacdcdef898c9ca4ce647a2ab435d97d75df4b00e1f4b2f771eb4e2639a56e6631dfe
|
data/Gemfile.lock
CHANGED
data/lib/tasks/db.rake
CHANGED
@@ -7,6 +7,11 @@ namespace :db do
|
|
7
7
|
task :user do
|
8
8
|
sh "createuser -s #{database[:username]}"
|
9
9
|
end
|
10
|
+
|
11
|
+
namespace :setup do
|
12
|
+
desc "'First-time' database setup, create and migrate in one shot"
|
13
|
+
task :first_time => %w(db:create db:migrate)
|
14
|
+
end
|
10
15
|
end
|
11
16
|
|
12
17
|
desc "Create the database user and database, set up the schema, and run seeds"
|
data/lib/tasks/test.rake
CHANGED
@@ -10,20 +10,22 @@ namespace :test do
|
|
10
10
|
sh "travis encrypt #{project} '#{key}=#{value}'"
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
14
13
|
end
|
15
14
|
|
16
15
|
unless defined? Rails::TestUnitRailtie
|
17
16
|
begin
|
18
|
-
require 'rspec/core/rake_task'
|
19
17
|
|
20
|
-
|
21
|
-
|
18
|
+
require 'rspec/core/rake_task'
|
19
|
+
RSpec::Core::RakeTask.new :spec
|
22
20
|
|
23
|
-
|
24
|
-
|
21
|
+
task_order = if defined? Teaspoon
|
22
|
+
%w(db:migrate spec teaspoon)
|
25
23
|
else
|
26
|
-
|
24
|
+
%w(db:migrate spec)
|
27
25
|
end
|
26
|
+
|
27
|
+
desc "Run all tests"
|
28
|
+
task :test => task_order
|
29
|
+
|
28
30
|
rescue LoadError; end
|
29
31
|
end
|
data/lib/zen_garden/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zen_garden
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Scott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|