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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11fb83f5969f6b70685f5e6f6b248fa7edb122d0
4
- data.tar.gz: 5f5759f1200cfe9c35a5edd1cd5fcf5e5129ec14
3
+ metadata.gz: 0bea3dee8042dd5368d61c00f50ad626336bb2b0
4
+ data.tar.gz: 7ddc26c91e03096ab4eaf903e06a07b97c86b27b
5
5
  SHA512:
6
- metadata.gz: e1fce532ea3b53d6eb93ee3f4465df75103defcab9cc877afca03923418d94ff93d8c818e156869dd0d23201a3a57160a69e48bcf8fcd4d24700bfe8b03d9ec5
7
- data.tar.gz: b4a7ffa0a6d3d9121d50c44143ec2417cdd257bc3860e44b98bedf83362ad641da66010bd45aeb9ab5a16c15462b28a882f029ce4bf5ee2a8624f05b4dfa04c1
6
+ metadata.gz: 0b99ed280a30c6ca36f50dd3eaed1d786e904683ce0a0add694dc074e278f67f253120264ea96ab8b3e8973d0e3bbf3635ec89bb59ae4109181468ee89c7a118
7
+ data.tar.gz: e00155416b051b9601cd346dffd39be81f75cc441e26e1c4da3b1964df595ea3bd092776cc2539deb1823fe527673c61e8ab634b7ec96e1ec7bd8565d0cc1902
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- eV�Xh,��͘\G��Jd5ɒ �5xz��Aq,��tJ*�/�*P�q7$?ҁVy�e�{s7ۊgpVY Vp�ê?�!j���S�k�mPy*�-��`��OMk *�E�C%���PX�:�3��o�y��/�~����e������e�f������6�J�s\�L�/e�i�m����d( �'6�������.M y?��/ڻt�B8����Ȯ�&�܆W}Ζ�.S��~?�Ov���}f�͕Q�w045`瀳
1
+ \[Ĥ�4��IMn9�=�üv!I%{iFepz ]O�0��Թ='�S-{ b���J���cї��A
@@ -1,3 +1,10 @@
1
+ === 1.0.3 / 2016-05-02
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Added example_dot_autotest.rb and rake rule to regenerate it.
6
+ * Fix single quotes in test names for regexp used on cmdline.
7
+
1
8
  === 1.0.2 / 2015-12-15
2
9
 
3
10
  * 1 bug fix:
@@ -4,6 +4,7 @@ Manifest.txt
4
4
  README.rdoc
5
5
  Rakefile
6
6
  bin/autotest
7
+ example_dot_autotest.rb
7
8
  lib/autotest.rb
8
9
  lib/autotest/autoupdate.rb
9
10
  lib/autotest/bundler.rb
@@ -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
+
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Minitest; end
2
2
 
3
3
  class Minitest::Autotest
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
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.2
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: 2015-12-15 00:00:00.000000000 Z
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.14'
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.14'
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
- \7��v��X�=���LuV��y
2
- +
3
- �J�|x3 5�pRz�hW{
1
+ ���lЭ?��������C�>��gpv�R��r>�U��Jh��w`5B����aY���<&��[���o�T=�f��HA��%ħ�!�6��j�`aB�f�
2
+ '��T�)&��Z�
3
+ �;mS4'���>� !�)��5i!����k