cocoapods 1.1.0.beta.2 → 1.1.0.rc.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 +32 -0
- data/lib/cocoapods/command/lib/create.rb +1 -1
- data/lib/cocoapods/command/repo/push.rb +17 -13
- data/lib/cocoapods/gem_version.rb +1 -1
- data/lib/cocoapods/generator/acknowledgements/plist.rb +4 -2
- data/lib/cocoapods/sources_manager.rb +2 -4
- data/lib/cocoapods/validator.rb +2 -2
- 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: f4ff9dbac2efdec1817b8a8fb06c7aed5f2c1558
|
4
|
+
data.tar.gz: d05adef502d5c11d80f44819de3c317ce71c7561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 819b0c19eb7ed8ad2be3a8dc44eb9c4ea499e5bf93a75dfd16ef50c911eca9fbeb6b944f123a237605f3e855a7a24f84ca72e7d6f201bf40a25f0811e3b8e588
|
7
|
+
data.tar.gz: defab2d9d9364630d198e0b0334ef840f80175f696cb00def25bfbccc6a70458a2a0c3f3f9ca92649cac66e9aee1c110089680bb813fafc64e5dfe3a1014cb9f
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,34 @@ 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
|
+
## Master
|
8
|
+
|
9
|
+
##### Enhancements
|
10
|
+
|
11
|
+
* None.
|
12
|
+
|
13
|
+
##### Bug Fixes
|
14
|
+
|
15
|
+
* None.
|
16
|
+
|
17
|
+
|
18
|
+
## 1.1.0.rc.1 (2016-09-10)
|
19
|
+
|
20
|
+
##### Enhancements
|
21
|
+
|
22
|
+
* None.
|
23
|
+
|
24
|
+
##### Bug Fixes
|
25
|
+
|
26
|
+
* Prevent crash when generating acknowledgements when license type is not specified.
|
27
|
+
[Marcelo Fabri](https://github.com/marcelofabri)
|
28
|
+
[#5826](https://github.com/CocoaPods/CocoaPods/issues/5826)
|
29
|
+
|
30
|
+
* Pass full path to App.xcworkspace for spec validation, and use `git -C` for `pod repo push` git ops.
|
31
|
+
[Ben Asher](https://github.com/benasher44)
|
32
|
+
[#5805](https://github.com/CocoaPods/CocoaPods/issues/5805)
|
33
|
+
|
34
|
+
|
7
35
|
## 1.1.0.beta.2 (2016-09-03)
|
8
36
|
|
9
37
|
##### Enhancements
|
@@ -33,6 +61,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
|
|
33
61
|
[benasher44](https://github.com/benasher44)
|
34
62
|
[#5747](https://github.com/CocoaPods/CocoaPods/pull/5747)
|
35
63
|
|
64
|
+
* Pass the version of CocoaPods to `pod lib create`'s configure script.
|
65
|
+
[orta](https://github.com/orta)
|
66
|
+
[#5787](https://github.com/CocoaPods/CocoaPods/pull/5787)
|
67
|
+
|
36
68
|
##### Bug Fixes
|
37
69
|
|
38
70
|
* Hash scope suffixes if they are over 50 characters to prevent file paths from being too long.
|
@@ -75,7 +75,7 @@ module Pod
|
|
75
75
|
UI.section("Configuring #{@name} template.") do
|
76
76
|
Dir.chdir(@name) do
|
77
77
|
if File.exist?('configure')
|
78
|
-
system('./configure', @name, *@additional_args)
|
78
|
+
system({ 'COCOAPODS_VERSION' => Pod::Version }, './configure', @name, *@additional_args)
|
79
79
|
else
|
80
80
|
UI.warn 'Template does not have a configure file.'
|
81
81
|
end
|
@@ -96,7 +96,7 @@ module Pod
|
|
96
96
|
# specs to the master repo.
|
97
97
|
#
|
98
98
|
def check_if_master_repo
|
99
|
-
remotes =
|
99
|
+
remotes = `git -C "#{repo_dir}" remote -v 2>&1`
|
100
100
|
master_repo_urls = [
|
101
101
|
'git@github.com:CocoaPods/Specs.git',
|
102
102
|
'https://github.com/CocoaPods/Specs.git',
|
@@ -145,7 +145,7 @@ module Pod
|
|
145
145
|
# @return [void]
|
146
146
|
#
|
147
147
|
def check_repo_status
|
148
|
-
clean =
|
148
|
+
clean = `git -C "#{repo_dir}" status --porcelain 2>&1` == ''
|
149
149
|
raise Informative, "The repo `#{@repo}` at #{UI.path repo_dir} is not clean" unless clean
|
150
150
|
end
|
151
151
|
|
@@ -155,7 +155,7 @@ module Pod
|
|
155
155
|
#
|
156
156
|
def update_repo
|
157
157
|
UI.puts "Updating the `#{@repo}' repo\n".yellow
|
158
|
-
|
158
|
+
UI.puts `git -C "#{repo_dir}" pull 2>&1`
|
159
159
|
end
|
160
160
|
|
161
161
|
# Commits the podspecs to the source, which should be a git repo.
|
@@ -189,15 +189,13 @@ module Pod
|
|
189
189
|
FileUtils.cp(spec_file, output_path)
|
190
190
|
end
|
191
191
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
UI.puts " - [No change] #{spec}"
|
200
|
-
end
|
192
|
+
# only commit if modified
|
193
|
+
if repo_git('status', '--porcelain').include?(spec.name)
|
194
|
+
UI.puts " - #{message}"
|
195
|
+
repo_git('add', spec.name)
|
196
|
+
repo_git('commit', '--no-verify', '-m', message)
|
197
|
+
else
|
198
|
+
UI.puts " - [No change] #{spec}"
|
201
199
|
end
|
202
200
|
end
|
203
201
|
end
|
@@ -208,7 +206,7 @@ module Pod
|
|
208
206
|
#
|
209
207
|
def push_repo
|
210
208
|
UI.puts "\nPushing the `#{@repo}' repo\n".yellow
|
211
|
-
|
209
|
+
UI.puts `git -C "#{repo_dir}" push origin master 2>&1`
|
212
210
|
end
|
213
211
|
|
214
212
|
#---------------------------------------------------------------------#
|
@@ -217,6 +215,12 @@ module Pod
|
|
217
215
|
|
218
216
|
# @!group Private helpers
|
219
217
|
|
218
|
+
# @return result of calling the git! with args in repo_dir
|
219
|
+
#
|
220
|
+
def repo_git(*args)
|
221
|
+
git!(['-C', repo_dir] + args)
|
222
|
+
end
|
223
|
+
|
220
224
|
# @return [Pathname] The directory of the repository.
|
221
225
|
#
|
222
226
|
def repo_dir
|
@@ -33,12 +33,14 @@ module Pod
|
|
33
33
|
|
34
34
|
def hash_for_spec(spec)
|
35
35
|
if (license = license_text(spec))
|
36
|
-
{
|
36
|
+
hash = {
|
37
37
|
:Type => 'PSGroupSpecifier',
|
38
38
|
:Title => sanitize_encoding(spec.name),
|
39
39
|
:FooterText => sanitize_encoding(license),
|
40
|
-
:License => sanitize_encoding(spec.license[:type]),
|
41
40
|
}
|
41
|
+
hash[:License] = sanitize_encoding(spec.license[:type]) if spec.license[:type]
|
42
|
+
|
43
|
+
hash
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
@@ -103,9 +103,8 @@ module Pod
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def update_git_repo(show_output = false)
|
106
|
-
ensure_in_repo!
|
107
106
|
Config.instance.with_changes(:verbose => show_output) do
|
108
|
-
git!(
|
107
|
+
git!(['-C', repo, 'pull', '--ff-only'])
|
109
108
|
end
|
110
109
|
rescue
|
111
110
|
UI.warn 'CocoaPods was not able to update the ' \
|
@@ -117,10 +116,9 @@ module Pod
|
|
117
116
|
|
118
117
|
class MasterSource
|
119
118
|
def update_git_repo(show_output = false)
|
120
|
-
ensure_in_repo!
|
121
119
|
if repo.join('.git', 'shallow').file?
|
122
120
|
UI.info "Performing a deep fetch of the `#{name}` specs repo to improve future performance" do
|
123
|
-
git!(
|
121
|
+
git!(['-C', repo, 'fetch', '--unshallow'])
|
124
122
|
end
|
125
123
|
end
|
126
124
|
super
|
data/lib/cocoapods/validator.rb
CHANGED
@@ -718,7 +718,7 @@ module Pod
|
|
718
718
|
#
|
719
719
|
def xcodebuild
|
720
720
|
require 'fourflusher'
|
721
|
-
command =
|
721
|
+
command = ['clean', 'build', '-workspace', File.join(validation_dir, 'App.xcworkspace'), '-scheme', 'App', '-configuration', 'Release']
|
722
722
|
case consumer.platform_name
|
723
723
|
when :ios
|
724
724
|
command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
|
@@ -731,7 +731,7 @@ module Pod
|
|
731
731
|
command += Fourflusher::SimControl.new.destination(:oldest, 'tvOS', deployment_target)
|
732
732
|
end
|
733
733
|
|
734
|
-
output, status =
|
734
|
+
output, status = _xcodebuild(command)
|
735
735
|
|
736
736
|
unless status.success?
|
737
737
|
message = 'Returned an unsuccessful exit code.'
|
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: 1.1.0.
|
4
|
+
version: 1.1.0.rc.1
|
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: 2016-09-
|
14
|
+
date: 2016-09-10 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: 1.1.0.
|
22
|
+
version: 1.1.0.rc.1
|
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: 1.1.0.
|
29
|
+
version: 1.1.0.rc.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: claide
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
requirements:
|
208
208
|
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 1.3.
|
210
|
+
version: 1.3.1
|
211
211
|
- - "<"
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '2.0'
|
@@ -217,7 +217,7 @@ dependencies:
|
|
217
217
|
requirements:
|
218
218
|
- - ">="
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version: 1.3.
|
220
|
+
version: 1.3.1
|
221
221
|
- - "<"
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '2.0'
|