cocoapods-trunk 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_cocoapods.yml +11 -1
- data/CHANGELOG.md +20 -10
- data/Gemfile.lock +50 -47
- data/lib/cocoapods_trunk.rb +1 -1
- data/lib/pod/command/trunk.rb +1 -1
- data/lib/pod/command/trunk/add_owner.rb +2 -1
- data/lib/pod/command/trunk/push.rb +4 -3
- data/lib/pod/command/trunk/register.rb +2 -1
- data/lib/pod/command/trunk/remove_owner.rb +2 -1
- data/spec/command/trunk/me_spec.rb +2 -2
- data/spec/command/trunk/push_spec.rb +14 -6
- data/spec/command/trunk_spec.rb +1 -1
- 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: 2597a15a9b09bf1dccef5d9b2ce3bfdc59527947
|
|
4
|
+
data.tar.gz: 5ef371fc55d2b3069b173e38d77a05a82f0a02ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95ab45459ffd4ccfd274a879226f0323e1c34052f16199bdf2a4f481f6fbf8d8ef69b3a334c9bd85e7277dc47a202a63d739fae5c3d2ebdfb9c0e5a1291512bd
|
|
7
|
+
data.tar.gz: 46f84d1da4af48600116b1a1baa3ab9507e069916820ef5d0e448beebe5fbded8066f78d72eeffc3f1cf3f76e4d2847fe2636c2de23bbe629e7471ca54a1617e
|
data/.rubocop_cocoapods.yml
CHANGED
|
@@ -5,6 +5,7 @@ AllCops:
|
|
|
5
5
|
- ./*.gemspec
|
|
6
6
|
Exclude:
|
|
7
7
|
- ./spec/fixtures/**/*
|
|
8
|
+
- ./vendor/bundle/**/*
|
|
8
9
|
|
|
9
10
|
# At the moment not ready to be used
|
|
10
11
|
# https://github.com/bbatsov/rubocop/issues/947
|
|
@@ -58,6 +59,16 @@ Next:
|
|
|
58
59
|
Metrics/ClassLength:
|
|
59
60
|
Enabled: false
|
|
60
61
|
|
|
62
|
+
# Arbitrary max lengths for modules simply do not work and enabling this will
|
|
63
|
+
# lead to a never ending stream of annoyance and changes.
|
|
64
|
+
Metrics/ModuleLength:
|
|
65
|
+
Enabled: false
|
|
66
|
+
|
|
67
|
+
# Arbitrary max lengths for methods simply do not work and enabling this will
|
|
68
|
+
# lead to a never ending stream of annoyance and changes.
|
|
69
|
+
Metrics/MethodLength:
|
|
70
|
+
Enabled: false
|
|
71
|
+
|
|
61
72
|
# No enforced convention here.
|
|
62
73
|
Metrics/BlockNesting:
|
|
63
74
|
Enabled: false
|
|
@@ -108,4 +119,3 @@ ClassAndModuleChildren:
|
|
|
108
119
|
UselessComparison:
|
|
109
120
|
Exclude:
|
|
110
121
|
- spec/**/*
|
|
111
|
-
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
## 0.6.
|
|
1
|
+
## 0.6.2
|
|
2
|
+
|
|
3
|
+
##### Enhancements
|
|
4
|
+
|
|
5
|
+
* The `--allow-warnings` flag to `pod trunk push` is now propagated to the trunk
|
|
6
|
+
server.
|
|
7
|
+
[Samuel Giddins](https://github.com/segiddins)
|
|
8
|
+
[CocoaPods#3855](https://github.com/CocoaPods/CocoaPods/issues/3855)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 0.6.1 (2015-05-27)
|
|
2
12
|
|
|
3
13
|
##### Enhancements
|
|
4
14
|
|
|
@@ -8,7 +18,7 @@
|
|
|
8
18
|
[#43](https://github.com/CocoaPods/cocoapods-trunk/issues/43)
|
|
9
19
|
|
|
10
20
|
|
|
11
|
-
## 0.6.0
|
|
21
|
+
## 0.6.0 (2015-03-11)
|
|
12
22
|
|
|
13
23
|
##### Enhancements
|
|
14
24
|
|
|
@@ -18,7 +28,7 @@
|
|
|
18
28
|
[CocoaPods#3224](https://github.com/CocoaPods/CocoaPods/issues/3224)
|
|
19
29
|
|
|
20
30
|
|
|
21
|
-
## 0.5.1
|
|
31
|
+
## 0.5.1 (2015-02-25)
|
|
22
32
|
|
|
23
33
|
##### Enhancements
|
|
24
34
|
|
|
@@ -35,7 +45,7 @@
|
|
|
35
45
|
[#39](https://github.com/CocoaPods/cocoapods-trunk/issues/39)
|
|
36
46
|
|
|
37
47
|
|
|
38
|
-
## 0.5.0
|
|
48
|
+
## 0.5.0 (2014-12-25)
|
|
39
49
|
|
|
40
50
|
##### Enhancements
|
|
41
51
|
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
[#15](https://github.com/CocoaPods/cocoapods-trunk/issues/15)
|
|
50
60
|
|
|
51
61
|
|
|
52
|
-
## 0.4.1
|
|
62
|
+
## 0.4.1 (2014-11-19)
|
|
53
63
|
|
|
54
64
|
##### Enhancements
|
|
55
65
|
|
|
@@ -65,7 +75,7 @@
|
|
|
65
75
|
[Cocoapods#2831](https://github.com/CocoaPods/CocoaPods/pull/2831)
|
|
66
76
|
|
|
67
77
|
|
|
68
|
-
## 0.4.0
|
|
78
|
+
## 0.4.0 (2014-11-06)
|
|
69
79
|
|
|
70
80
|
##### Bug Fixes
|
|
71
81
|
|
|
@@ -73,7 +83,7 @@
|
|
|
73
83
|
[Eloy Durán](https://github.com/alloy)
|
|
74
84
|
[CocoaPods#2773](https://github.com/CocoaPods/CocoaPods/issues/2773)
|
|
75
85
|
|
|
76
|
-
## 0.3.1
|
|
86
|
+
## 0.3.1 (2014-10-15)
|
|
77
87
|
|
|
78
88
|
##### Bug Fixes
|
|
79
89
|
|
|
@@ -82,7 +92,7 @@
|
|
|
82
92
|
[CocoaPods#2674](https://github.com/CocoaPods/CocoaPods/issues/2674)
|
|
83
93
|
|
|
84
94
|
|
|
85
|
-
## 0.3.0
|
|
95
|
+
## 0.3.0 (2014-10-07)
|
|
86
96
|
|
|
87
97
|
##### Enhancements
|
|
88
98
|
|
|
@@ -98,7 +108,7 @@
|
|
|
98
108
|
[#26](https://github.com/CocoaPods/cocoapods-trunk/issues/26)
|
|
99
109
|
|
|
100
110
|
|
|
101
|
-
## 0.2.0
|
|
111
|
+
## 0.2.0 (2014-09-11)
|
|
102
112
|
|
|
103
113
|
##### Enhancements
|
|
104
114
|
|
|
@@ -109,6 +119,6 @@
|
|
|
109
119
|
[Olivier Halligon](https://github.com/AliSoftware)
|
|
110
120
|
|
|
111
121
|
|
|
112
|
-
## 0.1.0
|
|
122
|
+
## 0.1.0 (2014-05-19)
|
|
113
123
|
|
|
114
124
|
* Initial release.
|
data/Gemfile.lock
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
GIT
|
|
2
2
|
remote: https://github.com/CocoaPods/CLAide.git
|
|
3
|
-
revision:
|
|
3
|
+
revision: 4e7b02d849c3e82dff7c1cdacf33df45516acaf3
|
|
4
4
|
branch: master
|
|
5
5
|
specs:
|
|
6
|
-
claide (0.
|
|
6
|
+
claide (0.9.1)
|
|
7
7
|
|
|
8
8
|
GIT
|
|
9
9
|
remote: https://github.com/CocoaPods/CocoaPods.git
|
|
10
|
-
revision:
|
|
10
|
+
revision: 0c9f24807f53a93bff0628f799ade47a1a4f7f1c
|
|
11
11
|
branch: master
|
|
12
12
|
specs:
|
|
13
|
-
cocoapods (0.
|
|
13
|
+
cocoapods (0.38.2)
|
|
14
14
|
activesupport (>= 3.2.15)
|
|
15
|
-
claide (~> 0.
|
|
16
|
-
cocoapods-core (= 0.
|
|
17
|
-
cocoapods-downloader (~> 0.
|
|
18
|
-
cocoapods-plugins (~> 0.4.
|
|
19
|
-
cocoapods-
|
|
20
|
-
cocoapods-
|
|
15
|
+
claide (~> 0.9.1)
|
|
16
|
+
cocoapods-core (= 0.38.2)
|
|
17
|
+
cocoapods-downloader (~> 0.9.1)
|
|
18
|
+
cocoapods-plugins (~> 0.4.2)
|
|
19
|
+
cocoapods-stats (~> 0.5.3)
|
|
20
|
+
cocoapods-trunk (~> 0.6.1)
|
|
21
|
+
cocoapods-try (~> 0.4.5)
|
|
21
22
|
colored (~> 1.2)
|
|
22
23
|
escape (~> 0.0.4)
|
|
23
|
-
molinillo (~> 0.
|
|
24
|
+
molinillo (~> 0.3.1)
|
|
24
25
|
nap (~> 0.8)
|
|
25
|
-
|
|
26
|
-
xcodeproj (~> 0.23.0)
|
|
26
|
+
xcodeproj (~> 0.26.3)
|
|
27
27
|
|
|
28
28
|
GIT
|
|
29
29
|
remote: https://github.com/CocoaPods/Core.git
|
|
30
|
-
revision:
|
|
30
|
+
revision: 32917a36cbf71117d5da1c8f785b65d108c6f815
|
|
31
31
|
branch: master
|
|
32
32
|
specs:
|
|
33
|
-
cocoapods-core (0.
|
|
33
|
+
cocoapods-core (0.38.2)
|
|
34
34
|
activesupport (>= 3.2.15)
|
|
35
35
|
fuzzy_match (~> 2.0.4)
|
|
36
36
|
nap (~> 0.8.0)
|
|
@@ -38,36 +38,38 @@ GIT
|
|
|
38
38
|
PATH
|
|
39
39
|
remote: .
|
|
40
40
|
specs:
|
|
41
|
-
cocoapods-trunk (0.6.
|
|
41
|
+
cocoapods-trunk (0.6.2)
|
|
42
42
|
nap (>= 0.8)
|
|
43
43
|
netrc (= 0.7.8)
|
|
44
44
|
|
|
45
45
|
GEM
|
|
46
46
|
remote: https://rubygems.org/
|
|
47
47
|
specs:
|
|
48
|
-
activesupport (4.2.
|
|
48
|
+
activesupport (4.2.4)
|
|
49
49
|
i18n (~> 0.7)
|
|
50
50
|
json (~> 1.7, >= 1.7.7)
|
|
51
51
|
minitest (~> 5.1)
|
|
52
52
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
53
53
|
tzinfo (~> 1.1)
|
|
54
|
-
addressable (2.3.
|
|
55
|
-
ast (2.
|
|
56
|
-
astrolabe (1.3.
|
|
57
|
-
parser (
|
|
54
|
+
addressable (2.3.8)
|
|
55
|
+
ast (2.1.0)
|
|
56
|
+
astrolabe (1.3.1)
|
|
57
|
+
parser (~> 2.2)
|
|
58
58
|
bacon (1.2.0)
|
|
59
|
-
cocoapods-downloader (0.
|
|
60
|
-
cocoapods-plugins (0.4.
|
|
59
|
+
cocoapods-downloader (0.9.1)
|
|
60
|
+
cocoapods-plugins (0.4.2)
|
|
61
61
|
nap
|
|
62
|
-
cocoapods-
|
|
63
|
-
|
|
62
|
+
cocoapods-stats (0.5.3)
|
|
63
|
+
nap (~> 0.8)
|
|
64
|
+
cocoapods-try (0.4.5)
|
|
65
|
+
codeclimate-test-reporter (0.4.7)
|
|
64
66
|
simplecov (>= 0.7.1, < 1.0.0)
|
|
65
67
|
colored (1.2)
|
|
66
68
|
crack (0.4.2)
|
|
67
69
|
safe_yaml (~> 1.0.0)
|
|
68
70
|
docile (1.1.5)
|
|
69
71
|
escape (0.0.4)
|
|
70
|
-
ffi (1.9.
|
|
72
|
+
ffi (1.9.10)
|
|
71
73
|
fuzzy_match (2.0.4)
|
|
72
74
|
i18n (0.7.0)
|
|
73
75
|
json (1.7.7)
|
|
@@ -79,52 +81,50 @@ GEM
|
|
|
79
81
|
rb-inotify (>= 0.9)
|
|
80
82
|
rb-kqueue (>= 0.2)
|
|
81
83
|
metaclass (0.0.4)
|
|
82
|
-
minitest (5.
|
|
84
|
+
minitest (5.8.0)
|
|
83
85
|
mocha (1.1.0)
|
|
84
86
|
metaclass (~> 0.0.1)
|
|
85
87
|
mocha-on-bacon (0.2.2)
|
|
86
88
|
mocha (>= 0.13.0)
|
|
87
|
-
molinillo (0.
|
|
88
|
-
multi_json (1.
|
|
89
|
+
molinillo (0.3.1)
|
|
90
|
+
multi_json (1.11.2)
|
|
89
91
|
nap (0.8.0)
|
|
90
92
|
netrc (0.7.8)
|
|
91
93
|
notify (0.5.2)
|
|
92
|
-
|
|
93
|
-
parser (2.2.0.pre.8)
|
|
94
|
+
parser (2.2.2.6)
|
|
94
95
|
ast (>= 1.1, < 3.0)
|
|
95
|
-
|
|
96
|
-
powerpack (0.0.9)
|
|
96
|
+
powerpack (0.1.1)
|
|
97
97
|
prettybacon (0.0.2)
|
|
98
98
|
bacon (~> 1.2)
|
|
99
99
|
rainbow (2.0.0)
|
|
100
|
-
rake (10.
|
|
101
|
-
rb-fsevent (0.9.
|
|
100
|
+
rake (10.4.2)
|
|
101
|
+
rb-fsevent (0.9.5)
|
|
102
102
|
rb-inotify (0.9.5)
|
|
103
103
|
ffi (>= 0.5.0)
|
|
104
|
-
rb-kqueue (0.2.
|
|
104
|
+
rb-kqueue (0.2.4)
|
|
105
105
|
ffi (>= 0.5.0)
|
|
106
|
-
rubocop (0.
|
|
106
|
+
rubocop (0.33.0)
|
|
107
107
|
astrolabe (~> 1.3)
|
|
108
|
-
parser (>= 2.2.
|
|
109
|
-
powerpack (~> 0.
|
|
108
|
+
parser (>= 2.2.2.5, < 3.0)
|
|
109
|
+
powerpack (~> 0.1)
|
|
110
110
|
rainbow (>= 1.99.1, < 3.0)
|
|
111
111
|
ruby-progressbar (~> 1.4)
|
|
112
|
-
ruby-progressbar (1.7.
|
|
112
|
+
ruby-progressbar (1.7.5)
|
|
113
113
|
safe_yaml (1.0.4)
|
|
114
|
-
simplecov (0.9.
|
|
114
|
+
simplecov (0.9.2)
|
|
115
115
|
docile (~> 1.1.0)
|
|
116
116
|
multi_json (~> 1.0)
|
|
117
|
-
simplecov-html (~> 0.
|
|
118
|
-
simplecov-html (0.
|
|
119
|
-
|
|
120
|
-
thread_safe (0.3.4)
|
|
117
|
+
simplecov-html (~> 0.9.0)
|
|
118
|
+
simplecov-html (0.9.0)
|
|
119
|
+
thread_safe (0.3.5)
|
|
121
120
|
tzinfo (1.2.2)
|
|
122
121
|
thread_safe (~> 0.1)
|
|
123
|
-
webmock (1.
|
|
122
|
+
webmock (1.21.0)
|
|
124
123
|
addressable (>= 2.3.6)
|
|
125
124
|
crack (>= 0.3.2)
|
|
126
|
-
xcodeproj (0.
|
|
125
|
+
xcodeproj (0.26.3)
|
|
127
126
|
activesupport (>= 3)
|
|
127
|
+
claide (~> 0.9.1)
|
|
128
128
|
colored (~> 1.2)
|
|
129
129
|
|
|
130
130
|
PLATFORMS
|
|
@@ -146,3 +146,6 @@ DEPENDENCIES
|
|
|
146
146
|
rake
|
|
147
147
|
rubocop
|
|
148
148
|
webmock
|
|
149
|
+
|
|
150
|
+
BUNDLED WITH
|
|
151
|
+
1.10.6
|
data/lib/cocoapods_trunk.rb
CHANGED
data/lib/pod/command/trunk.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Pod
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def initialize(argv)
|
|
36
|
-
@allow_warnings = argv.flag?('allow-warnings')
|
|
36
|
+
@allow_warnings = argv.flag?('allow-warnings', false)
|
|
37
37
|
@use_frameworks = !argv.flag?('use-libraries')
|
|
38
38
|
@path = argv.shift_argument || '.'
|
|
39
39
|
find_podspec_file if File.directory?(@path)
|
|
@@ -57,14 +57,15 @@ module Pod
|
|
|
57
57
|
def run
|
|
58
58
|
update_master_repo
|
|
59
59
|
validate_podspec
|
|
60
|
-
response = request_path(:post,
|
|
60
|
+
response = request_path(:post, "pods?allow_warnings=#{@allow_warnings}",
|
|
61
|
+
spec.to_json, auth_headers)
|
|
61
62
|
url = response.headers['location'].first
|
|
62
63
|
json = json(request_url(:get, url, default_headers))
|
|
63
64
|
update_master_repo
|
|
64
65
|
|
|
65
66
|
# Using UI.labeled here is dangerous, as it wraps the URL and indents
|
|
66
67
|
# it, which breaks the URL when you try to copy-paste it.
|
|
67
|
-
|
|
68
|
+
UI.puts " - Data URL: #{json['data_url']}"
|
|
68
69
|
|
|
69
70
|
messages = json['messages'].map do |entry|
|
|
70
71
|
at, message = entry.to_a.flatten
|
|
@@ -4,13 +4,13 @@ module Pod
|
|
|
4
4
|
describe Command::Trunk::Me do
|
|
5
5
|
describe 'CLAide' do
|
|
6
6
|
it 'registers it self' do
|
|
7
|
-
Command.parse(%w(
|
|
7
|
+
Command.parse(%w( trunk me )).should.be.instance_of Command::Trunk::Me
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
it "should error if we don't have a token" do
|
|
12
12
|
Netrc.any_instance.stubs(:[]).returns(nil)
|
|
13
|
-
command = Command.parse(%w(
|
|
13
|
+
command = Command.parse(%w( trunk me ))
|
|
14
14
|
lambda { command.validate! }.should.raise CLAide::Help
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -9,7 +9,7 @@ module Pod
|
|
|
9
9
|
|
|
10
10
|
describe 'CLAide' do
|
|
11
11
|
it 'registers it self' do
|
|
12
|
-
Command.parse(%w(
|
|
12
|
+
Command.parse(%w( trunk push )).should.be.instance_of Command::Trunk::Push
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ module Pod
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it 'should error when the trunk service returns an error' do
|
|
24
|
-
url = 'https://trunk.cocoapods.org/api/v1/pods'
|
|
24
|
+
url = 'https://trunk.cocoapods.org/api/v1/pods?allow_warnings=false'
|
|
25
25
|
WebMock::API.stub_request(:post, url).to_return(:status => 422, :body => {
|
|
26
26
|
'error' => 'The Pod Specification did not pass validation.',
|
|
27
27
|
'data' => {
|
|
@@ -100,16 +100,24 @@ module Pod
|
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
it 'validates specs as frameworks by default' do
|
|
103
|
-
Validator.any_instance.expects(:podfile_from_spec).
|
|
104
|
-
|
|
103
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
104
|
+
with(:ios, nil, true).once.returns(Podfile.new)
|
|
105
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
106
|
+
with(:osx, nil, true).once.returns(Podfile.new)
|
|
107
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
108
|
+
with(:watchos, nil, true).once.returns(Podfile.new)
|
|
105
109
|
|
|
106
110
|
cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec))
|
|
107
111
|
cmd.send(:validate_podspec)
|
|
108
112
|
end
|
|
109
113
|
|
|
110
114
|
it 'validates specs as libraries if requested' do
|
|
111
|
-
Validator.any_instance.expects(:podfile_from_spec).
|
|
112
|
-
|
|
115
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
116
|
+
with(:ios, nil, false).once.returns(Podfile.new)
|
|
117
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
118
|
+
with(:osx, nil, false).once.returns(Podfile.new)
|
|
119
|
+
Validator.any_instance.expects(:podfile_from_spec).
|
|
120
|
+
with(:watchos, nil, false).once.returns(Podfile.new)
|
|
113
121
|
|
|
114
122
|
cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --use-libraries))
|
|
115
123
|
cmd.send(:validate_podspec)
|
data/spec/command/trunk_spec.rb
CHANGED
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.2
|
|
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-08-26 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.4.
|
|
127
|
+
rubygems_version: 2.4.8
|
|
128
128
|
signing_key:
|
|
129
129
|
specification_version: 4
|
|
130
130
|
summary: Interact with trunk.cocoapods.org
|