tvd-tvdinner 0.0.26 → 0.0.27

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.26
1
+ 0.0.27
@@ -1,12 +1,5 @@
1
1
  #!/bin/bash
2
2
 
3
- : ${__meat__:=x}
4
- if [[ "$__meat__" != 'x' ]]; then
5
- return 0
6
- fi
7
-
8
- __meat__='y'
9
-
10
3
  if [[ -z "${shome:-}" ]]; then
11
4
  shome="$(unset CDPATH; cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
12
5
  fi
@@ -52,7 +45,9 @@ function display_synopsis {
52
45
 
53
46
  function which_library {
54
47
  local library="$1"; shift
55
- if [[ -r "$shome/libexec/_$library" ]]; then
48
+ if [[ -r "$shome/vendor/projects/$library/libexec/_$library" ]]; then
49
+ echo "$shome/vendor/projects/$library/libexec/_$library"
50
+ elif [[ -r "$shome/libexec/_$library" ]]; then
56
51
  echo "$shome/libexec/_$library"
57
52
  elif [[ -r "$shome/.$library/libexec/_$library" ]]; then
58
53
  echo "$shome/.$library/libexec/_$library"
@@ -60,7 +55,9 @@ function which_library {
60
55
  local nm_library="${library%%/*}"
61
56
  if [[ "$nm_library" != "$library" ]]; then
62
57
  local nm_right="${library##*/}"
63
- if [[ -r "$shome/.$nm_library/libexec/_$nm_right" ]]; then
58
+ if [[ -r "$shome/vendor/projects/$nm_library/libexec/_$nm_right" ]]; then
59
+ echo "$shome/vendor/projects/$nm_library/libexec/_$nm_right"
60
+ elif [[ -r "$shome/.$nm_library/libexec/_$nm_right" ]]; then
64
61
  echo "$shome/.$nm_library/libexec/_$nm_right"
65
62
  fi
66
63
  fi
@@ -75,6 +72,8 @@ function require {
75
72
  set --
76
73
  fi
77
74
  source "$pth_lib" "$@"
75
+ else
76
+ logger_warn "library $nm_library not found"
78
77
  fi
79
78
  }
80
79
 
@@ -126,11 +125,12 @@ function random_str {
126
125
  function runmany {
127
126
  local cpu="$1"; shift
128
127
  local args="$1"; shift
128
+ local cmd="$1"; shift
129
129
  if [[ "$#" = 0 ]]; then
130
130
  cat
131
131
  else
132
132
  echo "$@"
133
- fi | xargs -P $cpu -n $args -- bash -c "$*" ""
133
+ fi | xargs -P $cpu -n $args -- bash -c "$cmd" ""
134
134
  }
135
135
 
136
136
  function mark_log {
@@ -184,6 +184,13 @@ function _main {
184
184
  shome="$(unset CDPATH; cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
185
185
  fi
186
186
 
187
+ : ${__meat__:=x}
188
+ if [[ "$__meat__" != 'x' ]]; then
189
+ return 0
190
+ fi
191
+
192
+ __meat__='y'
193
+
187
194
  require 'shflags'
188
195
 
189
196
  configure_logging
@@ -7,7 +7,11 @@ Gem::Specification.new do |s|
7
7
  s.name = "tvd-<%= node[:tvd][:name] %>"
8
8
  s.version = ENV['EDIT_<%= node[:tvd][:name].gsub(/[-]/,"_") %>'] ? "#{TVDinner::<%= node[:tvd][:class] %>::VERSION}.rc#{%x(git log --max-count=1 --pretty=format:%ct)}" : TVDinner::<%= node[:tvd][:class] %>::VERSION
9
9
  s.homepage = "<%= node[:tvd][:homepage] %>"
10
- s.license = "Apache 2.0"
10
+ s.license = "<%= node[:tvd][:license] %>"
11
+ s.author = "<%= node[:tvd][:author] %>"
12
+ s.email = "<%= node[:tvd][:email] %>"
13
+ s.summary = "<%= node[:tvd][:summary] %>"
14
+ s.description = "<%= node[:tvd][:description] %>"
11
15
 
12
16
  s.executables = []
13
17
  s.test_files = `git ls-files -- {spec,tasks}/*`.split("\n")
@@ -20,9 +24,4 @@ Gem::Specification.new do |s|
20
24
  s.require_path = "lib"
21
25
 
22
26
  s.add_dependency "tvd-tvdinner"
23
-
24
- s.author = "<%= node[:tvd][:author] %>"
25
- s.email = "<%= node[:tvd][:email] %>"
26
- s.summary = "<%= node[:tvd][:summary] %>"
27
- s.description = "<%= node[:tvd][:description] %>"
28
27
  end
metadata CHANGED
@@ -1,46 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tvd-tvdinner
3
- version: !ruby/object:Gem::Version
4
- hash: 43
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 26
10
- version: 0.0.26
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.27
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Tom Bombadil
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-03-29 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: chef
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- description: Generrates a tvdinner project
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: Generates a tvdinner project
36
31
  email: amanibhavam@destructuring.org
37
32
  executables: []
38
-
39
33
  extensions: []
40
-
41
34
  extra_rdoc_files: []
42
-
43
- files:
35
+ files:
44
36
  - cookbooks/tvdinner/attributes/default.rb
45
37
  - cookbooks/tvdinner/files/default/LICENSE
46
38
  - cookbooks/tvdinner/files/default/Makefile
@@ -78,40 +70,31 @@ files:
78
70
  - NOTICE
79
71
  - VERSION
80
72
  - README.md
81
- has_rdoc: true
82
73
  homepage: http://destructuring.org/tvd-tvdinner
83
- licenses:
74
+ licenses:
84
75
  - Apache 2.0
85
76
  post_install_message:
86
77
  rdoc_options: []
87
-
88
- require_paths:
78
+ require_paths:
89
79
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
80
+ required_ruby_version: !ruby/object:Gem::Requirement
91
81
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
87
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
108
92
  requirements: []
109
-
110
93
  rubyforge_project:
111
- rubygems_version: 1.3.7
94
+ rubygems_version: 1.8.25
112
95
  signing_key:
113
96
  specification_version: 3
114
97
  summary: Generates a tvdinner project
115
- test_files:
98
+ test_files:
116
99
  - spec/.gitignore
117
100
  - tasks/.gitignore