cocoapods-trunk 0.6.0 → 0.6.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
  SHA1:
3
- metadata.gz: 36f74d361a7cdcad64c393e2305778d40ae0a811
4
- data.tar.gz: abfedde318572e6c50d8500cf150031f3f04f344
3
+ metadata.gz: 4e53c5f586b4dccfde9ef3025946716946886e6f
4
+ data.tar.gz: c025ab447cea0c2c6bf72e6954668a0361811fa7
5
5
  SHA512:
6
- metadata.gz: 59f1fd677ff13ef071f69b93b3ba15936801418bda132ff26afb6cf79fcd523b3449225f770414c71f28594cb14313f89e0d893012a985c1980df947efc17f6d
7
- data.tar.gz: c1c6199f2b3a0986feeb3fc76d86187ff93f12d28cec25e4aa65d788f4163ea4a4c3a5c7d019481b5d9c9250619e9b4483cd6f7ef230ec479d32684a5624b382
6
+ metadata.gz: 3c4832e9a1262b5496a28f5e935879fa74e3b064c6ee81c4f06b1d09cb898772aff4806717e8e8b5e96a0a600da235b08d168447821228f1e12d9f9a5e235608
7
+ data.tar.gz: 44940a0a2ceacc257bdfed963359b90c56b1481773cdfbe8c0a25f35b0d12540804bb0bf517dd2d7fe03b560c3e2bcd75899ff1a694feb98bc6b12058ee83b8d
@@ -1,3 +1,13 @@
1
+ ## 0.6.1
2
+
3
+ ##### Enhancements
4
+
5
+ * The `master` specs repo is updated before and after pushing a new spec to
6
+ trunk.
7
+ [Samuel Giddins](https://github.com/segiddins)
8
+ [#43](https://github.com/CocoaPods/cocoapods-trunk/issues/43)
9
+
10
+
1
11
  ## 0.6.0
2
12
 
3
13
  ##### Enhancements
@@ -38,7 +38,7 @@ GIT
38
38
  PATH
39
39
  remote: .
40
40
  specs:
41
- cocoapods-trunk (0.6.0)
41
+ cocoapods-trunk (0.6.1)
42
42
  nap (>= 0.8)
43
43
  netrc (= 0.7.8)
44
44
 
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -55,10 +55,12 @@ module Pod
55
55
  end
56
56
 
57
57
  def run
58
+ update_master_repo
58
59
  validate_podspec
59
60
  response = request_path(:post, 'pods', spec.to_json, auth_headers)
60
61
  url = response.headers['location'].first
61
62
  json = json(request_url(:get, url, default_headers))
63
+ update_master_repo
62
64
 
63
65
  # Using UI.labeled here is dangerous, as it wraps the URL and indents
64
66
  # it, which breaks the URL when you try to copy-paste it.
@@ -111,6 +113,10 @@ module Pod
111
113
  raise Informative, 'The podspec does not validate.'
112
114
  end
113
115
  end
116
+
117
+ def update_master_repo
118
+ SourcesManager.update('master')
119
+ end
114
120
  end
115
121
  end
116
122
  end
@@ -3,6 +3,10 @@ require 'tmpdir'
3
3
 
4
4
  module Pod
5
5
  describe Command::Trunk::Push do
6
+ before do
7
+ Command::Trunk::Push.any_instance.stubs(:update_master_repo)
8
+ end
9
+
6
10
  describe 'CLAide' do
7
11
  it 'registers it self' do
8
12
  Command.parse(%w( trunk push )).should.be.instance_of Command::Trunk::Push
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: 0.6.0
4
+ version: 0.6.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: 2015-03-11 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nap
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.0.14
127
+ rubygems_version: 2.4.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Interact with trunk.cocoapods.org