sanity_check 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/lib/sanity_check/tasks.rb +18 -6
- data/lib/sanity_check/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d70e00788d5a92b9468285f332ed73f17672dfb5
|
4
|
+
data.tar.gz: f28adf52ddec58e6ab153cb6ece2fa7d6f83c7a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361ef94994ece161a794a604079aecdfba0b19fca0a30126e98e957ae37463dc1ff37924f96e305d11c5999471d991f9106f018fbd91d219c4c23c449a902985
|
7
|
+
data.tar.gz: ed834e0946778075be0484354b6622432da7561def0238d12977fb6a3db9b5e762d8cdeb10f7ffc2ee51d347199eb264d59aa1cf23de479476498ebeef7e48c8
|
data/lib/sanity_check/tasks.rb
CHANGED
@@ -14,13 +14,25 @@ namespace :sanity do
|
|
14
14
|
sh "rubocop -l"
|
15
15
|
end
|
16
16
|
|
17
|
-
desc "Run
|
18
|
-
task :
|
17
|
+
desc "Run automated test suite"
|
18
|
+
task :tests do
|
19
19
|
Rake::Task["spec"].invoke if defined?(RSpec)
|
20
20
|
Rake::Task["test"].invoke if defined?(Test::Unit)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Run full sanity check"
|
24
|
+
task :check do
|
25
|
+
failing_tasks = []
|
26
|
+
%W[sanity:tests traceroute sanity:rubocop sanity:brakeman sanity:best_practices].each do |task|
|
27
|
+
sh("rake #{task}") do |exit_status|
|
28
|
+
failing_tasks << task unless exit_status
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
if failing_tasks.empty?
|
33
|
+
puts "Your application's sanity check has passed!"
|
34
|
+
else
|
35
|
+
fail Exception, "An error occurred in #{failing_tasks.join(', ')}."
|
36
|
+
end
|
25
37
|
end
|
26
38
|
end
|
data/lib/sanity_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanity_check
|
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
|
- Thomas Cioppettini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brakeman
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.4.
|
135
|
+
rubygems_version: 2.4.6
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Rake Tasks that review your code before deploy.
|