busser-shindo 0.1.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: ed8ee07c573dee840f59dc4dd319fcf289159c60
4
+ data.tar.gz: 30fe058fe8e49b3b0605be0af02319806e6f4fcc
5
+ SHA512:
6
+ metadata.gz: 2477c3f33150f9f1e1b0e1b7661b82ae9b88958172032aae944dbc949d2751f6ad69e5cd9fa072cf2638ce3ec0f22f00eea698910767f12bd980b0b49163232f
7
+ data.tar.gz: 8fc9cb0ba08b2fdab583d7d076758767db1a8fe5eeac503cf22200f8300ec584665d557c6182610d8e0e33edc06f248f3c225459c769eb77d21ebb3418fc5e8c
data/.cane ADDED
File without changes
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.swp
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ .rvmrc
data/.tailor ADDED
@@ -0,0 +1,4 @@
1
+ Tailor.config do |config|
2
+ config.formatters "text"
3
+ config.file_set 'lib/**/*.rb'
4
+ end
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - 1.9.2
7
+ - ruby-head
8
+
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: ruby-head
data/CHANGELOG.md ADDED
@@ -0,0 +1,33 @@
1
+ ## 0.2.5 / 2013-11-14
2
+
3
+ * issue #5: Added --color and --format documentation rspec options
4
+ merge pull-req by Kannan Manickam <kannan@rightscale.com>. thanks.
5
+
6
+ ## 0.2.4 / 2013-11-01
7
+
8
+ * issue #4: Search all GEM_PATH values for `rspec` bin.
9
+ merge pull-req by Seth Chisamore <schisamo@opscode.com>. thanks.
10
+
11
+ ## 0.2.3 / 2013-07-10
12
+
13
+ * issue #2: remove tight dependency of serverspec. thanks to rteabeault.
14
+
15
+ ## 0.2.2 / 2013-07-09
16
+
17
+ * issue #2: remove dependency rspec.
18
+
19
+ ## 0.2.1 / 2013-06-18
20
+
21
+ * fix silly exit value.
22
+
23
+ ## 0.2.0 / 2013-06-18
24
+
25
+ * issue #1: do not print full backtrace if serverspec test failure.
26
+
27
+ ## 0.1.1 / 2013-06-06
28
+
29
+ * add cucumber test and fix related things
30
+
31
+ ## 0.1.0 / 2013-05-22
32
+
33
+ * Initial release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com)
2
+
3
+ Copyright (C) 2014, Yukihiko Sawanobori
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # <a name="title"></a> Busser::RunnerPlugin::Shindo
2
+
3
+ A Busser runner plugin for Shindo
4
+
5
+ ## <a name="installation"></a> Installation and Setup
6
+
7
+ TODO: Write this.
8
+
9
+ ## <a name="usage"></a> Usage
10
+
11
+ TODO: Write this.
12
+
13
+ ## <a name="development"></a> Development
14
+
15
+ * Source hosted at [GitHub][repo]
16
+ * Report issues/questions/feature requests on [GitHub Issues][issues]
17
+
18
+ Pull requests are very welcome! Make sure your patches are well tested.
19
+ Ideally create a topic branch for every separate change you make. For
20
+ example:
21
+
22
+ 1. Fork the repo
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create new Pull Request
27
+
28
+ ## <a name="authors"></a> Authors
29
+
30
+
31
+ Created and maintained by [Yukihiko Sawanobori][author] (<sawanoboriyu@higanworks.com>)
32
+ (Original busser-serverspec) Created and maintained by [HIGUCHI Daisuke][author] (<d-higuchi@creationline.com>)
33
+
34
+ ## <a name="license"></a> License
35
+
36
+ Apache 2.0 (see [LICENSE][license])
37
+
38
+
39
+ [author]: https://github.com/sawanoboly
40
+ [issues]: https://github.com/sawanoboly/busser-shindo/issues
41
+ [license]: https://github.com/sawanoboly/busser-shindo/blob/master/LICENSE
42
+ [repo]: https://github.com/sawanoboly/busser-shindo
43
+ [plugin_usage]: http://docs.kitchen-ci.org/busser/plugin-usage
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ require 'coveralls/rake/task'
2
+ require "bundler/gem_tasks"
3
+ require 'cucumber/rake/task'
4
+ require 'cane/rake_task'
5
+ require 'tailor/rake_task'
6
+
7
+ Coveralls::RakeTask.new
8
+
9
+ Cucumber::Rake::Task.new(:features) do |t|
10
+ t.cucumber_opts = ['features', '-x', '--format progress']
11
+ end
12
+
13
+ desc "Run all test suites"
14
+ task :test => [:features]
15
+
16
+ desc "Run cane to check quality metrics"
17
+ Cane::RakeTask.new do |cane|
18
+ cane.canefile = './.cane'
19
+ end
20
+
21
+ Tailor::RakeTask.new
22
+
23
+ desc "Display LOC stats"
24
+ task :stats do
25
+ puts "\n## Production Code Stats"
26
+ sh "countloc -r lib"
27
+ puts "\n## Test Code Stats"
28
+ sh "countloc -r features"
29
+ end
30
+
31
+ desc "Run all quality tasks"
32
+ task :quality => [:cane, :tailor, :stats]
33
+
34
+ task :default => [:test, :quality, 'coveralls:push']
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'busser/shindo/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'busser-shindo'
8
+ spec.version = Busser::Shindo::VERSION
9
+ spec.authors = ['Yukihiko Sawanobori']
10
+ spec.email = ['sawanoboriyu@higanworks.com']
11
+ spec.description = %q{A Busser runner plugin for Shindo}
12
+ spec.summary = spec.description
13
+ spec.homepage = 'https://github.com/sawanoboly/busser-shindo'
14
+ spec.license = 'Apache 2.0'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = []
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_dependency 'busser'
22
+
23
+ spec.add_development_dependency 'shindo'
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.3'
26
+ spec.add_development_dependency 'rake'
27
+ spec.add_development_dependency 'aruba'
28
+
29
+ spec.add_development_dependency 'cane'
30
+ spec.add_development_dependency 'tailor'
31
+ spec.add_development_dependency 'countloc'
32
+
33
+ spec.add_development_dependency 'coveralls'
34
+ end
@@ -0,0 +1,13 @@
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-shindo-install"
8
+ And a sandboxed GEM_HOME directory named "busser-shindo-gem-home"
9
+
10
+ Scenario: Running the postinstall generator
11
+ When I run `busser plugin install busser-shindo --force-postinstall`
12
+ Then a gem named "shindo" is installed
13
+ And 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 /^shindo\b/
@@ -0,0 +1,16 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require 'aruba/cucumber'
5
+ require 'busser/cucumber'
6
+
7
+ Before do
8
+ @aruba_timeout_seconds = 60
9
+ end
10
+
11
+ After do |s|
12
+ # Tell Cucumber to quit after this scenario is done - if it failed.
13
+ # This is useful to inspect the 'tmp/aruba' directory before any other
14
+ # steps are executed and clear it out.
15
+ Cucumber.wants_to_quit = true if s.failed?
16
+ end
@@ -0,0 +1,40 @@
1
+ Feature: Test command
2
+ In order to run tests written with shindo
3
+ As a user of Busser
4
+ I want my tests to run when the shindo runner plugin is installed
5
+
6
+ Background:
7
+ Given a test BUSSER_ROOT directory named "busser-shindo-test"
8
+ And a sandboxed GEM_HOME directory named "busser-shindo-gem-home"
9
+ When I successfully run `busser plugin install busser-shindo --force-postinstall`
10
+ Given a suite directory named "shindo"
11
+
12
+ Scenario: A passing test suite
13
+ Given a file in suite "shindo" named "shindo_tests.rb" with:
14
+ """
15
+ Shindo.tests do
16
+ returns(true) { true }
17
+ returns(false) { false }
18
+ end
19
+ """
20
+ When I run `busser test shindo`
21
+ Then the output should contain:
22
+ """
23
+ 2 succeeded in
24
+ """
25
+ And the exit status should be 0
26
+
27
+ Scenario: A failing test suite
28
+ Given a file in suite "shindo" named "shindo_tests.rb" with:
29
+ """
30
+ Shindo.tests do
31
+ returns(true) { true }
32
+ returns(false) { true }
33
+ end
34
+ """
35
+ When I run `busser test shindo`
36
+ Then the output should contain:
37
+ """
38
+ 1 failed, 1 succeeded
39
+ """
40
+ And the exit status should not be 0
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ # Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
4
+ # Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
5
+ #
6
+ # Copyright (C) 2014, Yukihiko Sawanobori
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+
20
+ require 'busser/runner_plugin'
21
+
22
+ # A Busser runner plugin for Shindo.
23
+ #
24
+ # @author Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
25
+ #
26
+ class Busser::RunnerPlugin::Shindo < Busser::RunnerPlugin::Base
27
+ postinstall do
28
+ install_gem("shindo")
29
+ end
30
+
31
+ def test
32
+ # runner = File.join(File.dirname(__FILE__), %w{.. serverspec runner.rb})
33
+
34
+ # run_ruby_script!("#{runner} #{suite_path('serverspec').to_s}")
35
+ run!("shindont #{suite_path('shindo')}")
36
+ end
37
+ end
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ # Author:: Yukihiko Sawanobori (<sawanoboriyu@higanworks.com>)
4
+ # Author:: HIGUCHI Daisuke (<d-higuchi@creationline.com>)
5
+ #
6
+ # Copyright (C) 2014, Yukihiko Sawanobori
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+
20
+ module Busser
21
+
22
+ module Shindo
23
+
24
+ # Version string for the Shindo Busser runner plugin
25
+ VERSION = "0.1.0"
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: busser-shindo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Yukihiko Sawanobori
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: busser
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: shindo
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aruba
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: cane
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: tailor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: countloc
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: coveralls
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: A Busser runner plugin for Shindo
140
+ email:
141
+ - sawanoboriyu@higanworks.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - .cane
147
+ - .gitignore
148
+ - .tailor
149
+ - .travis.yml
150
+ - CHANGELOG.md
151
+ - Gemfile
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - busser-shindo.gemspec
156
+ - features/plugin_install_command.feature
157
+ - features/plugin_list_command.feature
158
+ - features/support/env.rb
159
+ - features/test_command.feature
160
+ - lib/busser/runner_plugin/shindo.rb
161
+ - lib/busser/shindo/version.rb
162
+ homepage: https://github.com/sawanoboly/busser-shindo
163
+ licenses:
164
+ - Apache 2.0
165
+ metadata: {}
166
+ post_install_message:
167
+ rdoc_options: []
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubyforge_project:
182
+ rubygems_version: 2.1.11
183
+ signing_key:
184
+ specification_version: 4
185
+ summary: A Busser runner plugin for Shindo
186
+ test_files:
187
+ - features/plugin_install_command.feature
188
+ - features/plugin_list_command.feature
189
+ - features/support/env.rb
190
+ - features/test_command.feature