xcoder 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -17
- data/lib/xcode/configuration.rb +6 -6
- data/lib/xcode/project.rb +1 -1
- data/lib/xcode/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -6,34 +6,33 @@ A ruby wrapper around various xcode tools and the project.pbxproj
|
|
6
6
|
|
7
7
|
You will need to install the gem:
|
8
8
|
|
9
|
-
|
9
|
+
gem install xcoder
|
10
10
|
|
11
11
|
and then require the gem in your project/rakefile/etc
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
require 'xcoder'
|
14
|
+
|
15
15
|
### Finding all projects from the current directory down
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
Xcode.find_projects.each {|p| puts p.name }
|
18
|
+
|
19
19
|
### Find a configuration for a target on a project
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
config = project.target(:Target).config(:Debug)
|
24
|
-
`
|
21
|
+
project = Xcode.find_projects.first
|
22
|
+
config = project.target(:Target).config(:Debug)
|
25
23
|
|
26
|
-
### Building a configuration
|
27
24
|
|
28
|
-
|
25
|
+
### Building a configuration
|
29
26
|
|
27
|
+
config.build
|
28
|
+
|
30
29
|
### Packaging a built .app
|
31
30
|
|
32
|
-
|
33
|
-
|
31
|
+
config.package :sign => 'Developer Identity Name', :profile => 'Profile.mobileprovision'
|
32
|
+
|
34
33
|
### Incrementing the build number
|
35
34
|
|
36
|
-
config.info_plist do |info|
|
37
|
-
|
38
|
-
|
39
|
-
end
|
35
|
+
config.info_plist do |info|
|
36
|
+
info.version = info.version.to_i + 1
|
37
|
+
info.save
|
38
|
+
end
|
data/lib/xcode/configuration.rb
CHANGED
@@ -24,8 +24,8 @@ module Xcode
|
|
24
24
|
|
25
25
|
def build
|
26
26
|
cmd = []
|
27
|
-
cmd << "-target #{@target.name}"
|
28
|
-
cmd << "-configuration #{name}"
|
27
|
+
cmd << "-target \"#{@target.name}\""
|
28
|
+
cmd << "-configuration \"#{name}\""
|
29
29
|
@target.project.execute_xcodebuild(cmd.join(' '))
|
30
30
|
end
|
31
31
|
|
@@ -39,15 +39,15 @@ module Xcode
|
|
39
39
|
|
40
40
|
def package(options={})
|
41
41
|
cmd = []
|
42
|
-
cmd << "-v #{app_path}"
|
43
|
-
cmd << "-o #{ipa_path}"
|
42
|
+
cmd << "-v \"#{app_path}\""
|
43
|
+
cmd << "-o \"#{ipa_path}\""
|
44
44
|
|
45
45
|
if options.has_key? :sign
|
46
|
-
cmd << "--sign #{options[:sign]}"
|
46
|
+
cmd << "--sign \"#{options[:sign]}\""
|
47
47
|
end
|
48
48
|
|
49
49
|
if options.has_key? :profile
|
50
|
-
cmd << "--embed #{options[:profile]}"
|
50
|
+
cmd << "--embed \"#{options[:profile]}\""
|
51
51
|
end
|
52
52
|
|
53
53
|
@target.project.execute_package_application(cmd.join(' '))
|
data/lib/xcode/project.rb
CHANGED
data/lib/xcode/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-08-18 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement: &
|
16
|
+
requirement: &70110358446380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70110358446380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: plist
|
27
|
-
requirement: &
|
27
|
+
requirement: &70110358474100 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70110358474100
|
36
36
|
description: Provides a ruby based object-model for parsing project structures and
|
37
37
|
invoking builds
|
38
38
|
email:
|