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 +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/cocoapods_trunk.rb +1 -1
- data/lib/pod/command/trunk/push.rb +6 -0
- data/spec/command/trunk/push_spec.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e53c5f586b4dccfde9ef3025946716946886e6f
|
4
|
+
data.tar.gz: c025ab447cea0c2c6bf72e6954668a0361811fa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c4832e9a1262b5496a28f5e935879fa74e3b064c6ee81c4f06b1d09cb898772aff4806717e8e8b5e96a0a600da235b08d168447821228f1e12d9f9a5e235608
|
7
|
+
data.tar.gz: 44940a0a2ceacc257bdfed963359b90c56b1481773cdfbe8c0a25f35b0d12540804bb0bf517dd2d7fe03b560c3e2bcd75899ff1a694feb98bc6b12058ee83b8d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
data/lib/cocoapods_trunk.rb
CHANGED
@@ -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.
|
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-
|
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.
|
127
|
+
rubygems_version: 2.4.7
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Interact with trunk.cocoapods.org
|