tconsole 1.1.0pre6 → 1.1.0pre7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module TConsole
2
- VERSION = "1.1.0pre6"
2
+ VERSION = "1.1.0pre7"
3
3
  end
data/lib/tconsole.rb CHANGED
@@ -49,7 +49,7 @@ module TConsole
49
49
  config = Config.configure
50
50
  config.trace_execution = true if argv.include?("--trace")
51
51
 
52
- socket_path = "/tmp/tconsole.#{Process.pid}"
52
+ port = "1233"
53
53
 
54
54
  # Start the server
55
55
  while running
@@ -60,24 +60,19 @@ module TConsole
60
60
  begin
61
61
  server = Server.new(config)
62
62
 
63
- drb_server = DRb.start_service("drbunix:#{socket_path}", server)
63
+ drb_server = DRb.start_service("druby://localhost:#{port}", server)
64
64
  DRb.thread.join
65
65
  rescue Interrupt
66
66
  # do nothing here since the outer process will shut things down for us
67
67
  end
68
68
  end
69
69
 
70
- # Wait for the server to be fully started
71
70
  wait_until = Time.now + 10
72
- until(File.exist?(socket_path) || Time.now > wait_until)
73
- config.trace("Waiting on DRb socket to become available.")
74
- sleep(1)
75
- end
76
71
 
77
72
  # Set up our client connection to the server
78
73
  config.trace("Connecting to testing server.")
79
74
  DRb.start_service
80
- server = DRbObject.new_with_uri("drbunix:#{socket_path}")
75
+ server = DRbObject.new_with_uri("druby://localhost:#{port}")
81
76
 
82
77
  loaded = false
83
78
  until loaded || Time.now > wait_until
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tconsole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0pre6
4
+ version: 1.1.0pre7
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &70270052774740 !ruby/object:Gem::Requirement
16
+ requirement: &70302516335360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.0.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70270052774740
24
+ version_requirements: *70302516335360
25
25
  description: ! " tconsole allows Rails developers to easily and quickly run their
26
26
  tests as a whole or in subsets. It forks the testing processes from\n a preloaded
27
27
  test environment to ensure that developers don't have to reload their entire Rails