busser-bash 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml CHANGED
@@ -6,6 +6,14 @@ rvm:
6
6
  - 1.9.2
7
7
  - ruby-head
8
8
 
9
+ env:
10
+ - RUBYGEMS_VERSION=2.0.3
11
+ - RUBYGEMS_VERSION=1.8.25
12
+
13
+ before_install:
14
+ - gem update --system $RUBYGEMS_VERSION
15
+ - gem --version
16
+
9
17
  matrix:
10
18
  allow_failures:
11
19
  - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.1.2 / 2013-04-10
2
+
3
+ ### Improvements
4
+
5
+ * Project skeleton updates. ([@fnichol][])
6
+
7
+
1
8
  ## 0.1.1 / 2013-03-30
2
9
 
3
10
  * A no-op release to help with Busser gem testing of plugin installs. ([@fnichol][])
@@ -6,6 +13,5 @@
6
13
 
7
14
  * Initial release
8
15
 
9
- [@fnichol]: https://github.com/fnichol
10
16
  <!--- The following link definition list is generated by PimpMyChangelog --->
11
17
  [@fnichol]: https://github.com/fnichol
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :development do
6
+ gem 'rb-inotify', :require => false
7
+ gem 'rb-fsevent', :require => false
8
+ gem 'rb-fchange', :require => false
9
+ end
data/Guardfile ADDED
@@ -0,0 +1,12 @@
1
+ guard 'cucumber' do
2
+ watch(%r{^features/.+\.feature$})
3
+ watch(%r{^features/support/.+$}) { 'features' }
4
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
5
+ Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
6
+ end
7
+ end
8
+
9
+ guard 'cane' do
10
+ watch(%r|.*\.rb|)
11
+ watch('.cane')
12
+ end
data/README.md CHANGED
@@ -1,24 +1,44 @@
1
- # busser-bash
1
+ # <a name="title"></a> Busser::RunnerPlugin::Bash
2
2
 
