cocoapods 0.38.1 → 0.38.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/lib/cocoapods/gem_version.rb +1 -1
- data/lib/cocoapods/generator/module_map.rb +1 -2
- data/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb +1 -1
- data/lib/cocoapods/installer.rb +3 -1
- data/lib/cocoapods/installer/pod_source_installer.rb +1 -2
- data/lib/cocoapods/installer/target_installer/pod_target_installer.rb +10 -38
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7e6d94a848bdb964b5ba5ce93ed5b4622582585
|
4
|
+
data.tar.gz: 4df9560e7a5e4d148e5faf78e901c9566f0b9853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809cbe13a9be6eb1599647b37609a385bad36bd0eabc87cbff8e1feac6e6f26722a22886e2d7de562a7c3e04b080b35ef0429b6358683f4c7441103f80f9045f
|
7
|
+
data.tar.gz: 9a54449a7162af315e8196762220f6fbdc2ba5ea1941d3bd0b557fd6ccc1cf2900f74024457ede1cf894bbf39a1e7b16d1cbbf03bbaed1c255ebc9192f721704
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,36 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
|
|
4
4
|
|
5
5
|
To install release candidates run `[sudo] gem install cocoapods --pre`
|
6
6
|
|
7
|
+
## 0.38.2
|
8
|
+
|
9
|
+
##### Bug Fixes
|
10
|
+
|
11
|
+
* Fix generation of xcconfig files that specify both `-iquote` and `-isystem`
|
12
|
+
headers.
|
13
|
+
[Russ Bishop](https://github.com/russbishop)
|
14
|
+
[#3893](https://github.com/CocoaPods/CocoaPods/issues/3893)
|
15
|
+
|
16
|
+
* Pods integrated as static libraries can no longer be imported as
|
17
|
+
modules, as that change had unexpected side-effects.
|
18
|
+
[Boris Bügling](https://github.com/neonichu)
|
19
|
+
[#3898](https://github.com/CocoaPods/CocoaPods/pull/3898)
|
20
|
+
[#3879](https://github.com/CocoaPods/CocoaPods/issues/3879)
|
21
|
+
[#3888](https://github.com/CocoaPods/CocoaPods/issues/3888)
|
22
|
+
[#3886](https://github.com/CocoaPods/CocoaPods/issues/3886)
|
23
|
+
[#3889](https://github.com/CocoaPods/CocoaPods/issues/3889)
|
24
|
+
[#3884](https://github.com/CocoaPods/CocoaPods/issues/3884)
|
25
|
+
|
26
|
+
* Source file locking now happens after plugin and podfile post-install hooks
|
27
|
+
have run.
|
28
|
+
[Samuel Giddins](https://github.com/segiddins)
|
29
|
+
[#3529](https://github.com/CocoaPods/CocoaPods/issues/3529)
|
30
|
+
|
31
|
+
* Only set project, dylib, and compatibility versions to valid, three integer
|
32
|
+
values.
|
33
|
+
[Samuel Giddins](https://github.com/segiddins)
|
34
|
+
[#3887](https://github.com/CocoaPods/CocoaPods/issues/3887)
|
35
|
+
|
36
|
+
|
7
37
|
## 0.38.1
|
8
38
|
|
9
39
|
##### Enhancements
|
@@ -42,9 +42,8 @@ module Pod
|
|
42
42
|
# @return [String]
|
43
43
|
#
|
44
44
|
def generate
|
45
|
-
module_declaration_qualifier = target.requires_frameworks? ? 'framework ' : ''
|
46
45
|
result = <<-eos.strip_heredoc
|
47
|
-
|
46
|
+
framework module #{target.product_module_name} {
|
48
47
|
umbrella header "#{target.umbrella_header_path.basename}"
|
49
48
|
|
50
49
|
export *
|
@@ -109,7 +109,7 @@ module Pod
|
|
109
109
|
# Make library headers discoverale by `#import "…"`
|
110
110
|
library_header_search_paths = target.sandbox.public_headers.search_paths(target.platform)
|
111
111
|
build_settings['HEADER_SEARCH_PATHS'] = XCConfigHelper.quote(library_header_search_paths)
|
112
|
-
build_settings['OTHER_CFLAGS'] += XCConfigHelper.quote(library_header_search_paths, '-isystem')
|
112
|
+
build_settings['OTHER_CFLAGS'] += ' ' + XCConfigHelper.quote(library_header_search_paths, '-isystem')
|
113
113
|
end
|
114
114
|
if pod_targets.any? { |t| t.should_build? && t.scoped? }
|
115
115
|
build_settings['FRAMEWORK_SEARCH_PATHS'] = '$(inherited) "$PODS_FRAMEWORK_BUILD_PATH"'
|
data/lib/cocoapods/installer.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_support/core_ext/string/inflections'
|
2
|
+
require 'fileutils'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
# The Installer is responsible of taking a Podfile and transform it in the
|
@@ -113,6 +114,7 @@ module Pod
|
|
113
114
|
|
114
115
|
def prepare
|
115
116
|
UI.message 'Preparing' do
|
117
|
+
FileUtils.chmod_R('+w', sandbox.root)
|
116
118
|
sandbox.prepare
|
117
119
|
ensure_plugins_are_installed!
|
118
120
|
Migrator.migrate(sandbox)
|
@@ -141,7 +143,6 @@ module Pod
|
|
141
143
|
install_pod_sources
|
142
144
|
run_podfile_pre_install_hooks
|
143
145
|
clean_pod_sources
|
144
|
-
lock_pod_sources
|
145
146
|
end
|
146
147
|
end
|
147
148
|
|
@@ -442,6 +443,7 @@ module Pod
|
|
442
443
|
def perform_post_install_actions
|
443
444
|
run_plugins_post_install_hooks
|
444
445
|
warn_for_deprecations
|
446
|
+
lock_pod_sources
|
445
447
|
end
|
446
448
|
|
447
449
|
# Runs the registered callbacks for the plugins post install hooks.
|
@@ -78,8 +78,7 @@ module Pod
|
|
78
78
|
file_accessors.each do |file_accessor|
|
79
79
|
file_accessor.source_files.each do |source_file|
|
80
80
|
next unless source_file.exist?
|
81
|
-
|
82
|
-
source_file.chmod(new_permissions)
|
81
|
+
FileUtils.chmod('-w', source_file)
|
83
82
|
end
|
84
83
|
end
|
85
84
|
end
|
@@ -22,15 +22,13 @@ module Pod
|
|
22
22
|
create_xcconfig_file
|
23
23
|
if target.requires_frameworks?
|
24
24
|
create_info_plist_file
|
25
|
+
create_module_map do |generator|
|
26
|
+
generator.private_headers += target.file_accessors.flat_map(&:private_headers).map(&:basename)
|
27
|
+
end
|
28
|
+
create_umbrella_header do |generator|
|
29
|
+
generator.imports += target.file_accessors.flat_map(&:public_headers).map(&:basename)
|
30
|
+
end
|
25
31
|
end
|
26
|
-
create_module_map do |generator|
|
27
|
-
generator.private_headers += target.file_accessors.flat_map(&:private_headers).map(&:basename)
|
28
|
-
end
|
29
|
-
create_umbrella_header do |generator|
|
30
|
-
generator.imports += target.file_accessors.flat_map(&:public_headers).map(&:basename)
|
31
|
-
end
|
32
|
-
link_module_map
|
33
|
-
link_umbrella_header
|
34
32
|
create_prefix_header
|
35
33
|
create_dummy_source
|
36
34
|
end
|
@@ -47,9 +45,10 @@ module Pod
|
|
47
45
|
settings = super
|
48
46
|
if target.requires_frameworks?
|
49
47
|
version = target.root_spec.version
|
50
|
-
|
51
|
-
compatibility_version = version.
|
52
|
-
|
48
|
+
project_version = [version.major, version.minor, version.patch].join('.')
|
49
|
+
compatibility_version = version.major
|
50
|
+
compatibility_version = project_version if compatibility_version < 1
|
51
|
+
settings['CURRENT_PROJECT_VERSION'] = project_version
|
53
52
|
settings['DYLIB_COMPATIBILITY_VERSION'] = compatibility_version.to_s
|
54
53
|
settings['DYLIB_CURRENT_VERSION'] = '$(CURRENT_PROJECT_VERSION)'
|
55
54
|
end
|
@@ -185,27 +184,6 @@ module Pod
|
|
185
184
|
end
|
186
185
|
end
|
187
186
|
|
188
|
-
# Links a module map to Public headers.
|
189
|
-
#
|
190
|
-
# @return [void]
|
191
|
-
#
|
192
|
-
def link_module_map
|
193
|
-
return if target.requires_frameworks? && target.should_build?
|
194
|
-
|
195
|
-
sandbox.public_headers.add_file(target.name, target.module_map_path, 'module.modulemap', target.platform)
|
196
|
-
end
|
197
|
-
|
198
|
-
# Links a an umbrella header to Public headers.
|
199
|
-
#
|
200
|
-
# @return [void]
|
201
|
-
#
|
202
|
-
def link_umbrella_header
|
203
|
-
return if custom_module_map
|
204
|
-
return if target.requires_frameworks? && target.should_build?
|
205
|
-
|
206
|
-
sandbox.public_headers.add_files(target.name, [target.umbrella_header_path], target.platform)
|
207
|
-
end
|
208
|
-
|
209
187
|
# Creates a prefix header file which imports `UIKit` or `Cocoa` according
|
210
188
|
# to the platform of the target. This file also include any prefix header
|
211
189
|
# content reported by the specification of the pods.
|
@@ -303,12 +281,6 @@ module Pod
|
|
303
281
|
FileUtils.cp(custom_module_map, path)
|
304
282
|
add_file_to_support_group(path)
|
305
283
|
|
306
|
-
unless target.requires_frameworks?
|
307
|
-
contents = path.read
|
308
|
-
contents.gsub!(/^\s*framework\s+module/, 'module')
|
309
|
-
path.open('w') { |f| f.write(contents) }
|
310
|
-
end
|
311
|
-
|
312
284
|
native_target.build_configurations.each do |c|
|
313
285
|
relative_path = path.relative_path_from(sandbox.root)
|
314
286
|
c.build_settings['MODULEMAP_FILE'] = relative_path.to_s
|
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.38.
|
4
|
+
version: 0.38.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-07-
|
14
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: cocoapods-core
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.38.
|
22
|
+
version: 0.38.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.38.
|
29
|
+
version: 0.38.2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: claide
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,14 +47,14 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - ~>
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.26.
|
50
|
+
version: 0.26.3
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.26.
|
57
|
+
version: 0.26.3
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: cocoapods-downloader
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|