minitest-autotest 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/History.rdoc +7 -0
- data/Manifest.txt +1 -0
- data/README.rdoc +8 -0
- data/Rakefile +44 -0
- data/example_dot_autotest.rb +68 -0
- data/lib/autotest.rb +2 -2
- data/lib/minitest/autotest.rb +1 -1
- metadata +5 -18
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bea3dee8042dd5368d61c00f50ad626336bb2b0
|
4
|
+
data.tar.gz: 7ddc26c91e03096ab4eaf903e06a07b97c86b27b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b99ed280a30c6ca36f50dd3eaed1d786e904683ce0a0add694dc074e278f67f253120264ea96ab8b3e8973d0e3bbf3635ec89bb59ae4109181468ee89c7a118
|
7
|
+
data.tar.gz: e00155416b051b9601cd346dffd39be81f75cc441e26e1c4da3b1964df595ea3bd092776cc2539deb1823fe527673c61e8ab634b7ec96e1ec7bd8565d0cc1902
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
\[Ĥ�4��IMn�9�=�üv!I%{iFep�z� ]O�0��Թ='�S-{b���J���cї��A
|
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -78,6 +78,14 @@ Then add the following to the ".autotest" file:
|
|
78
78
|
|
79
79
|
require "autotest/spec"
|
80
80
|
|
81
|
+
If you use autotest/bundler, include minitest-autotest in your Gemfile:
|
82
|
+
|
83
|
+
gem "minitest-autotest"
|
84
|
+
|
85
|
+
Otherwise, you may get this error message when running autotest:
|
86
|
+
|
87
|
+
invalid option: --server
|
88
|
+
|
81
89
|
== REQUIREMENTS:
|
82
90
|
|
83
91
|
* minitest 5+
|
data/Rakefile
CHANGED
@@ -14,4 +14,48 @@ Hoe.spec "minitest-autotest" do
|
|
14
14
|
dependency "minitest-server", "~> 1.0"
|
15
15
|
end
|
16
16
|
|
17
|
+
desc "update example_dot_autotest.rb with all possible constants"
|
18
|
+
task :update do
|
19
|
+
system "p4 edit example_dot_autotest.rb"
|
20
|
+
File.open "example_dot_autotest.rb", "w" do |f|
|
21
|
+
f.puts "# -*- ruby -*-"
|
22
|
+
f.puts
|
23
|
+
Dir.chdir "lib" do
|
24
|
+
Dir["autotest/*.rb"].sort.each do |s|
|
25
|
+
next if s =~ /rails|discover/
|
26
|
+
f.puts "# require '#{s[0..-4]}'"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
f.puts
|
31
|
+
|
32
|
+
Dir["lib/autotest/*.rb"].sort.each do |file|
|
33
|
+
file = File.read(file)
|
34
|
+
m = file[/module.*/].split(/ /).last rescue nil
|
35
|
+
next unless m
|
36
|
+
|
37
|
+
dirty = false
|
38
|
+
|
39
|
+
file.lines.grep(/def[^(]+=/).each do |setter|
|
40
|
+
dirty = true
|
41
|
+
setter = setter.sub(/^ *def self\./, '').sub(/\s*=\s*/, ' = ')
|
42
|
+
f.puts "# #{m}.#{setter}"
|
43
|
+
end
|
44
|
+
|
45
|
+
f.puts if dirty
|
46
|
+
end
|
47
|
+
|
48
|
+
File.foreach("lib/autotest.rb") do |line|
|
49
|
+
next unless line =~ /hook (:\w+)/
|
50
|
+
name = $1
|
51
|
+
|
52
|
+
f.puts "# Autotest.add_hook #{name} do |at|"
|
53
|
+
f.puts "# ... do stuff for #{name} hook ..."
|
54
|
+
f.puts "# end"
|
55
|
+
f.puts
|
56
|
+
end
|
57
|
+
end
|
58
|
+
system "p4 diff -du example_dot_autotest.rb"
|
59
|
+
end
|
60
|
+
|
17
61
|
# vim: syntax=ruby
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
# require 'autotest/autoupdate'
|
4
|
+
# require 'autotest/bundler'
|
5
|
+
# require 'autotest/fixtures'
|
6
|
+
# require 'autotest/isolate'
|
7
|
+
# require 'autotest/migrate'
|
8
|
+
# require 'autotest/once'
|
9
|
+
# require 'autotest/preload'
|
10
|
+
# require 'autotest/rcov'
|
11
|
+
# require 'autotest/restart'
|
12
|
+
# require 'autotest/timestamp'
|
13
|
+
|
14
|
+
# Autotest::AutoUpdate.sleep_time = o
|
15
|
+
# Autotest::AutoUpdate.update_cmd = o
|
16
|
+
|
17
|
+
# Autotest::Isolate.dir = o
|
18
|
+
|
19
|
+
# Autotest::Preload.glob = o
|
20
|
+
|
21
|
+
# Autotest::RCov.command = o
|
22
|
+
# Autotest::RCov.pattern = o
|
23
|
+
# Autotest::RCov.options = o
|
24
|
+
|
25
|
+
# Autotest.add_hook :initialize do |at|
|
26
|
+
# ... do stuff for :initialize hook ...
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Autotest.add_hook :post_initialize do |at|
|
30
|
+
# ... do stuff for :post_initialize hook ...
|
31
|
+
# end
|
32
|
+
|
33
|
+
# Autotest.add_hook :all_good do |at|
|
34
|
+
# ... do stuff for :all_good hook ...
|
35
|
+
# end
|
36
|
+
|
37
|
+
# Autotest.add_hook :quit do |at|
|
38
|
+
# ... do stuff for :quit hook ...
|
39
|
+
# end
|
40
|
+
|
41
|
+
# Autotest.add_hook :run_command do |at|
|
42
|
+
# ... do stuff for :run_command hook ...
|
43
|
+
# end
|
44
|
+
|
45
|
+
# Autotest.add_hook :ran_command do |at|
|
46
|
+
# ... do stuff for :ran_command hook ...
|
47
|
+
# end
|
48
|
+
|
49
|
+
# Autotest.add_hook :interrupt do |at|
|
50
|
+
# ... do stuff for :interrupt hook ...
|
51
|
+
# end
|
52
|
+
|
53
|
+
# Autotest.add_hook :updated do |at|
|
54
|
+
# ... do stuff for :updated hook ...
|
55
|
+
# end
|
56
|
+
|
57
|
+
# Autotest.add_hook :all_good do |at|
|
58
|
+
# ... do stuff for :all_good hook ...
|
59
|
+
# end
|
60
|
+
|
61
|
+
# Autotest.add_hook :reset do |at|
|
62
|
+
# ... do stuff for :reset hook ...
|
63
|
+
# end
|
64
|
+
|
65
|
+
# Autotest.add_hook :waiting do |at|
|
66
|
+
# ... do stuff for :waiting hook ...
|
67
|
+
# end
|
68
|
+
|
data/lib/autotest.rb
CHANGED
@@ -333,7 +333,7 @@ class Autotest
|
|
333
333
|
|
334
334
|
def restart
|
335
335
|
Minitest::Server.stop
|
336
|
-
|
336
|
+
|
337
337
|
Process.kill "KILL", @child if @child
|
338
338
|
|
339
339
|
cmd = [$0, *options[:args]]
|
@@ -473,7 +473,7 @@ class Autotest
|
|
473
473
|
end
|
474
474
|
|
475
475
|
loader = "%w[#{files.join " "}].each do |f| load f; end"
|
476
|
-
re = Regexp.union(re).to_s.gsub(/-mix/, "")
|
476
|
+
re = Regexp.union(re).to_s.gsub(/-mix/, "").gsub(/'/, ".")
|
477
477
|
|
478
478
|
cmds << "#{ruby_cmd} -e '#{loader}' -- --server #{$$} -n '/#{re}/'"
|
479
479
|
end
|
data/lib/minitest/autotest.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-autotest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
|
30
30
|
NLq5jm1fq6Y9Uolu3RJbmycf
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest-server
|
@@ -45,20 +45,6 @@ dependencies:
|
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.0'
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: minitest
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.8'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.8'
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: rdoc
|
64
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,14 +65,14 @@ dependencies:
|
|
79
65
|
requirements:
|
80
66
|
- - ~>
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
68
|
+
version: '3.15'
|
83
69
|
type: :development
|
84
70
|
prerelease: false
|
85
71
|
version_requirements: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - ~>
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
75
|
+
version: '3.15'
|
90
76
|
description: |-
|
91
77
|
autotest is a continous testing facility meant to be used during
|
92
78
|
development. As soon as you save a file, autotest will run the
|
@@ -112,6 +98,7 @@ files:
|
|
112
98
|
- README.rdoc
|
113
99
|
- Rakefile
|
114
100
|
- bin/autotest
|
101
|
+
- example_dot_autotest.rb
|
115
102
|
- lib/autotest.rb
|
116
103
|
- lib/autotest/autoupdate.rb
|
117
104
|
- lib/autotest/bundler.rb
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
���lЭ?��������C�>��gpv�R��r>�U��J�h��w`5�B����aY���<&��[���o�T=�f��HA��%ħ�!�6��j�`aB�f�
|
2
|
+
'��T�)&��Z�
|
3
|
+
�;mS4'���>� !�)��5i!����k�
|