ocrunner 0.2.1 → 0.2.2

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.
data/.gitignore CHANGED
@@ -17,5 +17,6 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
+ doc
20
21
 
21
22
  ## PROJECT::SPECIFIC
data/README.rdoc CHANGED
@@ -12,8 +12,21 @@ To use this, you'll need to be set up with a test target. See http://developer.a
12
12
  To run tests as files are changed (autotest-style), use:
13
13
 
14
14
  ocrunner --auto
15
-
16
- You can see all the available options by running ocrunner -h.
15
+
16
+ == I don't like your defaults
17
+
18
+ Don't worry, you can specify the target/configuration/sdk options passed to xcodebuild. You can see all the available options by running ocrunner -h:
19
+
20
+ --sdk, -s <s>: SDK to build against (default: iphonesimulator3.1.3)
21
+ --target, -t <s>: Target to build (default: Test)
22
+ --config, -c <s>: Configuration to use (default: Debug)
23
+ --parallel, -p: Use multiple processors to build multiple targets (parallelizeTargets) (default: true)
24
+ --auto, -a: Watch filesystem for changes and run tests when they occur
25
+ --growl, -g: Report results using Growl
26
+ --debug-command, -d: Print xcodebuild command and exit
27
+ --verbose, -v: Display all xcodebuild output after summary
28
+ --version, -e: Print version and exit
29
+ --help, -h: Show this message
17
30
 
18
31
  == Note on Patches/Pull Requests
19
32
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/lib/ocrunner/cli.rb CHANGED
@@ -8,8 +8,8 @@ module OCRunner
8
8
  Kernel.trap('INT') { exit }
9
9
 
10
10
  opts = Trollop::options do
11
- v = File.read(File.join(File.dirname(__FILE__), '../../VERSION')).strip
12
- version "#{v} (c) 2010 Jim Benton github.com/jim/ocrunner"
11
+ version_number = File.read(File.join(File.dirname(__FILE__), '../../VERSION')).strip
12
+ version "#{version_number} (c) 2010 Jim Benton github.com/jim/ocrunner"
13
13
  banner <<-EOS
14
14
  ocrunner is a small ruby wrapper for running automated XCode builds.
15
15
 
@@ -20,7 +20,7 @@ module OCRunner
20
20
  opt :sdk, "SDK to build against", :default => 'iphonesimulator3.1.3'
21
21
  opt :target, 'Target to build', :default => 'Test'
22
22
  opt :config, "Configuration to use", :default => 'Debug'
23
- opt :parallel, "Use multiple processors to build (parallelizeTargets)", :type => :boolean, :default => true
23
+ opt :parallel, "Use multiple processors to build multiple targets (parallelizeTargets)", :type => :boolean, :default => true
24
24
  opt :auto, "Watch filesystem for changes and run tests when they occur", :type => :boolean, :default => false
25
25
  opt :growl, "Report results using Growl", :type => :boolean, :default => false
26
26
  opt :debug_command, "Print xcodebuild command and exit", :type => :boolean, :default => false
@@ -28,20 +28,16 @@ module OCRunner
28
28
  end
29
29
 
30
30
  execute = Proc.new{ OCRunner::TestRunner.new(opts) }
31
+ execute.call
31
32
 
32
33
  if opts[:auto]
33
- execute.call
34
-
35
34
  FSSM.monitor(Dir.pwd, %w{**/*.m **/*.h}) do
36
35
  create { |base, relative| execute.call }
37
36
  update { |base, relative| execute.call }
38
37
  delete { |base, relative| execute.call }
39
38
  end
40
-
41
39
  end
42
40
 
43
- execute.call
44
-
45
41
  end
46
42
  end
47
43
  end
data/ocrunner.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ocrunner}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jim Benton"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jim Benton