xcodeproj 0.3.4 → 0.3.5
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.
@@ -103,7 +103,7 @@ hash_set(const void *keyRef, const void *valueRef, void *hash) {
|
|
103
103
|
|
104
104
|
} else {
|
105
105
|
CFStringRef descriptionRef = CFCopyDescription(elementRef);
|
106
|
-
// obviously not
|
106
|
+
// obviously not optimal, but we're raising here, so it doesn't really matter
|
107
107
|
VALUE description = cfstr_to_str(descriptionRef);
|
108
108
|
rb_raise(rb_eTypeError, "Plist array value contains a object type unsupported by Xcodeproj. In: `%s'", RSTRING_PTR(description));
|
109
109
|
CFRelease(descriptionRef);
|
@@ -153,6 +153,10 @@ dictionary_set(st_data_t key, st_data_t value, CFMutableDictionaryRef dict) {
|
|
153
153
|
valueRef = str_to_cfstr(value);
|
154
154
|
}
|
155
155
|
|
156
|
+
if (valueRef == NULL) {
|
157
|
+
rb_raise(rb_eTypeError, "Unable to convert value of key `%s'.", RSTRING_PTR(rb_inspect(key)));
|
158
|
+
}
|
159
|
+
|
156
160
|
CFDictionaryAddValue(dict, keyRef, valueRef);
|
157
161
|
CFRelease(keyRef);
|
158
162
|
CFRelease(valueRef);
|
data/lib/xcodeproj.rb
CHANGED
data/lib/xcodeproj/project.rb
CHANGED
@@ -45,7 +45,7 @@ module Xcodeproj
|
|
45
45
|
}
|
46
46
|
main_group = groups.new
|
47
47
|
self.root_object = objects.add(PBXProject, {
|
48
|
-
'attributes' => { 'LastUpgradeCheck' => '
|
48
|
+
'attributes' => { 'LastUpgradeCheck' => '0450' },
|
49
49
|
'compatibilityVersion' => 'Xcode 3.2',
|
50
50
|
'developmentRegion' => 'English',
|
51
51
|
'hasScannedForEncodings' => '0',
|
@@ -102,6 +102,10 @@ module Xcodeproj
|
|
102
102
|
build_phases.list_by_class(PBXShellScriptBuildPhase)
|
103
103
|
end
|
104
104
|
|
105
|
+
def resources_build_phases
|
106
|
+
build_phases.list_by_class(PBXResourcesBuildPhase)
|
107
|
+
end
|
108
|
+
|
105
109
|
# Adds source files to the target.
|
106
110
|
#
|
107
111
|
# @note
|
@@ -123,7 +127,7 @@ module Xcodeproj
|
|
123
127
|
|
124
128
|
file = (files + new_files).find { |file| file.path == path.to_s } || @project.files.new('path' => path.to_s)
|
125
129
|
build_file = file.build_files.new
|
126
|
-
if (path.extname == '.h' || path.extname == '.hpp')
|
130
|
+
if (path.extname == '.h' || path.extname == '.hpp' || path.extname == '.hh')
|
127
131
|
build_file.settings = { 'ATTRIBUTES' => ["Public"] }
|
128
132
|
# Working around a bug in Xcode 4.2 betas, remove this once the Xcode bug is fixed:
|
129
133
|
# https://github.com/alloy/cocoapods/issues/13
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
segments:
|
73
73
|
- 0
|
74
|
-
hash:
|
74
|
+
hash: 1845437969595669642
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
none: false
|
77
77
|
requirements:
|