busser 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 56c3602ee860ebf5588118323c225a1422f39266
4
+ data.tar.gz: 231ce785a23762ebb5df63fd166ac141f8ad4bdf
5
+ SHA512:
6
+ metadata.gz: ecdaa8ecd9ee5da43847c1854bbd89daf83c7827c59868c789516981b673dde52aa348eaf7d91eee4bb4ef56b06b5133d40df83a227bc1de00fe8516df3e183e
7
+ data.tar.gz: d38795cb52d203f591cbec7e5d9b1805e05eb804871bde50e5829dba84df7913116c716b90efa5eb16dcda686886109a4ad44266ebac35e9407c62f5720f99dc
data/.travis.yml CHANGED
@@ -7,19 +7,22 @@ rvm:
7
7
  - ruby-head
8
8
 
9
9
  env:
10
- - RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=11.4.0
11
- - RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=10.24.0
12
- - RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=11.4.0
13
- - RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=10.24.0
10
+ - RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=11.8.0
11
+ - RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=10.28.2
12
+ - RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=11.8.0
13
+ - RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=10.28.2
14
14
 
15
15
  before_install:
16
16
  - gem update --system $RUBYGEMS_VERSION
17
17
  - gem --version
18
18
 
19
+ bundler_args: --without guard
20
+
19
21
  matrix:
20
- allow_failures:
21
- - rvm: ruby-head
22
+ exclude:
22
23
  - rvm: 2.0.0
23
- env: RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=11.4.0
24
+ env: RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=10.28.2
24
25
  - rvm: 2.0.0
25
- env: RUBYGEMS_VERSION=2.0.3 CHEF_VERSION=10.24.0
26
+ env: RUBYGEMS_VERSION=1.8.25 CHEF_VERSION=11.8.0
27
+ allow_failures:
28
+ - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.0 / 2013-11-20
2
+
3
+ ### Improvements
4
+
5
+ * Allow `busser setup` binstub script to honor gem sandboxing and a relocatable BUSSER\_ROOT. ([@fnichol][])
6
+ * TravisCI matrix build updates. ([@fnichol][])
7
+
8
+
1
9
  ## 0.4.1 / 2013-04-23
2
10
 
3
11
  ### Improvements
@@ -65,4 +73,4 @@
65
73
  * Initial release
66
74
 
67
75
  <!--- The following link definition list is generated by PimpMyChangelog --->
68
- [@fnichol]: https://github.com/fnichol
76
+ [@fnichol]: https://github.com/fnichol
data/Gemfile CHANGED
@@ -2,10 +2,13 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- group :development do
5
+ group :guard do
6
6
  gem 'rb-inotify', :require => false
7
7
  gem 'rb-fsevent', :require => false
8
8
  gem 'rb-fchange', :require => false
9
+ gem 'guard-minitest'
10
+ gem 'guard-cucumber'
11
+ gem 'guard-cane'
9
12
  end
10
13
 
11
14
  group :test do
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Busser
2
2
 
