cocoapods 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -4
- data/lib/cocoapods/command/list.rb +4 -2
- data/lib/cocoapods/command/search.rb +7 -1
- data/lib/cocoapods/command.rb +10 -9
- data/lib/cocoapods/gem_version.rb +1 -1
- data/lib/cocoapods/generator/xcconfig.rb +1 -1
- data/lib/cocoapods/installer/user_project_integrator/target_integrator.rb +3 -1
- data/lib/cocoapods/installer.rb +2 -2
- data/lib/cocoapods/sources_manager.rb +2 -2
- data/lib/cocoapods/user_interface.rb +2 -2
- data/lib/cocoapods.rb +9 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e0881feaf291a34b53110b92c56d327e0b956a1
|
4
|
+
data.tar.gz: a65960c704edd79a75f03dbc2a574c3da7799057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 681f330ef6eba8a347504cec27bfdc43653797d3f6d2c9ed4937e5d14580f67a3735d7e99927b80d5a3ed12c8649c5f9e30e58a462a4c52cc0b70f42426acda6
|
7
|
+
data.tar.gz: e95439f57785df354f3b4be232813ea8fc94d2504781dfad64b4ad72dd2cf0c70fa35e2218eec68423c7e87733eec426e6c9f40c671051f1b25833282176960c
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,23 @@
|
|
1
|
-
## 0.18.
|
2
|
-
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.
|
3
|
-
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.
|
4
|
-
|
1
|
+
## 0.18.1
|
2
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.18.0...0.18.1)
|
3
|
+
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.18.0...0.18.)
|
4
|
+
|
5
|
+
###### Bug fixes
|
6
|
+
|
7
|
+
* Fixed a bug introduced in 0.18 which cause compilation issue due to the
|
8
|
+
quoting of the inherited value in the xcconfigs.
|
9
|
+
[#956](https://github.com/CocoaPods/CocoaPods/issues/956)
|
10
|
+
* Robustness against user targets including build files with missing file
|
11
|
+
references.
|
12
|
+
[#938](https://github.com/CocoaPods/CocoaPods/issues/938)
|
13
|
+
* Partially fixed slow performance from the command line
|
14
|
+
[#919](https://github.com/CocoaPods/CocoaPods/issues/919)
|
15
|
+
|
16
|
+
|
17
|
+
## 0.18.0
|
18
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.2...0.18.0)
|
19
|
+
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.17.2...0.18.0)
|
20
|
+
• [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.5.2...0.5.5)
|
5
21
|
|
6
22
|
###### Enhancements
|
7
23
|
|
@@ -48,7 +48,8 @@ module Pod
|
|
48
48
|
dates, groups = {}, {}
|
49
49
|
days.each {|d| dates[d] = Time.now - 60 * 60 * 24 * d}
|
50
50
|
sets = SourcesManager.all_sets
|
51
|
-
|
51
|
+
statistics_provider = Specification::Set::Statistics.new(STATISTICS_CACHE_FILE)
|
52
|
+
creation_dates = statistics_provider.creation_dates(sets)
|
52
53
|
|
53
54
|
sets.each do |set|
|
54
55
|
set_date = creation_dates[set.name]
|
@@ -65,7 +66,8 @@ module Pod
|
|
65
66
|
next unless sets
|
66
67
|
UI.section("\nPods added in the last #{"day".pluralize(d)}".yellow) do
|
67
68
|
sorted = sets.sort_by {|s| creation_dates[s.name]}
|
68
|
-
|
69
|
+
mode = @stats ? :stats : :name
|
70
|
+
sorted.each { |set| UI.pod(set, mode, statistics_provider) }
|
69
71
|
end
|
70
72
|
end
|
71
73
|
end
|
@@ -42,9 +42,15 @@ module Pod
|
|
42
42
|
if @supported_on_osx
|
43
43
|
sets.reject!{ |set| !set.specification.available_platforms.map(&:name).include?(:osx) }
|
44
44
|
end
|
45
|
+
|
46
|
+
statistics_provider = Specification::Set::Statistics.new(STATISTICS_CACHE_FILE)
|
45
47
|
sets.each do |set|
|
46
48
|
begin
|
47
|
-
|
49
|
+
if @stats
|
50
|
+
UI.pod(set, :stats, statistics_provider)
|
51
|
+
else
|
52
|
+
UI.pod(set, :normal)
|
53
|
+
end
|
48
54
|
rescue DSLError
|
49
55
|
UI.warn "Skipping `#{set.name}` because the podspec contains errors."
|
50
56
|
end
|
data/lib/cocoapods/command.rb
CHANGED
@@ -8,6 +8,16 @@ module Pod
|
|
8
8
|
|
9
9
|
class Command < CLAide::Command
|
10
10
|
|
11
|
+
require 'cocoapods/command/list'
|
12
|
+
require 'cocoapods/command/outdated'
|
13
|
+
require 'cocoapods/command/project'
|
14
|
+
require 'cocoapods/command/push'
|
15
|
+
require 'cocoapods/command/repo'
|
16
|
+
require 'cocoapods/command/search'
|
17
|
+
require 'cocoapods/command/setup'
|
18
|
+
require 'cocoapods/command/spec'
|
19
|
+
require 'cocoapods/command/inter_process_communication'
|
20
|
+
|
11
21
|
self.abstract_command = true
|
12
22
|
self.command = 'pod'
|
13
23
|
self.description = 'CocoaPods, the Objective-C library package manager.'
|
@@ -102,12 +112,3 @@ module Pod
|
|
102
112
|
end
|
103
113
|
end
|
104
114
|
|
105
|
-
require 'cocoapods/command/list'
|
106
|
-
require 'cocoapods/command/outdated'
|
107
|
-
require 'cocoapods/command/project'
|
108
|
-
require 'cocoapods/command/push'
|
109
|
-
require 'cocoapods/command/repo'
|
110
|
-
require 'cocoapods/command/search'
|
111
|
-
require 'cocoapods/command/setup'
|
112
|
-
require 'cocoapods/command/spec'
|
113
|
-
require 'cocoapods/command/inter_process_communication'
|
@@ -146,7 +146,7 @@ module Pod
|
|
146
146
|
# @todo Inheritance should be properly handled in Xcconfigs.
|
147
147
|
#
|
148
148
|
DEVELOPER_FRAMEWORKS_SEARCH_PATHS = [
|
149
|
-
'
|
149
|
+
'$(inherited)',
|
150
150
|
'"$(SDKROOT)/Developer/Library/Frameworks"',
|
151
151
|
'"$(DEVELOPER_LIBRARY_DIR)/Frameworks"'
|
152
152
|
]
|
@@ -55,7 +55,9 @@ module Pod
|
|
55
55
|
non_integrated = targets.reject do |target|
|
56
56
|
target.frameworks_build_phase.files.any? do |build_file|
|
57
57
|
file_ref = build_file.file_ref
|
58
|
-
file_ref
|
58
|
+
file_ref &&
|
59
|
+
file_ref.isa == 'PBXFileReference' &&
|
60
|
+
file_ref.display_name == library.product_name
|
59
61
|
end
|
60
62
|
end
|
61
63
|
@targets = non_integrated
|
data/lib/cocoapods/installer.rb
CHANGED
@@ -368,7 +368,7 @@ module Pod
|
|
368
368
|
#
|
369
369
|
def run_pre_install_hooks
|
370
370
|
UI.message "- Running pre install hooks" do
|
371
|
-
|
371
|
+
analysis_result.specifications.each do |spec|
|
372
372
|
executed = false
|
373
373
|
libraries_using_spec(spec).each do |lib|
|
374
374
|
lib_representation = library_rep(lib)
|
@@ -427,7 +427,7 @@ module Pod
|
|
427
427
|
#
|
428
428
|
def run_post_install_hooks
|
429
429
|
UI.message "- Running post install hooks" do
|
430
|
-
|
430
|
+
analysis_result.specifications.each do |spec|
|
431
431
|
executed = false
|
432
432
|
libraries_using_spec(spec).each do |lib|
|
433
433
|
lib_representation = library_rep(lib)
|
@@ -180,11 +180,11 @@ module Pod
|
|
180
180
|
version_msg = ( min == max ) ? min : "#{min} - #{max}"
|
181
181
|
raise Informative, "The `#{dir.basename}` repo requires " \
|
182
182
|
"CocoaPods #{version_msg}\n".red +
|
183
|
-
"Update
|
183
|
+
"Update CocoaPods, or checkout the appropriate tag in the repo."
|
184
184
|
end
|
185
185
|
|
186
186
|
if config.new_version_message? && cocoapods_update?(versions)
|
187
|
-
UI.puts "\
|
187
|
+
UI.puts "\nCocoaPods #{versions['last']} is available.\n".green
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
@@ -157,11 +157,11 @@ module Pod
|
|
157
157
|
|
158
158
|
# Prints the textual representation of a given set.
|
159
159
|
#
|
160
|
-
def pod(set, mode = :normal)
|
160
|
+
def pod(set, mode = :normal, statistics_provider = nil)
|
161
161
|
if mode == :name
|
162
162
|
puts_indented set.name
|
163
163
|
else
|
164
|
-
pod = Specification::Set::Presenter.new(set)
|
164
|
+
pod = Specification::Set::Presenter.new(set, statistics_provider)
|
165
165
|
title("\n-> #{pod.name} (#{pod.version})".green, '', 1) do
|
166
166
|
puts_indented pod.summary
|
167
167
|
labeled('Homepage', pod.homepage)
|
data/lib/cocoapods.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
|
+
autoload :Xcodeproj, 'xcodeproj'
|
4
|
+
|
3
5
|
module Pod
|
4
6
|
require 'pathname'
|
5
7
|
|
6
8
|
require 'cocoapods/gem_version'
|
7
9
|
require 'cocoapods-core'
|
8
|
-
require 'xcodeproj'
|
9
|
-
require 'cocoapods/downloader'
|
10
10
|
require 'cocoapods/file_list'
|
11
11
|
require 'cocoapods/config'
|
12
12
|
|
13
|
+
autoload :Downloader, 'cocoapods/downloader'
|
14
|
+
|
13
15
|
# Indicates an user error. This is defined in cocoapods-core.
|
14
16
|
#
|
15
17
|
class Informative < PlainInformative
|
@@ -33,7 +35,9 @@ module Pod
|
|
33
35
|
#
|
34
36
|
MAX_CACHE_SIZE = 500
|
35
37
|
|
36
|
-
|
38
|
+
# @return [Pathname] The file to use a cache of the statistics provider.
|
39
|
+
#
|
40
|
+
STATISTICS_CACHE_FILE = CACHE_ROOT + 'statistics.yml'
|
37
41
|
|
38
42
|
autoload :Command, 'cocoapods/command'
|
39
43
|
autoload :Executable, 'cocoapods/executable'
|
@@ -69,6 +73,6 @@ module Pod
|
|
69
73
|
end
|
70
74
|
|
71
75
|
if ENV['COCOA_PODS_ENV'] == 'development'
|
72
|
-
require 'awesome_print'
|
73
|
-
require 'pry'
|
76
|
+
# require 'awesome_print'
|
77
|
+
# require 'pry'
|
74
78
|
end
|
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.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods-core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.18.
|
20
|
+
version: 0.18.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.18.
|
27
|
+
version: 0.18.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: claide
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|