xcodeproject 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -70,7 +70,7 @@ Or from the current group:
70
70
 
71
71
  group.add_group('path/from/current_group')
72
72
 
73
- To add a directory to the project, you must specify the file path to it:
73
+ To add a directory to the project, you must specify the file path:
74
74
 
75
75
  data.add_dir('group_path/to/parent', '/file_path/to/dir')
76
76
  group.add_dir('/file_path/to/dir')
@@ -125,7 +125,7 @@ You will now have access to a variety of tasks such as clean and build. A full l
125
125
 
126
126
  Configuring your tasks:
127
127
 
128
- XcodeProject::Tasks::BuildTask.new(proj) do
128
+ XcodeProject::Tasks::BuildTask.new(proj) do |t|
129
129
  t.target = "libexample"
130
130
  t.configuration = "Release"
131
131
  end
@@ -3,13 +3,23 @@ require 'xcodebuild'
3
3
  module XcodeProject
4
4
  module Tasks
5
5
  class BuildTask < XcodeBuild::Tasks::BuildTask
6
+ attr_accessor :with_build_opts
7
+
6
8
  def initialize (project, &block)
7
9
  super(project.name, &block)
8
10
 
9
- @formatter ||= XcodeBuild::Formatters::ProgressFormatter.new
10
- @project_name = project.bundle_path.basename.to_s
11
+ @with_build_opts ||= []
12
+ @formatter ||= XcodeBuild::Formatters::ProgressFormatter.new
13
+
14
+ @project_name = project.bundle_path.basename.to_s
11
15
  @invoke_from_within = project.bundle_path.dirname
12
16
  end
17
+
18
+ private
19
+
20
+ def build_opts
21
+ super + with_build_opts
22
+ end
13
23
  end
14
24
  end
15
25
  end
@@ -1,3 +1,3 @@
1
1
  module XcodeProject
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrey Nesterov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-06-26 00:00:00 +04:00
17
+ date: 2012-06-27 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency