cocoapods-trunk 1.4.0 → 1.4.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 +13 -0
- data/Gemfile.lock +2 -2
- data/lib/cocoapods_trunk.rb +1 -1
- data/lib/pod/command/trunk/push.rb +6 -5
- data/spec/command/trunk/push_spec.rb +12 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f0a2309c1281858012a7c4267a7e51238805a5ccd6c28682d51338d10e54c72
|
4
|
+
data.tar.gz: 4f28e72b7d0aa56b709ece149ab1b2f156311bd85627a8bcece288d1c197e759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d04bc5f939b2bde1fefeae748077aa1871b4d500d36946ad4820830f9ead8102b5d195907f10da465c480e051077a34b961301b5ea3faf4719b575ed7ba2291c
|
7
|
+
data.tar.gz: 0756a6dd8f578984fe6813a501eeb327d904e6fb0f3fba2bcd99ca054f01c6b76b7fbe6232942f47615ba8563e65b5d995785298eab5567f1f8a6617ab288688
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
## 1.4.1 (2019-09-26)
|
2
|
+
|
3
|
+
##### Enhancements
|
4
|
+
|
5
|
+
* None.
|
6
|
+
|
7
|
+
##### Bug Fixes
|
8
|
+
|
9
|
+
* Use a more robust `Trunk` init when pushing.
|
10
|
+
[Igor Makarov](https://github.com/igor-makarov)
|
11
|
+
[#135](https://github.com/CocoaPods/cocoapods-trunk/pull/135)
|
12
|
+
|
13
|
+
|
1
14
|
## 1.4.0 (2019-08-21)
|
2
15
|
|
3
16
|
##### Enhancements
|
data/Gemfile.lock
CHANGED
@@ -19,7 +19,7 @@ GIT
|
|
19
19
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
20
20
|
cocoapods-search (>= 1.0.0, < 2.0)
|
21
21
|
cocoapods-stats (>= 1.0.0, < 2.0)
|
22
|
-
cocoapods-trunk (= 1.4.
|
22
|
+
cocoapods-trunk (= 1.4.1)
|
23
23
|
cocoapods-try (>= 1.1.0, < 2.0)
|
24
24
|
colored2 (~> 3.1)
|
25
25
|
escape (~> 0.0.4)
|
@@ -52,7 +52,7 @@ GIT
|
|
52
52
|
PATH
|
53
53
|
remote: .
|
54
54
|
specs:
|
55
|
-
cocoapods-trunk (1.4.
|
55
|
+
cocoapods-trunk (1.4.1)
|
56
56
|
nap (>= 0.8, < 2.0)
|
57
57
|
netrc (~> 0.11)
|
58
58
|
|
data/lib/cocoapods_trunk.rb
CHANGED
@@ -140,11 +140,12 @@ module Pod
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def update_master_repo
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
143
|
+
# more robust Trunk setup logic:
|
144
|
+
# - if Trunk exists, updates it
|
145
|
+
# - if Trunk doesn't exist, add it and update it
|
146
|
+
#
|
147
|
+
trunk = sources_manager.find_or_create_source_with_url(Pod::TrunkSource::TRUNK_REPO_URL)
|
148
|
+
sources_manager.update(trunk.name)
|
148
149
|
end
|
149
150
|
|
150
151
|
def master_repo_name
|
@@ -239,16 +239,24 @@ module Pod
|
|
239
239
|
end
|
240
240
|
|
241
241
|
it 'updates the master repo when it exists' do
|
242
|
-
Config.instance.sources_manager.stubs(:
|
242
|
+
Config.instance.sources_manager.stubs(:source_with_url).
|
243
|
+
at_most(2).
|
244
|
+
returns(Pod::TrunkSource.new(Pod::TrunkSource::TRUNK_REPO_NAME)).
|
245
|
+
returns(Pod::TrunkSource.new(Pod::TrunkSource::TRUNK_REPO_NAME))
|
246
|
+
|
243
247
|
Config.instance.sources_manager.expects(:update).with(Pod::TrunkSource::TRUNK_REPO_NAME).twice
|
248
|
+
Command::Repo::AddCDN.any_instance.expects(:run).never
|
244
249
|
|
245
250
|
@cmd.run
|
246
251
|
end
|
247
252
|
|
248
253
|
it 'sets up the master repo when it does not exist' do
|
249
|
-
Config.instance.sources_manager.stubs(:
|
250
|
-
|
251
|
-
|
254
|
+
Config.instance.sources_manager.stubs(:source_with_url).
|
255
|
+
at_most(3).
|
256
|
+
returns(nil).
|
257
|
+
returns(Pod::TrunkSource.new(Pod::TrunkSource::TRUNK_REPO_NAME))
|
258
|
+
Config.instance.sources_manager.expects(:update).with(Pod::TrunkSource::TRUNK_REPO_NAME).twice
|
259
|
+
Command::Repo::AddCDN.any_instance.expects(:run)
|
252
260
|
|
253
261
|
@cmd.run
|
254
262
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-trunk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Durán
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nap
|