wox 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ # 0.0.6 (16 Apr 2011)
2
+ Build now defaults to building the first target in the application. This can be overridden by setting :target
@@ -18,6 +18,7 @@ module Wox
18
18
  options[:build_dir] ||= 'build'
19
19
  options[:sdk] ||= 'iphoneos'
20
20
  options[:configuration] ||= 'Release'
21
+ options[:target] ||= targets.first
21
22
  @options = options
22
23
  end
23
24
 
@@ -28,11 +29,7 @@ module Wox
28
29
  def project_name
29
30
  self[:project_name]
30
31
  end
31
-
32
- def read_version plist_file
33
-
34
- end
35
-
32
+
36
33
  def version
37
34
  self[:version]
38
35
  end
@@ -52,6 +49,14 @@ module Wox
52
49
  xcodebuild_list.slice start_line...end_line
53
50
  end
54
51
  end
52
+
53
+ def targets
54
+ @targets ||= begin
55
+ start_line = xcodebuild_list.find_index{ |l| l =~ /targets/i } + 1
56
+ end_line = xcodebuild_list.find_index{ |l| l =~ /configurations/i } - 1
57
+ xcodebuild_list.slice start_line...end_line
58
+ end
59
+ end
55
60
 
56
61
  def [](name)
57
62
  fail "You need to specify :#{name} in Rakefile" unless @options[name]
@@ -9,7 +9,7 @@ module Wox
9
9
 
10
10
  log_file = File.join environment[:build_dir], "build-#{configuration}.log"
11
11
 
12
- run_command "xcodebuild -target '#{environment.project_name}' -configuration #{configuration}", :results => log_file
12
+ run_command "xcodebuild -target '#{environment[:target]}' -configuration #{configuration}", :results => log_file
13
13
  end
14
14
  end
15
15
  end
@@ -29,6 +29,11 @@ module Wox
29
29
  task :configurations do
30
30
  puts environment.configurations.join("\n")
31
31
  end
32
+
33
+ desc "List project targets"
34
+ task :targets do
35
+ puts environment.targets.join("\n")
36
+ end
32
37
  end
33
38
  end
34
39
 
@@ -1,3 +1,3 @@
1
1
  module Wox
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -16,6 +16,8 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "thor"
18
18
  s.add_dependency "plist"
19
+
20
+ s.add_development_dependency "rspec"
19
21
 
20
22
  s.files = `git ls-files`.split("\n")
21
23
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Newman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-13 00:00:00 +10:00
18
+ date: 2011-04-16 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,20 @@ dependencies:
46
46
  version: "0"
47
47
  type: :runtime
48
48
  version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: rspec
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
49
63
  description: Wox is a collection of build tasks that helps you build and publish iOS appicatinos
50
64
  email:
51
65
  - dave@snappyco.de
@@ -58,6 +72,7 @@ extra_rdoc_files: []
58
72
  files:
59
73
  - .gitignore
60
74
  - .rvmrc
75
+ - CHANGELOG.md
61
76
  - Gemfile
62
77
  - README.md
63
78
  - Rakefile