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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70d7731b7a55c2de05195b0fc7a248cccb07fdcb
4
- data.tar.gz: 537457fd868d3f6da6c2cca04b268e0b0b40e7f1
3
+ metadata.gz: d70e00788d5a92b9468285f332ed73f17672dfb5
4
+ data.tar.gz: f28adf52ddec58e6ab153cb6ece2fa7d6f83c7a7
5
5
  SHA512:
6
- metadata.gz: cd96b91dab98a724e0b77a7e04febbdf149110d3c08502646573b9c315571d29f744552c2f4bae4bb0390bd870c3f98221ec64cd3f54624c95be4b5f0e41e37f
7
- data.tar.gz: 6a977f4c8e39503898461dcb50e1fec0a9cfecae1e38ffae9638b649c2682b990426795ad0f52ac6e1aadb13b295e1844f8f0ccf293bf6ca2162b7206d250d5c
6
+ metadata.gz: 361ef94994ece161a794a604079aecdfba0b19fca0a30126e98e957ae37463dc1ff37924f96e305d11c5999471d991f9106f018fbd91d219c4c23c449a902985
7
+ data.tar.gz: ed834e0946778075be0484354b6622432da7561def0238d12977fb6a3db9b5e762d8cdeb10f7ffc2ee51d347199eb264d59aa1cf23de479476498ebeef7e48c8
@@ -14,13 +14,25 @@ namespace :sanity do
14
14
  sh "rubocop -l"
15
15
  end
16
16
 
17
- desc "Run full sanity check"
18
- task :check do
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
- Rake::Task["traceroute"].invoke
22
- Rake::Task["sanity:rubocop"].invoke
23
- Rake::Task["sanity:brakeman"].invoke
24
- Rake::Task["sanity:best_practices"].invoke
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
@@ -1,3 +1,3 @@
1
1
  module SanityCheck
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-09 00:00:00.000000000 Z
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.5
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.