tvd-tvdinner 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.8
@@ -0,0 +1,5 @@
1
+ all: ready
2
+
3
+ ready:
4
+ @git submodule update --init --recursive
5
+ @bundle check 2>&1 >/dev/null || { bundle --local --path vendor/bundle > /dev/null || bundle check; }
@@ -7,7 +7,7 @@ fi
7
7
  __meat__='y'
8
8
 
9
9
  if [[ -z "${shome:-}" ]]; then
10
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
10
+ shome="$(unset CDPATH; cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
11
11
  fi
12
12
 
13
13
  function get_started {
@@ -60,23 +60,15 @@ function display_synopsis {
60
60
 
61
61
  function which_library {
62
62
  local library="$1"; shift
63
- if [[ -r "$shome/bin/_$library" ]]; then
64
- echo "$shome/bin/_$library"
65
- elif [[ -r "$shome/libexec/_$library" ]]; then
63
+ if [[ -r "$shome/libexec/_$library" ]]; then
66
64
  echo "$shome/libexec/_$library"
67
- elif [[ -r "$shome/.$library/bin/_profile" ]]; then
68
- echo "$shome/.$library/bin/_profile"
69
- elif [[ -r "$shome/.$library/libexec/_profile" ]]; then
70
- echo "$shome/.$library/libexec/_profile"
71
- elif [[ -r "$shome/.$library/.profile" ]]; then
72
- echo "$shome/.$library/.profile"
65
+ elif [[ -r "$shome/.$library/libexec/_$library" ]]; then
66
+ echo "$shome/.$library/libexec/_$library"
73
67
  else
74
68
  local nm_library="${library%%/*}"
75
69
  if [[ "$nm_library" != "$library" ]]; then
76
70
  local nm_right="${library##*/}"
77
- if [[ -r "$shome/.$nm_library/bin/_$nm_right" ]]; then
78
- echo "$shome/.$nm_library/bin/_$nm_right"
79
- elif [[ -r "$shome/.$nm_library/libexec/_$nm_right" ]]; then
71
+ if [[ -r "$shome/.$nm_library/libexec/_$nm_right" ]]; then
80
72
  echo "$shome/.$nm_library/libexec/_$nm_right"
81
73
  fi
82
74
  fi
@@ -151,7 +143,7 @@ function runmany {
151
143
 
152
144
  function _main {
153
145
  if [[ -z "$shome" ]]; then
154
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
146
+ shome="$(unset CDPATH; cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
155
147
  fi
156
148
 
157
149
  require 'shflags'
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  if [[ "${BASH_SOURCE##*/}" != "_sub" ]]; then
4
- shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
4
+ shome="$(unset CDPATH; cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
5
5
  source "$shome/libexec/_jason"
6
6
  set -- "$BASH_SOURCE" "$@"
7
7
  fi
@@ -102,3 +102,9 @@ remote_directory "#{node[:release_dir]}/libexec" do
102
102
  source "jasonx"
103
103
  files_mode 00755
104
104
  end
105
+
106
+ cookbook_file "#{node[:release_dir]}/Makefile" do
107
+ mode 00644
108
+ source "Makefile"
109
+ end
110
+
@@ -3,3 +3,6 @@ source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  gem "tvd-tvdinner" unless File.exists?(File.expand_path("../tvd-tvdinner.gemspec", __FILE__))
6
+ gem "chefspec"
7
+ gem "minitest-chef-handler"
8
+ gem "foodcritic", :platforms => :ruby_19
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-tvdinner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Bombadil
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-25 00:00:00 -08:00
18
+ date: 2013-03-01 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -43,6 +43,7 @@ extra_rdoc_files: []
43
43
  files:
44
44
  - cookbooks/tvdinner/attributes/default.rb
45
45
  - cookbooks/tvdinner/files/default/LICENSE
46
+ - cookbooks/tvdinner/files/default/Makefile
46
47
  - cookbooks/tvdinner/files/default/jason/_bump
47
48
  - cookbooks/tvdinner/files/default/jason/_jason
48
49
  - cookbooks/tvdinner/files/default/jason/_log4sh