3
- [![Build Status](https://travis-ci.org/fnichol/busser.png?branch=master)](https://travis-ci.org/fnichol/busser)
4
- [![Code Climate](https://codeclimate.com/github/fnichol/busser.png)](https://codeclimate.com/github/fnichol/busser)
3
+ [![Build Status](https://travis-ci.org/test-kitchen/busser.png?branch=master)](https://travis-ci.org/test-kitchen/busser)
4
+ [![Code Climate](https://codeclimate.com/github/test-kitchen/busser.png)](https://codeclimate.com/github/test-kitchen/busser)
5
5
 
6
6
  Busser is a test setup and execution framework designed to
7
7
  work on remote nodes whose system dependencies cannot be relied upon, except
data/busser.gemspec CHANGED
@@ -27,14 +27,11 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "bundler", "~> 1.3"
28
28
  spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency 'minitest'
30
- spec.add_development_dependency 'guard-minitest'
31
30
  spec.add_development_dependency 'mocha'
32
31
  spec.add_development_dependency 'fakefs'
33
32
  spec.add_development_dependency 'aruba'
34
- spec.add_development_dependency 'guard-cucumber'
35
33
 
36
34
  spec.add_development_dependency 'cane'
37
- spec.add_development_dependency 'guard-cane'
38
35
  spec.add_development_dependency 'tailor'
39
36
  spec.add_development_dependency 'simplecov'
40
37
  spec.add_development_dependency 'countloc'
data/lib/busser.rb CHANGED
@@ -20,6 +20,10 @@ require 'pathname'
20
20
 
21
21
  require 'busser/version'
22
22
 
23
+ # Busser - Runs tests for projects in Test Kitchen.
24
+ #
25
+ # @author Fletcher Nichol <fnichol@nichol.ca>
26
+ #
23
27
  module Busser
24
28
 
25
29
  # Returns the root path of the Busser gem source code.
@@ -55,6 +55,7 @@ module Busser
55
55
  # The application 'busser' is installed as part of a gem, and
56
56
  # this file is here to facilitate running it.
57
57
  #
58
+ [ -n "$DEBUG" ] && set -x
58
59
 
59
60
  # Get the directory where this ruby is. This will also resolve
60
61
  # any symlinks in the directory/script, so it will be the fully
@@ -63,15 +64,23 @@ module Busser
63
64
  while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
64
65
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
65
66
 
67
+ # Set Busser Root path
68
+ BUSSER_ROOT="#{root_path}"
69
+
70
+ export BUSSER_ROOT
71
+
66
72
  # Export gem paths so that we use the isolated gems.
67
- export GEM_HOME="#{gem_home}"
68
- export GEM_PATH="${GEM_HOME}"
73
+ GEM_HOME="#{gem_home}"
74
+ GEM_PATH="#{gem_path}"
75
+ GEM_CACHE="#{gem_home}/cache"
76
+
77
+ export GEM_HOME GEM_PATH GEM_CACHE
69
78
 
70
79
  # Unset RUBYOPT, we don't want this bleeding into our runtime.
71
80
  unset RUBYOPT GEMRC
72
81
 
73
82
  # Call the actual Busser bin with our arguments
74
- exec "${DIR}/ruby" "${DIR}/busser" "$@"
83
+ exec "${DIR}/ruby" "#{gem_bindir}/busser" "$@"
75
84
  BUSSER_BINSTUB
76
85
  end
77
86
  chmod(binstub, 0755, :verbose => false)
@@ -88,6 +97,14 @@ module Busser
88
97
  def gem_home
89
98
  Gem.paths.home
90
99
  end
100
+
101
+ def gem_path
102
+ Gem.paths.path.join(":")
103
+ end
104
+
105
+ def gem_bindir
106
+ Gem.bindir
107
+ end
91
108
  end
92
109
  end
93
110
  end
@@ -22,6 +22,10 @@ require 'busser/rubygems'
22
22
 
23
23
  module Busser
24
24
 
25
+ # Common methods used by subcommands.
26
+ #
27
+ # @author Fletcher Nichol <fnichol@nichol.ca>
28
+ #
25
29
  module Helpers
26
30
 
27
31
  module_function
data/lib/busser/plugin.rb CHANGED
@@ -21,6 +21,10 @@ module Busser
21
21
  module RunnerPlugin
22
22
  end
23
23
 
24
+ # Plugin loading logic.
25
+ #
26
+ # @author Fletcher Nichol <fnichol@nichol.ca>
27
+ #
24
28
  module Plugin
25
29
 
26
30
  module_function
@@ -20,6 +20,10 @@ require 'rubygems/dependency_installer'
20
20
 
21
21
  module Busser
22
22
 
23
+ # RubyGems API abstraction logic, used to install and verify plugins.
24
+ #
25
+ # @author Fletcher Nichol <fnichol@nichol.ca>
26
+ #
23
27
  module RubyGems
24
28
 
25
29
  module_function
data/lib/busser/ui.rb CHANGED
@@ -20,6 +20,10 @@ require 'thor/shell'
20
20
 
21
21
  module Busser
22
22
 
23
+ # User interface methods.
24
+ #
25
+ # @author Fletcher Nichol <fnichol@nichol.ca>
26
+ #
23
27
  module UI
24
28
 
25
29
  module_function
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Busser
20
- VERSION = "0.4.1"
20
+ VERSION = "0.5.0"
21
21
  end
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Fletcher Nichol
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: chef
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,193 +55,127 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: minitest
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: guard-minitest
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
80
+ - - '>='
108
81
  - !ruby/object:Gem::Version
109
82
  version: '0'
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: mocha
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ! '>='
87
+ - - '>='
116
88
  - !ruby/object:Gem::Version
117
89
  version: '0'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
- - - ! '>='
94
+ - - '>='
124
95
  - !ruby/object:Gem::Version
125
96
  version: '0'
126
97
  - !ruby/object:Gem::Dependency
127
98
  name: fakefs
128
99
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
100
  requirements:
131
- - - ! '>='
101
+ - - '>='
132
102
  - !ruby/object:Gem::Version
133
103
  version: '0'
134
104
  type: :development
135
105
  prerelease: false
136
106
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
107
  requirements:
139
- - - ! '>='
108
+ - - '>='
140
109
  - !ruby/object:Gem::Version
141
110
  version: '0'
142
111
  - !ruby/object:Gem::Dependency
143
112
  name: aruba
144
113
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
114
  requirements:
147
- - - ! '>='
115
+ - - '>='
148
116
  - !ruby/object:Gem::Version
149
117
  version: '0'
150
118
  type: :development
151
119
  prerelease: false
152
120
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
121
  requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: guard-cucumber
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
122
+ - - '>='
172
123
  - !ruby/object:Gem::Version
173
124
  version: '0'
174
125
  - !ruby/object:Gem::Dependency
175
126
  name: cane
176
127
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- - !ruby/object:Gem::Dependency
191
- name: guard-cane
192
- requirement: !ruby/object:Gem::Requirement
193
- none: false
194
128
  requirements:
195
- - - ! '>='
129
+ - - '>='
196
130
  - !ruby/object:Gem::Version
197
131
  version: '0'
198
132
  type: :development
199
133
  prerelease: false
200
134
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
135
  requirements:
203
- - - ! '>='
136
+ - - '>='
204
137
  - !ruby/object:Gem::Version
205
138
  version: '0'
206
139
  - !ruby/object:Gem::Dependency
207
140
  name: tailor
208
141
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
142
  requirements:
211
- - - ! '>='
143
+ - - '>='
212
144
  - !ruby/object:Gem::Version
213
145
  version: '0'
214
146
  type: :development
215
147
  prerelease: false
216
148
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
149
  requirements:
219
- - - ! '>='
150
+ - - '>='
220
151
  - !ruby/object:Gem::Version
221
152
  version: '0'
222
153
  - !ruby/object:Gem::Dependency
223
154
  name: simplecov
224
155
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
156
  requirements:
227
- - - ! '>='
157
+ - - '>='
228
158
  - !ruby/object:Gem::Version
229
159
  version: '0'
230
160
  type: :development
231
161
  prerelease: false
232
162
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
163
  requirements:
235
- - - ! '>='
164
+ - - '>='
236
165
  - !ruby/object:Gem::Version
237
166
  version: '0'
238
167
  - !ruby/object:Gem::Dependency
239
168
  name: countloc
240
169
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
170
  requirements:
243
- - - ! '>='
171
+ - - '>='
244
172
  - !ruby/object:Gem::Version
245
173
  version: '0'
246
174
  type: :development
247
175
  prerelease: false
248
176
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
177
  requirements:
251
- - - ! '>='
178
+ - - '>='
252
179
  - !ruby/object:Gem::Version
253
180
  version: '0'
254
181
  description: Kitchen Busser - Runs tests for projects in test-kitchen
@@ -327,27 +254,26 @@ files:
327
254
  homepage: https://github.com/fnichol/busser
328
255
  licenses:
329
256
  - Apache 2.0
257
+ metadata: {}
330
258
  post_install_message:
331
259
  rdoc_options: []
332
260
  require_paths:
333
261
  - lib
334
262
  required_ruby_version: !ruby/object:Gem::Requirement
335
- none: false
336
263
  requirements:
337
- - - ! '>='
264
+ - - '>='
338
265
  - !ruby/object:Gem::Version
339
266
  version: 1.9.1
340
267
  required_rubygems_version: !ruby/object:Gem::Requirement
341
- none: false
342
268
  requirements:
343
- - - ! '>='
269
+ - - '>='
344
270
  - !ruby/object:Gem::Version
345
271
  version: '0'
346
272
  requirements: []
347
273
  rubyforge_project:
348
- rubygems_version: 1.8.24
274
+ rubygems_version: 2.0.3
349
275
  signing_key:
350
- specification_version: 3
276
+ specification_version: 4
351
277
  summary: Kitchen Busser - Runs tests for projects in test-kitchen
352
278
  test_files:
353
279
  - features/deserialize_command.feature