guard-tddium 0.0.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ *.gem
2
+ .tddium*
3
+ .tddium
data/.rbenv-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p0
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ guard-tddium (0.0.1.beta1)
5
+ guard
6
+ rake
7
+ tddium
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ guard (0.8.8)
13
+ thor (~> 0.14.6)
14
+ highline (1.6.8)
15
+ httparty (0.8.1)
16
+ multi_json
17
+ multi_xml
18
+ json (1.6.3)
19
+ multi_json (1.0.4)
20
+ multi_xml (0.4.1)
21
+ rake (0.9.2.2)
22
+ tddium (1.0.1)
23
+ bundler
24
+ highline
25
+ json
26
+ tddium_client (~> 0.1.1)
27
+ thor
28
+ tddium_client (0.1.2)
29
+ httparty
30
+ json
31
+ thor (0.14.6)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ guard-tddium!
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2011 Critical Pair.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,24 @@
1
+ Guard-TDDium
2
+ ===============
3
+
4
+ Run your specs with tddium through guard.
5
+
6
+ Usage
7
+ =====
8
+
9
+ Install:
10
+
11
+ ```ruby
12
+ gem guard-tddium
13
+ ```
14
+
15
+ Setup:
16
+
17
+ ```bash
18
+ guard init tddium
19
+ ```
20
+
21
+ License
22
+ =======
23
+
24
+ Guard-TDDium is Copyright © 2011 Critical Pair. Guard-TDDium is free software, and may be redistributed under the terms specified in the LICENSE file.
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'bundler/gem_tasks'
@@ -0,0 +1,24 @@
1
+ # encoding: UTF-8
2
+ #
3
+ $:.push File.expand_path("../lib", __FILE__)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "guard-tddium"
7
+ s.version = "0.0.1.beta1"
8
+ s.authors = ["Christopher Meiklejohn"]
9
+ s.email = ["cmeiklejohn@criticalpair.com"]
10
+ s.homepage = "https://github.com/criticalpair/guard-tddium"
11
+ s.summary = %q{Run your specs with tddium through guard.}
12
+ s.description = %q{Run your specs with tddium through guard.}
13
+
14
+ s.rubyforge_project = "guard-tddium"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_dependency "guard"
22
+ s.add_dependency "rake"
23
+ s.add_dependency "tddium"
24
+ end
@@ -0,0 +1,45 @@
1
+ # encoding: utf-8
2
+ #
3
+ require 'guard'
4
+ require 'guard/guard'
5
+
6
+ module Guard
7
+ class Tddium < Guard
8
+
9
+ autoload :Runner, 'guard/tddium/runner'
10
+ autoload :Notifier, 'guard/tddium/notifier'
11
+
12
+ def initialize(watchers = [], options = {})
13
+ super
14
+
15
+ @runner ||= Runner.new(options)
16
+ end
17
+
18
+ def start
19
+ true
20
+ end
21
+
22
+ def stop
23
+ true
24
+ end
25
+
26
+ def reload
27
+ true
28
+ end
29
+
30
+ def paths
31
+ []
32
+ end
33
+
34
+ def run_all
35
+ return @runner.run(paths) unless paths.empty?
36
+ true
37
+ end
38
+
39
+ def run_on_change(paths = [])
40
+ return @runner.run(paths) unless paths.empty?
41
+ true
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+ #
3
+ require 'guard/notifier'
4
+
5
+ module Guard
6
+ class Tddium
7
+ class Notifier
8
+ def self.notify(result, message)
9
+ ::Guard::Notifier.notify(message, :title => 'Tddium test results', :image => (result ? :success : :failed))
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,37 @@
1
+ # encoding: utf-8
2
+ #
3
+ module Guard
4
+ class Tddium
5
+ class Runner
6
+
7
+ class << self
8
+ def run(paths = [], options = {})
9
+ Runner.new(options).run(paths, options)
10
+ end
11
+ end
12
+
13
+ def initialize(options = {})
14
+ @options = {
15
+ :verbose => true
16
+ }.merge(options)
17
+ end
18
+
19
+ def run(paths, options = {})
20
+ message = options[:message] || "Running: tddium spec"
21
+ UI.info message, :reset => true
22
+ system(command(paths))
23
+ end
24
+
25
+ def verbose?
26
+ @options[:verbose]
27
+ end
28
+
29
+ private
30
+
31
+ def command(paths = [])
32
+ "tddium spec"
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,3 @@
1
+ guard 'tddium' do
2
+ watch(%r{^.git$})
3
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-tddium
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.beta1
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Christopher Meiklejohn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: guard
16
+ requirement: &17139480 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *17139480
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &17135000 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *17135000
36
+ - !ruby/object:Gem::Dependency
37
+ name: tddium
38
+ requirement: &17145340 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *17145340
47
+ description: Run your specs with tddium through guard.
48
+ email:
49
+ - cmeiklejohn@criticalpair.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - .gitignore
55
+ - .rbenv-version
56
+ - Gemfile
57
+ - Gemfile.lock
58
+ - LICENSE
59
+ - README.markdown
60
+ - Rakefile
61
+ - guard-tddium.gemspec
62
+ - lib/guard/tddium.rb
63
+ - lib/guard/tddium/notifier.rb
64
+ - lib/guard/tddium/runner.rb
65
+ - lib/guard/tddium/templates/Guardfile
66
+ homepage: https://github.com/criticalpair/guard-tddium
67
+ licenses: []
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ segments:
79
+ - 0
80
+ hash: 2808975307333161498
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>'
85
+ - !ruby/object:Gem::Version
86
+ version: 1.3.1
87
+ requirements: []
88
+ rubyforge_project: guard-tddium
89
+ rubygems_version: 1.8.11
90
+ signing_key:
91
+ specification_version: 3
92
+ summary: Run your specs with tddium through guard.
93
+ test_files: []