guard-evergreen 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.rbenv-version +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +68 -0
- data/LICENSE +21 -0
- data/README.markdown +24 -0
- data/Rakefile +5 -0
- data/guard-evergreen.gemspec +24 -0
- data/lib/guard/evergreen.rb +45 -0
- data/lib/guard/evergreen/notifier.rb +13 -0
- data/lib/guard/evergreen/runner.rb +37 -0
- data/lib/guard/evergreen/templates/Guardfile +3 -0
- metadata +96 -0
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p0
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
guard-evergreen (0.0.1)
|
5
|
+
evergreen
|
6
|
+
guard
|
7
|
+
rake
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
addressable (2.2.6)
|
13
|
+
capybara (1.1.2)
|
14
|
+
mime-types (>= 1.16)
|
15
|
+
nokogiri (>= 1.3.3)
|
16
|
+
rack (>= 1.0.0)
|
17
|
+
rack-test (>= 0.5.4)
|
18
|
+
selenium-webdriver (~> 2.0)
|
19
|
+
xpath (~> 0.1.4)
|
20
|
+
childprocess (0.2.3)
|
21
|
+
ffi (~> 1.0.6)
|
22
|
+
coffee-script (2.2.0)
|
23
|
+
coffee-script-source
|
24
|
+
execjs
|
25
|
+
coffee-script-source (1.1.3)
|
26
|
+
evergreen (1.0.0)
|
27
|
+
capybara (~> 1.0)
|
28
|
+
coffee-script
|
29
|
+
json_pure
|
30
|
+
launchy
|
31
|
+
sinatra (~> 1.1)
|
32
|
+
execjs (1.2.11)
|
33
|
+
multi_json (~> 1.0)
|
34
|
+
ffi (1.0.11)
|
35
|
+
guard (0.8.8)
|
36
|
+
thor (~> 0.14.6)
|
37
|
+
json_pure (1.6.3)
|
38
|
+
launchy (2.0.5)
|
39
|
+
addressable (~> 2.2.6)
|
40
|
+
mime-types (1.17.2)
|
41
|
+
multi_json (1.0.4)
|
42
|
+
nokogiri (1.5.0)
|
43
|
+
rack (1.3.5)
|
44
|
+
rack-protection (1.1.4)
|
45
|
+
rack
|
46
|
+
rack-test (0.6.1)
|
47
|
+
rack (>= 1.0)
|
48
|
+
rake (0.9.2.2)
|
49
|
+
rubyzip (0.9.5)
|
50
|
+
selenium-webdriver (2.14.0)
|
51
|
+
childprocess (>= 0.2.1)
|
52
|
+
ffi (~> 1.0.9)
|
53
|
+
multi_json (~> 1.0.4)
|
54
|
+
rubyzip
|
55
|
+
sinatra (1.3.1)
|
56
|
+
rack (~> 1.3, >= 1.3.4)
|
57
|
+
rack-protection (~> 1.1, >= 1.1.2)
|
58
|
+
tilt (~> 1.3, >= 1.3.3)
|
59
|
+
thor (0.14.6)
|
60
|
+
tilt (1.3.3)
|
61
|
+
xpath (0.1.4)
|
62
|
+
nokogiri (~> 1.3)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
guard-evergreen!
|
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-Evergreen
|
2
|
+
===============
|
3
|
+
|
4
|
+
Continuous testing for evergreen using guard.
|
5
|
+
|
6
|
+
Usage
|
7
|
+
=====
|
8
|
+
|
9
|
+
Install:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem guard-evergreen
|
13
|
+
```
|
14
|
+
|
15
|
+
Setup:
|
16
|
+
|
17
|
+
```bash
|
18
|
+
guard init evergreen
|
19
|
+
```
|
20
|
+
|
21
|
+
License
|
22
|
+
=======
|
23
|
+
|
24
|
+
Guard-Evergreen is Copyright © 2011 Critical Pair. Guard-Evergreen is free software, and may be redistributed under the terms specified in the LICENSE file.
|
data/Rakefile
ADDED
@@ -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-evergreen"
|
7
|
+
s.version = "0.0.1"
|
8
|
+
s.authors = ["Christopher Meiklejohn"]
|
9
|
+
s.email = ["christopher.meiklejohn@gmail.com"]
|
10
|
+
s.homepage = "https://github.com/criticalpair/guard-evergreen"
|
11
|
+
s.summary = %q{Continuous testing for evergreen.}
|
12
|
+
s.description = %q{Guard watches files. Evergreen runs tests.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "guard-evergreen"
|
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 "evergreen"
|
24
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
require 'guard'
|
4
|
+
require 'guard/guard'
|
5
|
+
|
6
|
+
module Guard
|
7
|
+
class Evergreen < Guard
|
8
|
+
|
9
|
+
autoload :Runner, 'guard/evergreen/runner'
|
10
|
+
autoload :Notifier, 'guard/evergreen/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 Evergreen
|
7
|
+
class Notifier
|
8
|
+
def self.notify(result, message)
|
9
|
+
::Guard::Notifier.notify(message, :title => 'Evergreen 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 Evergreen
|
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: evergreen run"
|
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
|
+
"evergreen run"
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-evergreen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Christopher Meiklejohn
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: guard
|
16
|
+
requirement: &18696340 !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: *18696340
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &18694180 !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: *18694180
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: evergreen
|
38
|
+
requirement: &18692840 !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: *18692840
|
47
|
+
description: Guard watches files. Evergreen runs tests.
|
48
|
+
email:
|
49
|
+
- christopher.meiklejohn@gmail.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-evergreen.gemspec
|
62
|
+
- lib/guard/evergreen.rb
|
63
|
+
- lib/guard/evergreen/notifier.rb
|
64
|
+
- lib/guard/evergreen/runner.rb
|
65
|
+
- lib/guard/evergreen/templates/Guardfile
|
66
|
+
homepage: https://github.com/criticalpair/guard-evergreen
|
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: -340581797198526553
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
hash: -340581797198526553
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project: guard-evergreen
|
92
|
+
rubygems_version: 1.8.11
|
93
|
+
signing_key:
|
94
|
+
specification_version: 3
|
95
|
+
summary: Continuous testing for evergreen.
|
96
|
+
test_files: []
|