betabuilder 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGES.md +4 -0
  2. data/lib/beta_builder.rb +12 -5
  3. metadata +6 -8
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2
2
+ * Support configurable path to xcodebuild executable
3
+ * Support configurable path to Xcode project file
4
+
1
5
  ## 0.4
2
6
  * If the user has set the EDITOR environment variable, use it to obtain the TestFlight release notes.
3
7
  * Bugfix: TestFlight API now returns a 201 Created response when successful.
data/lib/beta_builder.rb CHANGED
@@ -12,16 +12,23 @@ module BetaBuilder
12
12
  :configuration => "Adhoc",
13
13
  :build_dir => "build",
14
14
  :auto_archive => false,
15
- :archive_path => File.expand_path("~/Library/Application Support/Developer/Shared/Archived Applications")
15
+ :archive_path => File.expand_path("~/Library/Application Support/Developer/Shared/Archived Applications"),
16
+ :xcodebuild_path => "xcodebuild",
17
+ :project_file_path => nil
16
18
  )
17
19
  @namespace = namespace
18
20
  yield @configuration if block_given?
19
21
  define
20
22
  end
21
23
 
24
+ def xcodebuild(*args)
25
+ system("#{@configuration.xcodebuild_path} #{args.join(" ")}")
26
+ end
27
+
22
28
  class Configuration < OpenStruct
23
29
  def build_arguments
24
- "-target '#{target}' -configuration '#{configuration}' -sdk iphoneos"
30
+ args = "-target '#{target}' -configuration '#{configuration}' -sdk iphoneos"
31
+ args << " -project #{project_file_path}" if project_file_path
25
32
  end
26
33
 
27
34
  def app_name
@@ -64,11 +71,11 @@ module BetaBuilder
64
71
  namespace(@namespace) do
65
72
  desc "Build the beta release of the app"
66
73
  task :build => :clean do
67
- system("xcodebuild #{@configuration.build_arguments} build")
74
+ xcodebuild @configuration.build_arguments, "build"
68
75
  end
69
76
 
70
77
  task :clean do
71
- system("xcodebuild #{@configuration.build_arguments} clean")
78
+ xcodebuild @configuration.build_arguments, "clean"
72
79
  end
73
80
 
74
81
  desc "Package the beta release as an IPA file"
@@ -81,7 +88,7 @@ module BetaBuilder
81
88
  FileUtils.mkdir_p("pkg/Payload")
82
89
  FileUtils.mv(@configuration.built_app_path, "pkg/Payload/#{@configuration.app_name}")
83
90
  Dir.chdir("pkg") do
84
- system("zip -r #{@configuration.ipa_name} Payload")
91
+ system("zip -r '#{@configuration.ipa_name}' Payload")
85
92
  end
86
93
  FileUtils.mkdir('pkg/dist')
87
94
  FileUtils.mv("pkg/#{@configuration.ipa_name}", "pkg/dist")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betabuilder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Redpath
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-11 00:00:00 +00:00
19
- default_executable:
18
+ date: 2011-06-17 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: CFPropertyList
@@ -102,7 +101,6 @@ files:
102
101
  - lib/beta_builder/deployment_strategies.rb
103
102
  - lib/beta_builder.rb
104
103
  - lib/betabuilder.rb
105
- has_rdoc: true
106
104
  homepage: http://github.com/lukeredpath/betabuilder
107
105
  licenses: []
108
106
 
@@ -133,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
131
  requirements: []
134
132
 
135
133
  rubyforge_project:
136
- rubygems_version: 1.4.1
134
+ rubygems_version: 1.8.5
137
135
  signing_key:
138
136
  specification_version: 3
139
137
  summary: A set of Rake tasks and utilities for managing iOS ad-hoc builds