specjour 0.5.4 → 0.5.5

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.5 / 2012-05-31
5
+ ---------------------------
6
+ * [fixed] Now compatible with thor 0.15.x
7
+
8
+ [Full Changelog](https://github.com/sandro/specjour/compare/v0.5.4...v0.5.5)
9
+
4
10
  0.5.4 / 2012-05-29
5
11
  ---------------------------
6
12
  * [fixed] Not running specs without 'spec/' argument
data/lib/specjour/cli.rb CHANGED
@@ -38,9 +38,9 @@ module Specjour
38
38
  def listen
39
39
  handle_logging
40
40
  handle_workers
41
- args[:registered_projects] = args.delete(:projects) || [File.basename(Dir.pwd)]
41
+ params[:registered_projects] = params.delete(:projects) || [File.basename(Dir.pwd)]
42
42
  append_to_program_name "listen"
43
- Specjour::Manager.new(args).start
43
+ Specjour::Manager.new(params).start
44
44
  end
45
45
 
46
46
  desc "load", "load the app, then fork workers", :hide => true
@@ -54,7 +54,7 @@ module Specjour
54
54
  handle_logging
55
55
  handle_workers
56
56
  append_to_program_name "load"
57
- Specjour::Loader.new(args).start
57
+ Specjour::Loader.new(params).start
58
58
  end
59
59
 
60
60
  desc "dispatch [test_paths]", "Send tests to a listener"
@@ -75,7 +75,7 @@ module Specjour
75
75
  handle_workers
76
76
  handle_dispatcher(paths)
77
77
  append_to_program_name "dispatch"
78
- Specjour::Dispatcher.new(args).start
78
+ Specjour::Dispatcher.new(params).start
79
79
  end
80
80
 
81
81
  desc "prepare [PROJECT_PATH]", "Run the prepare task on all listening workers"
@@ -89,12 +89,12 @@ module Specjour
89
89
  def prepare(path = Dir.pwd)
90
90
  handle_logging
91
91
  handle_workers
92
- args[:project_path] = File.expand_path(path)
93
- args[:project_alias] = args.delete(:alias)
94
- args[:test_paths] = []
95
- args[:worker_task] = 'prepare'
92
+ params[:project_path] = File.expand_path(path)
93
+ params[:project_alias] = params.delete(:alias)
94
+ params[:test_paths] = []
95
+ params[:worker_task] = 'prepare'
96
96
  append_to_program_name "prepare"
97
- Specjour::Dispatcher.new(args).start
97
+ Specjour::Dispatcher.new(params).start
98
98
  end
99
99
 
100
100
  map %w(-v --version) => :version
@@ -109,8 +109,8 @@ module Specjour
109
109
  $PROGRAM_NAME = "#{$PROGRAM_NAME} #{command}"
110
110
  end
111
111
 
112
- def args
113
- @args ||= options.dup
112
+ def params
113
+ @params ||= options.dup
114
114
  end
115
115
 
116
116
  def handle_logging
@@ -118,17 +118,17 @@ module Specjour
118
118
  end
119
119
 
120
120
  def handle_workers
121
- args[:worker_size] = options["workers"] || CPU.cores
121
+ params[:worker_size] = options["workers"] || CPU.cores
122
122
  end
123
123
 
124
124
  def handle_dispatcher(paths)
125
125
  if paths.empty?
126
- args[:project_path] = Dir.pwd
126
+ params[:project_path] = Dir.pwd
127
127
  else
128
- args[:project_path] = File.expand_path(paths.first.sub(/(spec|features).*$/, ''))
128
+ params[:project_path] = File.expand_path(paths.first.sub(/(spec|features).*$/, ''))
129
129
  end
130
- args[:test_paths] = paths
131
- args[:project_alias] = args.delete(:alias)
130
+ params[:test_paths] = paths
131
+ params[:project_alias] = params.delete(:alias)
132
132
  raise ArgumentError, "Cannot dispatch line numbers" if paths.any? {|p| p =~ /:\d+/}
133
133
  end
134
134
  end
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.4"
32
+ VERSION ||= "0.5.5"
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.4
4
+ version: 0.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-29 00:00:00.000000000 Z
12
+ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dnssd
16
- requirement: &2152331220 !ruby/object:Gem::Requirement
16
+ requirement: &2156301100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152331220
24
+ version_requirements: *2156301100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &2152330580 !ruby/object:Gem::Requirement
27
+ requirement: &2156300360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.14.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152330580
35
+ version_requirements: *2156300360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2152329980 !ruby/object:Gem::Requirement
38
+ requirement: &2156299500 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.8.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2152329980
46
+ version_requirements: *2156299500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rr
49
- requirement: &2152329340 !ruby/object:Gem::Requirement
49
+ requirement: &2156298880 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2152329340
57
+ version_requirements: *2156298880
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: cucumber
60
- requirement: &2152328620 !ruby/object:Gem::Requirement
60
+ requirement: &2156314020 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.1.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2152328620
68
+ version_requirements: *2156314020
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &2152327920 !ruby/object:Gem::Requirement
71
+ requirement: &2156313440 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 0.7.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2152327920
79
+ version_requirements: *2156313440
80
80
  description: ! " Specjour splits your RSpec suite across multiple machines, and
81
81
  multiple\n cores per machine, to run super-parallel-fast! Also works with Cucumber.\n"
82
82
  email: sandro.turriate@gmail.com