penchant 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Penchant
2
- VERSION = "0.2.19"
2
+ VERSION = "0.2.20"
3
3
  end
@@ -29,8 +29,12 @@ if [[ "${msg}" != *"[ci skip]"* ]]; then
29
29
  GIT_DIR=$OLD_GIT_DIR
30
30
  fi
31
31
 
32
- bundle exec rake
33
- R=$?
34
- if [ $R -ne 0 ]; then exit $R; fi
32
+ if [ $(bundle exec rake -P | grep default | wc -l) -ne 0 ]; then
33
+ bundle exec rake
34
+ R=$?
35
+ if [ $R -ne 0 ]; then exit $R; fi
36
+ else
37
+ echo "[penchant] No default Rake task found! Add one if you want to run tests before committing."
38
+ fi
35
39
  fi
36
40
 
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
 
3
- if [ $(bundle exec rake -T preflight_check | wc -l) -eq 1 ]; then
3
+ if [ $(bundle exec rake -P | grep preflight_check | wc -l) -ne 0 ]; then
4
4
  bundle exec rake preflight_check
5
5
  R=$?
6
6
  if [ $R -ne 0 ]; then exit $R; fi
@@ -11,3 +11,4 @@ penchant gemfile remote --deployment
11
11
  GIT_DIR=$OLD_GIT_DIR
12
12
  git add Gemfile*
13
13
 
14
+ exit 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: penchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -197,12 +197,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  - - ! '>='
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
+ segments:
201
+ - 0
202
+ hash: 414518045832803
200
203
  required_rubygems_version: !ruby/object:Gem::Requirement
201
204
  none: false
202
205
  requirements:
203
206
  - - ! '>='
204
207
  - !ruby/object:Gem::Version
205
208
  version: '0'
209
+ segments:
210
+ - 0
211
+ hash: 414518045832803
206
212
  requirements: []
207
213
  rubyforge_project: penchant
208
214
  rubygems_version: 1.8.23