vagrant-ebcommon 0.5.3 → 0.5.5

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: fb9fc0d65b52350f10c371c42f2b3be600c26b6a
4
- data.tar.gz: 31150d3ed02c3f45470cee277037d31f72f69f6b
3
+ metadata.gz: 18eac42361dbaaa05741efb88013984cd30c2cf9
4
+ data.tar.gz: 733159fe8d8c5ee3aed42782230b0be4476c3704
5
5
  SHA512:
6
- metadata.gz: 22e8bea5783548b0f77bcbca47c627c9acdd729c6c3353421427c5ef4d84e6e35bb8edfa3c6be5a42680030fb1e211975ee7e4dbf776113ccb9731373e7953e6
7
- data.tar.gz: ddb677091bca22bb77aca373d9f870acd4de388c9b6534d9299964cbdbf71c3359c2f39aca68a22ef5f12b396f7a7dfeb66179e41610fb0a7314afbb377ae734
6
+ metadata.gz: 05b45bb2c510b61bfaa712ef86825bfbee76874d69dd742dc22200d77dfe4b15e331a48eb80e326053f95b4c6a6f4197c672a522aae876cd938c8abc68345a45
7
+ data.tar.gz: 75ee9ef3c140d565e622852089811f397db9baf14922ec4df43d7250439df72e6329113903960c6c1d51b18892e7a550e0203ffa11462fc6b5b4f3037ff6561e
@@ -48,6 +48,7 @@ module VagrantPlugins
48
48
  def setup_git_hooks
49
49
  if @ebcommon.git_hook_repos
50
50
  plugin_hooks_dir = File.expand_path File.join(File.dirname(__FILE__), '..', 'files', 'git_hooks')
51
+ FileUtils.mkdir(plugin_hooks_dir) unless File.directory?(plugin_hooks_dir)
51
52
  git_hooks = Dir.entries(plugin_hooks_dir).select {|f| !File.directory? f}
52
53
  @env[:ui].info 'Copying over git commit hooks...'
53
54
 
@@ -13,6 +13,6 @@ then
13
13
 
14
14
 
15
15
  # Pass all the affected files to our Ruby script
16
- $DIR/yaml-parser.rb $FILES
16
+ ruby $DIR/yaml-parser.rb $FILES
17
17
  fi
18
18
  exit 0
@@ -13,14 +13,14 @@ end
13
13
  # Print out all the relavant tests, or all if there's a lot.
14
14
  if !ARGV[0].empty?
15
15
  # Collect all the tests from the YAML
16
- tests = ARGV.map{ | file | data[file] }.compact()
17
- if tests[0].nil?
16
+ tests = ARGV.map{ |file| data[file] }.compact()
17
+ if tests.any? && tests[0].nil?
18
18
  # No tests to run, simply exit.
19
19
  exit 0
20
20
  elsif tests[0].length < 50
21
21
  puts "The following acceptance tests are affected by your changes\n"
22
- tests[0].each do | test |
23
- puts "- #{test}"
22
+ tests[0].each do |t|
23
+ puts "- #{t}"
24
24
  end
25
25
  else
26
26
  puts "Your changes affect almost everything. I suggest you run all tests in Sauce"
@@ -30,5 +30,3 @@ else
30
30
  puts "Error: Nothing was passed to this script"
31
31
  exit 1
32
32
  end
33
-
34
-
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Ebcommon
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-ebcommon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler