tbooster 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -2
- data/lib/tbooster.rb +4 -2
- data/tbooster.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -5,7 +5,9 @@ Runs unit tests faster by not reloading the testing environment every time you'r
|
|
5
5
|
|
6
6
|
Usage:
|
7
7
|
---------------
|
8
|
-
|
8
|
+
gem install tbooster
|
9
|
+
|
10
|
+
when running tests -> replace `ruby` with `tbooster`:
|
9
11
|
|
10
12
|
tbooster test/unit/users.rb
|
11
13
|
|
@@ -25,7 +27,7 @@ Processing commands:
|
|
25
27
|
- when a file was changed the command runner process loads that file again so that we have the testing environment up to date with the latest code changes.
|
26
28
|
- when a `run test` command was received we fork the process that holds the most recent testing environment and require the test file that needs to be runned
|
27
29
|
|
28
|
-
|
30
|
+
Issues:
|
29
31
|
-------
|
30
32
|
|
31
33
|
1. When changing branches in your repository if too many files were changes ree throws an error closing the process that holds the testing environment therefore we'll have to start it again
|
data/lib/tbooster.rb
CHANGED
@@ -85,8 +85,10 @@ class Tbooster
|
|
85
85
|
output = open(pipe, "w+")
|
86
86
|
|
87
87
|
Listen.to('./', :filter => ReloadFileCommand.watchable_file) do |modified, added, removed|
|
88
|
-
|
89
|
-
|
88
|
+
[modified || added].flatten.each do |file|
|
89
|
+
output.puts "reload_file #{file}"
|
90
|
+
output.flush
|
91
|
+
end
|
90
92
|
end
|
91
93
|
|
92
94
|
puts "closed watcher"
|
data/tbooster.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tbooster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Razvan Dimescu
|