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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 744d02fa3ed37e9d6c313dd262aa67fcca2137965e30a381cd4af0004f742c93
4
- data.tar.gz: 836f46995a910739e85f6a226cc877f55ff6e8ad69049dbdaeff15dd0348a3aa
3
+ metadata.gz: 7f0a2309c1281858012a7c4267a7e51238805a5ccd6c28682d51338d10e54c72
4
+ data.tar.gz: 4f28e72b7d0aa56b709ece149ab1b2f156311bd85627a8bcece288d1c197e759
5
5
  SHA512:
6
- metadata.gz: 8edb2b0d1896106606bb16c2609a983be66a4ca09440aabd6994382b9f693bb39b3bb5b55ad41005307221de71cceb89c7a3e7eee68666958aec047321264ab3
7
- data.tar.gz: 2d0db6f6be1b910a1ab9ce85978dca81821dd784eab7e79bcf27c7cbae9431dbe9b72ff97459397b0ac45deca55ef5acf75797474e66428e0057745d491a5329
6
+ metadata.gz: d04bc5f939b2bde1fefeae748077aa1871b4d500d36946ad4820830f9ead8102b5d195907f10da465c480e051077a34b961301b5ea3faf4719b575ed7ba2291c
7
+ data.tar.gz: 0756a6dd8f578984fe6813a501eeb327d904e6fb0f3fba2bcd99ca054f01c6b76b7fbe6232942f47615ba8563e65b5d995785298eab5567f1f8a6617ab288688
@@ -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
@@ -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.0)
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.0)
55
+ cocoapods-trunk (1.4.1)
56
56
  nap (>= 0.8, < 2.0)
57
57
  netrc (~> 0.11)
58
58
 
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.4.1'.freeze
3
3
  end
@@ -140,11 +140,12 @@ module Pod
140
140
  end
141
141
 
142
142
  def update_master_repo
143
- if sources_manager.master_repo_functional?
144
- sources_manager.update(master_repo_name)
145
- else
146
- Setup.invoke
147
- end
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(:master_repo_functional?).returns(true)
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(:master_repo_functional?).returns(false)
250
- Config.instance.sources_manager.expects(:update).never
251
- Command::Setup.any_instance.expects(:run).twice
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.0
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-08-21 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nap