3
3
  [![Build Status](https://travis-ci.org/fnichol/busser-bash.png?branch=master)](https://travis-ci.org/fnichol/busser-bash)
4
4
  [![Code Climate](https://codeclimate.com/github/fnichol/busser-bash.png)](https://codeclimate.com/github/fnichol/busser-bash)
5
5
 
6
- Bash runner plugin for Busser
6
+ A Busser runner plugin for Bash
7
7
 
8
- ## Installation
8
+ ## <a name="installation"></a> Installation and Setup
9
9
 
10
- When using Busser directly:
10
+ Please read the Busser [plugin usage][plugin_usage] page for more details.
11
11
 
12
- busser plugin install busser-bash
12
+ ## <a name="usage"></a> Usage
13
13
 
14
- ## Usage
14
+ **TODO:** Write documentation explaining the structure/format of testing files.
15
15
 
16
- TODO: Write usage instructions here
16
+ ## <a name="development"></a> Development
17
17
 
18
- ## Contributing
18
+ * Source hosted at [GitHub][repo]
19
+ * Report issues/questions/feature requests on [GitHub Issues][issues]
19
20
 
20
- 1. Fork it
21
+ Pull requests are very welcome! Make sure your patches are well tested.
22
+ Ideally create a topic branch for every separate change you make. For
23
+ example:
24
+
25
+ 1. Fork the repo
21
26
  2. Create your feature branch (`git checkout -b my-new-feature`)
22
- 3. Commit your changes (`git commit -am 'Add some feature'`)
27
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
23
28
  4. Push to the branch (`git push origin my-new-feature`)
24
29
  5. Create new Pull Request
30
+
31
+ ## <a name="authors"></a> Authors
32
+
33
+ Created and maintained by [Fletcher Nichol][author] (<fnichol@nichol.ca>)
34
+
35
+ ## <a name="license"></a> License
36
+
37
+ Apache 2.0 (see [LICENSE][license])
38
+
39
+
40
+ [author]: https://github.com/fnichol
41
+ [issues]: https://github.com/fnichol/busser-bash/issues
42
+ [license]: https://github.com/fnichol/busser-bash/blob/master/LICENSE
43
+ [repo]: https://github.com/fnichol/busser-bash
44
+ [plugin_usage]: http://docs.kitchen-ci.org/busser/plugin-usage
data/busser-bash.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Busser::Bash::VERSION
9
9
  spec.authors = ["Fletcher Nichol"]
10
10
  spec.email = ["fnichol@nichol.ca"]
11
- spec.description = %q{Bash runner plugin for Busser}
11
+ spec.description = %q{A Busser runner plugin for Bats}
12
12
  spec.summary = spec.description
13
13
  spec.homepage = "https://github.com/fnichol/busser-bash"
14
14
  spec.license = 'Apache 2.0'
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'busser', '~> 0.1.1'
21
+ spec.add_dependency 'busser', '~> 0.2.0'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.3'
24
24
  spec.add_development_dependency 'rake'
@@ -0,0 +1,11 @@
1
+ Feature: Plugin install command
2
+ In order to use this plugin
3
+ As a user of Busser
4
+ I want to run the postinstall for this plugin
5
+
6
+ Background:
7
+ Given a test BUSSER_ROOT directory named "busser-bash-install"
8
+
9
+ Scenario: Running the postinstall generator
10
+ When I run `busser plugin install busser-bash --force-postinstall`
11
+ Then the exit status should be 0
@@ -0,0 +1,8 @@
1
+ Feature: Plugin list command
2
+ In order to use this plugin
3
+ As a user of Busser
4
+ I want to see this plugin in the 'busser plugin list' command
5
+
6
+ Scenario: Plugin appears in plugin list command
7
+ When I successfully run `busser plugin list`
8
+ Then the output should match /^bash\b/
@@ -0,0 +1,13 @@
1
+ require 'aruba/cucumber'
2
+ require 'busser/cucumber'
3
+
4
+ Before do
5
+ @aruba_timeout_seconds = 10
6
+ end
7
+
8
+ After do |s|
9
+ # Tell Cucumber to quit after this scenario is done - if it failed.
10
+ # This is useful to inspect the 'tmp/aruba' directory before any other
11
+ # steps are executed and clear it out.
12
+ Cucumber.wants_to_quit = true if s.failed?
13
+ end
@@ -0,0 +1,35 @@
1
+ Feature: Test command
2
+ In order to run tests written in good old shell/bash
3
+ As a user of Busser
4
+ I want my tests to run when the bash runner plugin is installed
5
+
6
+ Background:
7
+ Given a test BUSSER_ROOT directory named "busser-bash-test"
8
+ When I successfully run `busser plugin install busser-bash --force-postinstall`
9
+ Given a suite directory named "bash"
10
+
11
+ Scenario: A passing test suite
12
+ Given a file in suite "bash" named "foo_spec.bash" with:
13
+ """
14
+ #!/usr/bin/env bash
15
+ set -e
16
+
17
+ echo "A bash test"
18
+ exit 0
19
+ """
20
+ When I run `busser test bash`
21
+ Then the output should contain "[bash] foo_spec.bash"
22
+ And the output should match /^A bash test$/
23
+ And the exit status should be 0
24
+
25
+ Scenario: A failing test suite
26
+ Given a file in suite "bash" named "foo_spec.bash" with:
27
+ """
28
+ #!/usr/bin/env bash
29
+ set -e
30
+
31
+ echo "A failing bash test"
32
+ exit 99
33
+ """
34
+ When I run `busser test bash`
35
+ And the exit status should not be 0
@@ -20,6 +20,7 @@ module Busser
20
20
 
21
21
  module Bash
22
22
 
23
- VERSION = "0.1.1"
23
+ # Version string for the Bash Busser runner plugin
24
+ VERSION = "0.1.2"
24
25
  end
25
26
  end
@@ -18,7 +18,7 @@
18
18
 
19
19
  require 'busser/runner_plugin'
20
20
 
21
- # Bash runner plugin for Busser.
21
+ # A Busser runner plugin for Bash.
22
22
  #
23
23
  # @author Fletcher Nichol <fnichol@nichol.ca>
24
24
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser-bash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-31 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: busser
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.1
21
+ version: 0.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.1
29
+ version: 0.2.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +171,7 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
- description: Bash runner plugin for Busser
174
+ description: A Busser runner plugin for Bats
175
175
  email:
176
176
  - fnichol@nichol.ca
177
177
  executables: []
@@ -185,11 +185,15 @@ files:
185
185
  - .travis.yml
186
186
  - CHANGELOG.md
187
187
  - Gemfile
188
+ - Guardfile
188
189
  - LICENSE
189
190
  - README.md
190
191
  - Rakefile
191
192
  - busser-bash.gemspec
193
+ - features/plugin_install_command.feature
194
+ - features/plugin_list_command.feature
192
195
  - features/support/env.rb
196
+ - features/test_command.feature
193
197
  - lib/busser/bash/version.rb
194
198
  - lib/busser/runner_plugin/bash.rb
195
199
  homepage: https://github.com/fnichol/busser-bash
@@ -207,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
211
  version: '0'
208
212
  segments:
209
213
  - 0
210
- hash: -4504930010135038575
214
+ hash: 430229957590227575
211
215
  required_rubygems_version: !ruby/object:Gem::Requirement
212
216
  none: false
213
217
  requirements:
@@ -216,12 +220,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
220
  version: '0'
217
221
  segments:
218
222
  - 0
219
- hash: -4504930010135038575
223
+ hash: 430229957590227575
220
224
  requirements: []
221
225
  rubyforge_project:
222
226
  rubygems_version: 1.8.24
223
227
  signing_key:
224
228
  specification_version: 3
225
- summary: Bash runner plugin for Busser
229
+ summary: A Busser runner plugin for Bats
226
230
  test_files:
231
+ - features/plugin_install_command.feature
232
+ - features/plugin_list_command.feature
227
233
  - features/support/env.rb
234
+ - features/test_command.feature