cardboard 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "cardboard"
3
- gem.version = "0.1.0"
3
+ gem.version = "0.2.0"
4
4
  gem.authors = ["John Barnette", "Will Farrington"]
5
5
  gem.email = ["jbarnette@github.com", "wfarr@github.com"]
6
6
  gem.description = "Development tools for Boxen's puppet modules."
@@ -1,8 +1,13 @@
1
1
  #!/bin/sh
2
2
  # Check everything for CI.
3
3
 
4
- set -e
4
+ libexec=$(dirname "$0")
5
5
 
6
- bundle exec cardboard syntax &&
7
- bundle exec cardboard specs &&
8
- bundle exec cardboard lint
6
+ echo "--> Checking syntax:"
7
+ "$libexec/syntax" || exit 1
8
+
9
+ echo "--> Running specs:"
10
+ "$libexec/specs" || exit 1
11
+
12
+ echo "--> Checking lint:"
13
+ "$libexec/lint" || exit 1
@@ -5,7 +5,10 @@ set -e
5
5
 
6
6
  puppets=`find manifests -name '*.pp' -print 2>/dev/null`
7
7
  rubies=`find lib spec -name '*.rb' -not -path 'spec/fixtures/*' -print 2>/dev/null`
8
- templates=`find templates -type f -print 2>/dev/null`
8
+
9
+ if [ -d "templates" ] ; then
10
+ templates=`find templates -type f -print 2>/dev/null`
11
+ fi
9
12
 
10
13
  for puppet in $puppets; do
11
14
  /bin/echo -n "${puppet}: "
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Barnette