cocoapods 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1
|
+
## 0.16.3
|
2
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.16.2...0.16.3) • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.4.3...0.5.0)
|
3
|
+
|
4
|
+
###### Bug fixes
|
5
|
+
|
6
|
+
- Only flatten tarballs, **not** zipballs, from HTTP sources. A zipball can
|
7
|
+
contain single directories in the root that should be preserved, for instance
|
8
|
+
a framework bundle. This reverts part of the change in 0.16.1.
|
9
|
+
**NOTE** This will break some podspecs that were changed after 0.16.1.
|
10
|
+
[#783](https://github.com/CocoaPods/CocoaPods/pull/783)
|
11
|
+
[#727](https://github.com/CocoaPods/CocoaPods/issues/727)
|
12
|
+
- Never consider aggregate targets in the user’s project for integration.
|
13
|
+
[#729](https://github.com/CocoaPods/CocoaPods/issues/729)
|
14
|
+
[#784](https://github.com/CocoaPods/CocoaPods/issues/784)
|
15
|
+
- Support comments on all build phases, groups and targets in Xcode projects.
|
16
|
+
[#51](https://github.com/CocoaPods/Xcodeproj/pull/51)
|
17
|
+
- Ensure default Xcode project values are copied before being used.
|
18
|
+
[b43087c](https://github.com/CocoaPods/Xcodeproj/commit/b43087cb342d8d44b491e702faddf54a222b23c3)
|
19
|
+
- Block assertions in Release builds.
|
20
|
+
[#53](https://github.com/CocoaPods/Xcodeproj/pull/53)
|
21
|
+
[#803](https://github.com/CocoaPods/CocoaPods/pull/803)
|
22
|
+
[#802](https://github.com/CocoaPods/CocoaPods/issues/802)
|
23
|
+
|
24
|
+
|
25
|
+
###### Enhancements
|
26
|
+
|
27
|
+
- Compile Core Data model files.
|
28
|
+
[#795](https://github.com/CocoaPods/CocoaPods/pull/795)
|
29
|
+
- Add `Xcodeproj::Differ`, which shows differences between Xcode projects.
|
30
|
+
[308941e](https://github.com/CocoaPods/Xcodeproj/commit/308941eeaa3bca817742c774fd584cc5ab1c8f84)
|
31
|
+
|
32
|
+
|
1
33
|
## 0.16.2
|
2
34
|
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.16.1...0.16.2) • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.4.1...0.4.3)
|
3
35
|
|
data/lib/cocoapods.rb
CHANGED
@@ -74,12 +74,14 @@ module Pod
|
|
74
74
|
raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
|
75
75
|
end
|
76
76
|
|
77
|
-
# If the archive only contained a folder, move its contents to the target (#727)
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
77
|
+
# If the archive is a tarball and it only contained a folder, move its contents to the target (#727)
|
78
|
+
if [:tgz, :tar, :tbz].include? type
|
79
|
+
contents = target_path.children
|
80
|
+
contents.delete(full_filename)
|
81
|
+
entry = contents.first
|
82
|
+
if contents.count == 1 && entry.directory?
|
83
|
+
FileUtils.move(entry.children, target_path)
|
84
|
+
end
|
83
85
|
end
|
84
86
|
end
|
85
87
|
|
@@ -19,6 +19,10 @@ install_resource()
|
|
19
19
|
echo "rsync -rp ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
|
20
20
|
rsync -rp "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
|
21
21
|
;;
|
22
|
+
*.xcdatamodeld)
|
23
|
+
echo "xcrun momc ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
|
24
|
+
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xcdatamodeld`.momd"
|
25
|
+
;;
|
22
26
|
*)
|
23
27
|
echo "cp -R ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
|
24
28
|
cp -R "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
|
@@ -112,6 +112,14 @@ module Pod
|
|
112
112
|
@user_project ||= Xcodeproj::Project.new(user_project_path)
|
113
113
|
end
|
114
114
|
|
115
|
+
# @return [Array<PBXNativeTarget>] Returns the user’s targets,
|
116
|
+
# excluding aggregate targets.
|
117
|
+
def native_targets
|
118
|
+
user_project.targets.reject do |target|
|
119
|
+
target.is_a? Xcodeproj::Project::Object::PBXAggregateTarget
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
115
123
|
# This returns a list of the targets from the user’s project to which
|
116
124
|
# this Pods static library should be linked. If no explicit target was
|
117
125
|
# specified, then the first encountered target is assumed.
|
@@ -122,28 +130,40 @@ module Pod
|
|
122
130
|
# @return [Array<PBXNativeTarget>] Returns the list of targets that
|
123
131
|
# the Pods lib should be linked with.
|
124
132
|
def targets
|
125
|
-
@targets
|
126
|
-
|
133
|
+
if @targets.nil?
|
134
|
+
targets = nil
|
127
135
|
# Find explicitly linked targets.
|
128
|
-
|
129
|
-
|
136
|
+
if link_with = @target_definition.link_with
|
137
|
+
targets = native_targets.select do |target|
|
138
|
+
link_with.include? target.name
|
139
|
+
end
|
140
|
+
|
141
|
+
# Otherwise try to find a target matching the name.
|
142
|
+
elsif @target_definition.name != :default
|
143
|
+
target = native_targets.find do |target|
|
144
|
+
target.name == @target_definition.name.to_s
|
145
|
+
end
|
146
|
+
unless target
|
147
|
+
raise Informative, "Unable to find a target named `#{@target_definition.name.to_s}'"
|
148
|
+
end
|
149
|
+
targets = [target]
|
150
|
+
|
151
|
+
# Default to the first target, which in a simple project is
|
152
|
+
# probably an app target.
|
153
|
+
else
|
154
|
+
targets = [native_targets.first]
|
130
155
|
end
|
131
|
-
|
132
|
-
#
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
end.reject do |target|
|
140
|
-
# Reject any target that already has this Pods library in one of its frameworks build phases
|
141
|
-
target.frameworks_build_phase.files.any? do |build_file|
|
142
|
-
file_ref = build_file.file_ref
|
143
|
-
!file_ref.proxy? && file_ref.display_name == @target_definition.lib_name
|
156
|
+
|
157
|
+
# Reject any target that already has this Pods library in one of
|
158
|
+
# its frameworks build phases
|
159
|
+
@targets = targets.reject do |target|
|
160
|
+
target.frameworks_build_phase.files.any? do |build_file|
|
161
|
+
file_ref = build_file.file_ref
|
162
|
+
!file_ref.proxy? && file_ref.display_name == @target_definition.lib_name
|
163
|
+
end
|
144
164
|
end
|
145
165
|
end
|
146
|
-
|
166
|
+
@targets
|
147
167
|
end
|
148
168
|
|
149
169
|
def add_xcconfig_base_configuration
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: xcodeproj
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.5.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.
|
30
|
+
version: 0.5.0
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: faraday
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: 0.
|
134
|
+
version: 10.0.0
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -139,7 +139,7 @@ dependencies:
|
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: 0.
|
142
|
+
version: 10.0.0
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: activesupport
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|