specjour 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.markdown CHANGED
@@ -1,6 +1,12 @@
1
1
  History
2
2
  =======
3
3
 
4
+ 0.5.6 / 2012-06-22
5
+ ---------------------------
6
+ * [fixed] Specjour hang when attempting to resolve a bonjour reply
7
+ * [fixed] Specjour executes loader under current $LOAD\_PATH
8
+ Specjour no longer assumes the required gems are available globally. Useful when running specjour under a vendored environment (bundle install --path=vendor).
9
+
4
10
  0.5.5 / 2012-05-31
5
11
  ---------------------------
6
12
  * [fixed] Now compatible with thor 0.15.x
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'bundler/gem_tasks'
2
+ require "bundler/setup"
2
3
 
3
4
  require 'rspec/core/rake_task'
4
5
  RSpec::Core::RakeTask.new(:spec)
@@ -1,5 +1,4 @@
1
1
  module Specjour::Cucumber
2
- ::Term::ANSIColor.coloring = true
3
2
  class DistributedFormatter < ::Cucumber::Formatter::Progress
4
3
 
5
4
  def initialize(step_mother, io, options)
@@ -102,8 +102,8 @@ module Specjour
102
102
  end
103
103
  raise Timeout::Error
104
104
  end
105
- rescue Timeout::Error
106
- replies.each {|r| resolve_reply(r)}
105
+ rescue Timeout::Error
106
+ replies.each {|r| resolve_reply(r)}
107
107
  end
108
108
 
109
109
  def local_manager_needed?
@@ -127,17 +127,20 @@ module Specjour
127
127
  end
128
128
 
129
129
  def resolve_reply(reply)
130
- DNSSD.resolve!(reply.name, reply.type, reply.domain, flags=0, reply.interface) do |resolved|
131
- Specjour.logger.debug "Bonjour discovered #{resolved.target}"
132
- if resolved.text_record && resolved.text_record['version'] == Specjour::VERSION
133
- resolved_ip = ip_from_hostname(resolved.target)
134
- uri = URI::Generic.build :scheme => reply.service_name, :host => resolved_ip, :port => resolved.port
135
- fetch_manager(uri)
136
- else
137
- puts "Found #{resolved.target} but its version doesn't match v#{Specjour::VERSION}. Skipping..."
130
+ Timeout.timeout(1) do
131
+ DNSSD.resolve!(reply.name, reply.type, reply.domain, flags=0, reply.interface) do |resolved|
132
+ Specjour.logger.debug "Bonjour discovered #{resolved.target}"
133
+ if resolved.text_record && resolved.text_record['version'] == Specjour::VERSION
134
+ resolved_ip = ip_from_hostname(resolved.target)
135
+ uri = URI::Generic.build :scheme => reply.service_name, :host => resolved_ip, :port => resolved.port
136
+ fetch_manager(uri)
137
+ else
138
+ puts "Found #{resolved.target} but its version doesn't match v#{Specjour::VERSION}. Skipping..."
139
+ end
140
+ break unless resolved.flags.more_coming?
138
141
  end
139
- break unless resolved.flags.more_coming?
140
142
  end
143
+ rescue Timeout::Error
141
144
  end
142
145
 
143
146
  def rsync_daemon
@@ -62,9 +62,9 @@ module Specjour
62
62
  exec_cmd << " --test-paths #{test_paths.join(" ")}" if test_paths.any?
63
63
  exec_cmd << " --log" if Specjour.log?
64
64
  exec_cmd << " --quiet" if quiet?
65
- load_path = $LOAD_PATH.detect {|l| l =~ %r(specjour[^/]*/lib$)}
66
- bin_path = File.expand_path(File.join(load_path, "../bin"))
67
- Kernel.exec({"RUBYLIB" => load_path}, "#{bin_path}/specjour #{exec_cmd}")
65
+ specjour_path = $LOAD_PATH.detect {|l| l =~ %r(specjour[^/]*/lib$)}
66
+ bin_path = File.expand_path(File.join(specjour_path, "../bin"))
67
+ Kernel.exec({"RUBYLIB" => $LOAD_PATH.join(":")}, "#{bin_path}/specjour #{exec_cmd}")
68
68
  end
69
69
  Process.waitall
70
70
  ensure
data/lib/specjour.rb CHANGED
@@ -29,7 +29,7 @@ module Specjour
29
29
  autoload :Cucumber, 'specjour/cucumber'
30
30
  autoload :RSpec, 'specjour/rspec'
31
31
 
32
- VERSION ||= "0.5.5"
32
+ VERSION ||= "0.5.6"
33
33
  HOOKS_PATH ||= "./.specjour/hooks.rb"
34
34
  PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-31 00:00:00.000000000 Z
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dnssd
16
- requirement: &2156301100 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - =
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156301100
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: thor
27
- requirement: &2156300360 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 0.14.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2156300360
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.14.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec
38
- requirement: &2156299500 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 2.8.0
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *2156299500
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.8.0
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rr
49
- requirement: &2156298880 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: 1.0.4
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *2156298880
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.4
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: cucumber
60
- requirement: &2156314020 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: 1.1.4
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *2156314020
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.1.4
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: yard
71
- requirement: &2156313440 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,7 +101,12 @@ dependencies:
76
101
  version: 0.7.2
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *2156313440
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.7.2
80
110
  description: ! " Specjour splits your RSpec suite across multiple machines, and
81
111
  multiple\n cores per machine, to run super-parallel-fast! Also works with Cucumber.\n"
82
112
  email: sandro.turriate@gmail.com
@@ -129,6 +159,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
159
  - - ! '>='
130
160
  - !ruby/object:Gem::Version
131
161
  version: '0'
162
+ segments:
163
+ - 0
164
+ hash: -1360517515995431807
132
165
  required_rubygems_version: !ruby/object:Gem::Requirement
133
166
  none: false
134
167
  requirements:
@@ -137,8 +170,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
170
  version: 1.3.6
138
171
  requirements: []
139
172
  rubyforge_project:
140
- rubygems_version: 1.8.17
173
+ rubygems_version: 1.8.23
141
174
  signing_key:
142
175
  specification_version: 3
143
176
  summary: Distribute your spec suite amongst your LAN via Bonjour.
144
177
  test_files: []
178
+ has_rdoc: