tbooster 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +4 -2
  2. data/lib/tbooster.rb +4 -2
  3. data/tbooster.gemspec +1 -1
  4. 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
- replace `ruby` with `tbooster` when running tests:
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
- Isses:
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
@@ -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
- output.puts "reload_file #{modified || added}"
89
- output.flush
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"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "tbooster"
3
- s.version = "0.2.2"
3
+ s.version = "0.2.3"
4
4
  s.date = "2012-12-07"
5
5
  s.summary = "Test booster"
6
6
  s.description = "Runs unit tests faster by not reloading the testing environment every time"
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Razvan Dimescu