watchr 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +8 -4
- data/Rakefile +0 -60
- data/lib/watchr/version.rb +1 -1
- data/watchr.gemspec +59 -88
- metadata +83 -26
data/README.rdoc
CHANGED
@@ -68,8 +68,11 @@ Signal#trap calls, etc. Updates to script files are picked up on the fly (no
|
|
68
68
|
need to restart watchr) so experimenting is painless.
|
69
69
|
|
70
70
|
The wiki[http://wiki.github.com/mynyml/watchr] has more details and examples.
|
71
|
-
You
|
72
|
-
|
71
|
+
You might also want to take a look at watchr's own scripts,
|
72
|
+
specs.watchr[http://github.com/mynyml/watchr/blob/master/specs.watchr],
|
73
|
+
docs.watchr[http://github.com/mynyml/watchr/blob/master/docs.watchr] and
|
74
|
+
gem.watchr[http://github.com/mynyml/watchr/blob/master/gem.watchr], to get you
|
75
|
+
started.
|
73
76
|
|
74
77
|
|
75
78
|
=== Install
|
@@ -85,9 +88,10 @@ phocus[http://github.com/mynyml/phocus]:: Run focused tests when running the
|
|
85
88
|
|
86
89
|
=== Links
|
87
90
|
|
88
|
-
source::
|
89
|
-
|
91
|
+
source:: http://github.com/mynyml/watchr
|
92
|
+
docs:: http://docs.github.com/mynyml/watchr
|
90
93
|
wiki:: http://wiki.github.com/mynyml/watchr
|
94
|
+
bugs:: http://github.com/mynyml/watchr/issues
|
91
95
|
|
92
96
|
=== Acknowledgement
|
93
97
|
|
data/Rakefile
CHANGED
@@ -1,47 +1,9 @@
|
|
1
|
-
# --------------------------------------------------
|
2
|
-
# based on thin's Rakefile (http://github.com/macournoyer/thin)
|
3
|
-
# --------------------------------------------------
|
4
|
-
require 'rake/gempackagetask'
|
5
1
|
require 'rake/rdoctask'
|
6
|
-
require 'pathname'
|
7
|
-
require 'yaml'
|
8
|
-
require 'lib/watchr/version'
|
9
2
|
begin
|
10
3
|
require 'yard'
|
11
4
|
rescue LoadError, RuntimeError
|
12
5
|
end
|
13
6
|
|
14
|
-
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
|
15
|
-
WIN = (RUBY_PLATFORM =~ /mswin|cygwin/)
|
16
|
-
SUDO = (WIN ? "" : "sudo")
|
17
|
-
|
18
|
-
def gem
|
19
|
-
RUBY_1_9 ? 'gem19' : 'gem'
|
20
|
-
end
|
21
|
-
|
22
|
-
def all_except(res)
|
23
|
-
Dir['**/*'].reject do |path|
|
24
|
-
Array(res).any? {|re| path.match(re) }
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
spec = Gem::Specification.new do |s|
|
29
|
-
s.name = 'watchr'
|
30
|
-
s.version = Watchr.version
|
31
|
-
s.summary = "Modern continious testing (flexible alternative to autotest)"
|
32
|
-
s.description = "Modern continious testing (flexible alternative to autotest)"
|
33
|
-
s.author = "Martin Aumont"
|
34
|
-
s.email = 'mynyml@gmail.com'
|
35
|
-
s.homepage = 'http://github.com/mynyml/watchr'
|
36
|
-
s.has_rdoc = true
|
37
|
-
s.require_path = "lib"
|
38
|
-
s.bindir = "bin"
|
39
|
-
s.executables = "watchr"
|
40
|
-
s.files = all_except %w( ^doc/ ^doc$ ^pkg ^bk ^\.wiki ^\.yardoc )
|
41
|
-
#s.add_dependency 'every', '>= 1.0'
|
42
|
-
s.add_dependency 'rev', '>= 0.3.0'
|
43
|
-
end
|
44
|
-
|
45
7
|
desc "Generate rdoc documentation."
|
46
8
|
Rake::RDocTask.new(:rdoc => 'rdoc', :clobber_rdoc => 'rdoc:clean', :rerdoc => 'rdoc:force') { |rdoc|
|
47
9
|
rdoc.rdoc_dir = 'doc/rdoc'
|
@@ -61,25 +23,3 @@ if defined? YARD
|
|
61
23
|
t.options = %w( -o doc/yard --readme README.rdoc --files LICENSE,TODO.txt )
|
62
24
|
end
|
63
25
|
end
|
64
|
-
|
65
|
-
Rake::GemPackageTask.new(spec) do |p|
|
66
|
-
p.gem_spec = spec
|
67
|
-
end
|
68
|
-
|
69
|
-
desc "Remove package products"
|
70
|
-
task :clean => :clobber_package
|
71
|
-
|
72
|
-
desc "Update the gemspec for GitHub's gem server"
|
73
|
-
task :gemspec do
|
74
|
-
Pathname("#{spec.name}.gemspec").open('w') {|f| f << YAML.dump(spec) }
|
75
|
-
end
|
76
|
-
|
77
|
-
desc "Install gem"
|
78
|
-
task :install => [:clobber, :package] do
|
79
|
-
sh "#{SUDO} #{gem} install pkg/#{spec.full_name}.gem"
|
80
|
-
end
|
81
|
-
|
82
|
-
desc "Uninstall gem"
|
83
|
-
task :uninstall => :clean do
|
84
|
-
sh "#{SUDO} #{gem} uninstall -v #{spec.version} -x #{spec.name}"
|
85
|
-
end
|
data/lib/watchr/version.rb
CHANGED
data/watchr.gemspec
CHANGED
@@ -1,91 +1,62 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
name: watchr
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.2
|
5
|
-
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Martin Aumont
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
1
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.name = 'watchr'
|
4
|
+
s.version = '0.5.3'
|
5
|
+
s.date = '2009-09-17'
|
6
|
+
s.summary = "Modern continious testing (flexible alternative to autotest)"
|
7
|
+
s.description = "Modern continious testing (flexible alternative to autotest)."
|
8
|
+
s.author = "mynyml"
|
9
|
+
s.email = 'mynyml@gmail.com'
|
10
|
+
s.homepage = 'http://mynyml.com/ruby/flexible-continuous-testing'
|
11
|
+
s.has_rdoc = true
|
12
|
+
s.rdoc_options = %w( --main README.rdoc )
|
13
|
+
s.extra_rdoc_files = %w( README.rdoc )
|
14
|
+
s.require_path = "lib"
|
15
|
+
s.bindir = "bin"
|
16
|
+
s.executables = "watchr"
|
17
|
+
s.files = %w[
|
18
|
+
README.rdoc
|
19
|
+
LICENSE
|
20
|
+
TODO.txt
|
21
|
+
Rakefile
|
22
|
+
bin/watchr
|
23
|
+
lib/watchr.rb
|
24
|
+
lib/watchr/version.rb
|
25
|
+
lib/watchr/script.rb
|
26
|
+
lib/watchr/controller.rb
|
27
|
+
lib/watchr/event_handlers/base.rb
|
28
|
+
lib/watchr/event_handlers/unix.rb
|
29
|
+
lib/watchr/event_handlers/portable.rb
|
30
|
+
test/test_helper.rb
|
31
|
+
test/test_watchr.rb
|
32
|
+
test/test_script.rb
|
33
|
+
test/test_controller.rb
|
34
|
+
test/event_handlers/test_base.rb
|
35
|
+
test/event_handlers/test_unix.rb
|
36
|
+
test/event_handlers/test_portable.rb
|
37
|
+
specs.watchr
|
38
|
+
docs.watchr
|
39
|
+
watchr.gemspec
|
40
|
+
]
|
41
|
+
s.test_files = %w[
|
42
|
+
test/test_helper.rb
|
43
|
+
test/test_watchr.rb
|
44
|
+
test/test_script.rb
|
45
|
+
test/test_controller.rb
|
46
|
+
test/event_handlers/test_base.rb
|
47
|
+
test/event_handlers/test_unix.rb
|
48
|
+
test/event_handlers/test_portable.rb
|
49
|
+
]
|
30
50
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
- test/event_handlers
|
37
|
-
- test/event_handlers/test_portable.rb
|
38
|
-
- test/event_handlers/test_base.rb
|
39
|
-
- test/event_handlers/test_unix.rb
|
40
|
-
- test/test_controller.rb
|
41
|
-
- test/test_watchr.rb
|
42
|
-
- test/test_helper.rb
|
43
|
-
- test/test_script.rb
|
44
|
-
- TODO.txt
|
45
|
-
- bin
|
46
|
-
- bin/watchr
|
47
|
-
- lib
|
48
|
-
- lib/watchr
|
49
|
-
- lib/watchr/version.rb
|
50
|
-
- lib/watchr/event_handlers
|
51
|
-
- lib/watchr/event_handlers/portable.rb
|
52
|
-
- lib/watchr/event_handlers/base.rb
|
53
|
-
- lib/watchr/event_handlers/unix.rb
|
54
|
-
- lib/watchr/script.rb
|
55
|
-
- lib/watchr/controller.rb
|
56
|
-
- lib/watchr.rb
|
57
|
-
- README.rdoc
|
58
|
-
- LICENSE
|
59
|
-
- docs.watchr
|
60
|
-
- specs.watchr
|
61
|
-
- watchr.gemspec
|
62
|
-
has_rdoc: true
|
63
|
-
homepage: github.com/mynyml/watchr
|
64
|
-
licenses: []
|
65
|
-
|
66
|
-
post_install_message:
|
67
|
-
rdoc_options: []
|
68
|
-
|
69
|
-
require_paths:
|
70
|
-
- lib
|
71
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: "0"
|
76
|
-
version:
|
77
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: "0"
|
82
|
-
version:
|
83
|
-
requirements: []
|
84
|
-
|
85
|
-
rubyforge_project:
|
86
|
-
rubygems_version: 1.3.5
|
87
|
-
signing_key:
|
88
|
-
specification_version: 3
|
89
|
-
summary: Modern continious testing (flexible alternative to autotest)
|
90
|
-
test_files: []
|
51
|
+
#require 'rbconfig'
|
52
|
+
#unless Config::CONFIG['host_os'] =~ /mswin|windows|cygwin/i
|
53
|
+
unless RUBY_PLATFORM =~ /mswin|windows|cygwin/i
|
54
|
+
s.add_dependency 'rev', '>= 0.3.0'
|
55
|
+
end
|
91
56
|
|
57
|
+
s.add_development_dependency 'mocha'
|
58
|
+
s.add_development_dependency 'jeremymcanally-matchy'
|
59
|
+
s.add_development_dependency 'jeremymcanally-pending'
|
60
|
+
s.add_development_dependency 'mynyml-every'
|
61
|
+
s.add_development_dependency 'mynyml-redgreen'
|
62
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watchr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- mynyml
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-17 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,44 +22,95 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.3.0
|
24
24
|
version:
|
25
|
-
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mocha
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: jeremymcanally-matchy
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: jeremymcanally-pending
|
47
|
+
type: :development
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mynyml-every
|
57
|
+
type: :development
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
64
|
+
version:
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: mynyml-redgreen
|
67
|
+
type: :development
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: "0"
|
74
|
+
version:
|
75
|
+
description: Modern continious testing (flexible alternative to autotest).
|
26
76
|
email: mynyml@gmail.com
|
27
77
|
executables:
|
28
78
|
- watchr
|
29
79
|
extensions: []
|
30
80
|
|
31
|
-
extra_rdoc_files:
|
32
|
-
|
81
|
+
extra_rdoc_files:
|
82
|
+
- README.rdoc
|
33
83
|
files:
|
34
|
-
-
|
35
|
-
-
|
36
|
-
- test/event_handlers/test_base.rb
|
37
|
-
- test/event_handlers/test_unix.rb
|
38
|
-
- test/test_controller.rb
|
39
|
-
- test/test_watchr.rb
|
40
|
-
- test/test_helper.rb
|
41
|
-
- test/test_script.rb
|
84
|
+
- README.rdoc
|
85
|
+
- LICENSE
|
42
86
|
- TODO.txt
|
87
|
+
- Rakefile
|
43
88
|
- bin/watchr
|
89
|
+
- lib/watchr.rb
|
44
90
|
- lib/watchr/version.rb
|
45
|
-
- lib/watchr/event_handlers/portable.rb
|
46
|
-
- lib/watchr/event_handlers/base.rb
|
47
|
-
- lib/watchr/event_handlers/unix.rb
|
48
91
|
- lib/watchr/script.rb
|
49
92
|
- lib/watchr/controller.rb
|
50
|
-
- lib/watchr.rb
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
93
|
+
- lib/watchr/event_handlers/base.rb
|
94
|
+
- lib/watchr/event_handlers/unix.rb
|
95
|
+
- lib/watchr/event_handlers/portable.rb
|
96
|
+
- test/test_helper.rb
|
97
|
+
- test/test_watchr.rb
|
98
|
+
- test/test_script.rb
|
99
|
+
- test/test_controller.rb
|
100
|
+
- test/event_handlers/test_base.rb
|
101
|
+
- test/event_handlers/test_unix.rb
|
102
|
+
- test/event_handlers/test_portable.rb
|
54
103
|
- specs.watchr
|
104
|
+
- docs.watchr
|
55
105
|
- watchr.gemspec
|
56
106
|
has_rdoc: true
|
57
|
-
homepage: http://
|
107
|
+
homepage: http://mynyml.com/ruby/flexible-continuous-testing
|
58
108
|
licenses: []
|
59
109
|
|
60
110
|
post_install_message:
|
61
|
-
rdoc_options:
|
62
|
-
|
111
|
+
rdoc_options:
|
112
|
+
- --main
|
113
|
+
- README.rdoc
|
63
114
|
require_paths:
|
64
115
|
- lib
|
65
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -81,5 +132,11 @@ rubygems_version: 1.3.5
|
|
81
132
|
signing_key:
|
82
133
|
specification_version: 3
|
83
134
|
summary: Modern continious testing (flexible alternative to autotest)
|
84
|
-
test_files:
|
85
|
-
|
135
|
+
test_files:
|
136
|
+
- test/test_helper.rb
|
137
|
+
- test/test_watchr.rb
|
138
|
+
- test/test_script.rb
|
139
|
+
- test/test_controller.rb
|
140
|
+
- test/event_handlers/test_base.rb
|
141
|
+
- test/event_handlers/test_unix.rb
|
142
|
+
- test/event_handlers/test_portable.rb
|