cocoapods-trunk 1.2.0 → 1.3.0

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: da8782fab1e5bcae243169d0622823796bde8b61
4
- data.tar.gz: c1e8babee9edcbde68e8a6ef0c2bf6b0113f4a3e
3
+ metadata.gz: 061faffd0f2838d1bca42f9f05673bdc2eed7c72
4
+ data.tar.gz: 443217af6db153ddd1bf0fc2fb5fb44f8abfe480
5
5
  SHA512:
6
- metadata.gz: 0636ab94fd3827229715520ad02c0b73fd8b02b1c876036a06b430701a42b4c24b83dede6ac453036d87a4e68fb441bb4812b050a1f318f95498871dff576544
7
- data.tar.gz: 7bdf4ad6963ffe2f831724f0d76cf3e8f4c4e5cb0c5da040a5482e879e5cf6db1b02b0f0c01d74fa39e27536ad1e06acc113e925dd3eec40c3885c5166a9fd0e
6
+ metadata.gz: b2e516f5ad606ad693f12d9cbf5c906627dc004762d7be1ff9066f1bddeb1acdf08da3142b4a1fe1d4ad59278a5101d6283d1034e210dfdc2528d886f4702e0d
7
+ data.tar.gz: 8b4dd0f1a27df89be0132dc8037815592061aa226e276e2c9dcd12b4f08777261294d04263631b852dd0023ec908825770a9169e2e067cf5323b48622a6fede6
@@ -1,13 +1,10 @@
1
- # Sets Travis to run the Ruby specs on OS X machines to be as close as possible
2
- # to the user environment.
3
- #
4
- osx_image: xcode7.3
5
- language: objective-c
1
+ dist: trusty
2
+ language: ruby
6
3
  cache: bundler
7
4
  rvm:
8
- - system
9
- - 2.0.0-p451
10
-
5
+ - 2.0.0-p647
6
+ - 2.3.4
7
+ - 2.4.1
11
8
  addons:
12
9
  code_climate:
13
10
  repo_token: 937468c2cbb0d7c0546b62d0fcbcba8a2a8b82714a64a52ffd0b951e71df626d
@@ -15,7 +12,11 @@ addons:
15
12
  before_install:
16
13
  - export GEM_HOME=$HOME/.gem
17
14
  - export PATH=$GEM_HOME/bin:$PATH
18
- - sudo gem install bundler
15
+ # There is a bug in travis. When using system ruby, bundler is not
16
+ # installed and causes the default install action to fail.
17
+ - if [ "$TRAVIS_RUBY_VERSION" = "system" ]; then sudo gem install "bundler:~> 1.13"; else gem install "bundler:~> 1.13"; fi
18
+ # RubyGems 2.0.14 isn't a fun time on 2.0.0p451
19
+ - if [ "$TRAVIS_RUBY_VERSION" = "system" ]; then sudo gem update --system; fi
19
20
 
20
21
  install:
21
22
  - bundle install --without=documentation
@@ -1,3 +1,24 @@
1
+ ## 1.3.0 (2017-10-02)
2
+
3
+ ##### Enhancements
4
+
5
+ * Add skip test option to trunk push
6
+ [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
7
+ [#93](https://github.com/CocoaPods/cocoapods-trunk/pull/93)
8
+
9
+ * Loosen netrc requirement
10
+ [jasl](https://github.com/jasl)
11
+ [#93](https://github.com/CocoaPods/cocoapods-trunk/pull/95)
12
+
13
+ * Update development dependencies to support MRI 2.3+
14
+ [jasl](https://github.com/jasl)
15
+ [#93](https://github.com/CocoaPods/cocoapods-trunk/pull/95)
16
+
17
+ ##### Bug Fixes
18
+
19
+ * None.
20
+
21
+
1
22
  ## 1.2.0 (2017-04-11)
2
23
 
3
24
  ##### Enhancements
@@ -1,42 +1,42 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CLAide.git
3
- revision: 8a8f26fb5d6e2b0d604bdb3c2cca14fab4f80adc
3
+ revision: 7f26d3d016efeea728ed0e608357e910d4c6e8f9
4
4
  branch: master
5
5
  specs:
6
- claide (1.0.1)
6
+ claide (1.0.2)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: cae98c5386f7d80d6fe065c3f081ce130628151a
10
+ revision: a75a2e85e262c3c38d1a2fa9e0f5de01cc6a3368
11
11
  branch: master
12
12
  specs:
13
- cocoapods (1.2.0)
13
+ cocoapods (1.3.1)
14
14
  activesupport (>= 4.0.2, < 5)
15
- claide (>= 1.0.1, < 2.0)
16
- cocoapods-core (= 1.2.0)
15
+ claide (>= 1.0.2, < 2.0)
16
+ cocoapods-core (= 1.3.1)
17
17
  cocoapods-deintegrate (>= 1.0.1, < 2.0)
18
18
  cocoapods-downloader (>= 1.1.3, < 2.0)
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.2.0)
22
+ cocoapods-trunk (= 1.3.0)
23
23
  cocoapods-try (>= 1.1.0, < 2.0)
24
- colored (~> 1.2)
24
+ colored2 (~> 3.1)
25
25
  escape (~> 0.0.4)
26
26
  fourflusher (~> 2.0.1)
27
27
  gh_inspector (~> 1.0)
28
- molinillo (~> 0.5.5)
28
+ molinillo (~> 0.6.1)
29
29
  nap (~> 1.0)
30
- ruby-macho (~> 0.2.5)
31
- xcodeproj (>= 1.4.1, < 2.0)
30
+ ruby-macho (~> 1.1)
31
+ xcodeproj (>= 1.5.1, < 2.0)
32
32
 
33
33
  GIT
34
34
  remote: https://github.com/CocoaPods/Core.git
35
- revision: da067319634495b132b8f0403867e5cf5a2e2485
35
+ revision: 77f5b2081bf347db73e5978737633e1943dc5f29
36
36
  branch: master
37
37
  specs:
38
- cocoapods-core (1.2.0)
39
- activesupport (>= 4.0.2, < 5)
38
+ cocoapods-core (1.3.1)
39
+ activesupport (>= 4.0.2, < 6)
40
40
  fuzzy_match (~> 2.0.4)
41
41
  nap (~> 1.0)
42
42
 
@@ -50,21 +50,21 @@ GIT
50
50
  PATH
51
51
  remote: .
52
52
  specs:
53
- cocoapods-trunk (1.2.0)
53
+ cocoapods-trunk (1.3.0)
54
54
  nap (>= 0.8, < 2.0)
55
- netrc (= 0.7.8)
55
+ netrc (~> 0.11)
56
56
 
57
57
  GEM
58
58
  remote: https://rubygems.org/
59
59
  specs:
60
60
  CFPropertyList (2.3.5)
61
- activesupport (4.2.7.1)
61
+ activesupport (4.2.9)
62
62
  i18n (~> 0.7)
63
- json (~> 1.7, >= 1.7.7)
64
63
  minitest (~> 5.1)
65
64
  thread_safe (~> 0.3, >= 0.3.4)
66
65
  tzinfo (~> 1.1)
67
- addressable (2.3.8)
66
+ addressable (2.5.1)
67
+ public_suffix (~> 2.0, >= 2.0.2)
68
68
  ast (2.2.0)
69
69
  bacon (1.2.0)
70
70
  cocoapods-deintegrate (1.0.1)
@@ -76,8 +76,8 @@ GEM
76
76
  cocoapods-try (1.1.0)
77
77
  codeclimate-test-reporter (0.4.7)
78
78
  simplecov (>= 0.7.1, < 1.0.0)
79
- colored (1.2)
80
- crack (0.4.2)
79
+ colored2 (3.1.2)
80
+ crack (0.4.3)
81
81
  safe_yaml (~> 1.0.0)
82
82
  docile (1.1.5)
83
83
  escape (0.0.4)
@@ -85,7 +85,8 @@ GEM
85
85
  fourflusher (2.0.1)
86
86
  fuzzy_match (2.0.4)
87
87
  gh_inspector (1.0.3)
88
- i18n (0.7.0)
88
+ hashdiff (0.3.4)
89
+ i18n (0.8.6)
89
90
  kicker (3.0.0)
90
91
  listen (~> 1.3.0)
91
92
  notify (~> 0.5.2)
@@ -94,22 +95,23 @@ GEM
94
95
  rb-inotify (>= 0.9)
95
96
  rb-kqueue (>= 0.2)
96
97
  metaclass (0.0.4)
97
- minitest (5.10.1)
98
+ minitest (5.10.3)
98
99
  mocha (1.1.0)
99
100
  metaclass (~> 0.0.1)
100
101
  mocha-on-bacon (0.2.2)
101
102
  mocha (>= 0.13.0)
102
- molinillo (0.5.5)
103
+ molinillo (0.6.3)
103
104
  multi_json (1.11.2)
104
105
  nanaimo (0.2.3)
105
106
  nap (1.1.0)
106
- netrc (0.7.8)
107
+ netrc (0.11.0)
107
108
  notify (0.5.2)
108
109
  parser (2.3.0.7)
109
110
  ast (~> 2.2)
110
111
  powerpack (0.1.1)
111
112
  prettybacon (0.0.2)
112
113
  bacon (~> 1.2)
114
+ public_suffix (2.0.5)
113
115
  rainbow (2.1.0)
114
116
  rake (10.4.2)
115
117
  rb-fsevent (0.9.5)
@@ -123,7 +125,7 @@ GEM
123
125
  rainbow (>= 1.99.1, < 3.0)
124
126
  ruby-progressbar (~> 1.7)
125
127
  unicode-display_width (~> 1.0, >= 1.0.1)
126
- ruby-macho (0.2.6)
128
+ ruby-macho (1.1.0)
127
129
  ruby-progressbar (1.7.5)
128
130
  safe_yaml (1.0.4)
129
131
  simplecov (0.9.2)
@@ -131,18 +133,18 @@ GEM
131
133
  multi_json (~> 1.0)
132
134
  simplecov-html (~> 0.9.0)
133
135
  simplecov-html (0.9.0)
134
- thread_safe (0.3.5)
135
- tzinfo (1.2.2)
136
+ thread_safe (0.3.6)
137
+ tzinfo (1.2.3)
136
138
  thread_safe (~> 0.1)
137
139
  unicode-display_width (1.0.3)
138
- webmock (1.21.0)
140
+ webmock (3.0.1)
139
141
  addressable (>= 2.3.6)
140
142
  crack (>= 0.3.2)
141
- xcodeproj (1.4.2)
143
+ hashdiff
144
+ xcodeproj (1.5.1)
142
145
  CFPropertyList (~> 2.3.3)
143
- activesupport (>= 3)
144
- claide (>= 1.0.1, < 2.0)
145
- colored (~> 1.2)
146
+ claide (>= 1.0.2, < 2.0)
147
+ colored2 (~> 3.1)
146
148
  nanaimo (~> 0.2.3)
147
149
 
148
150
  PLATFORMS
@@ -166,4 +168,4 @@ DEPENDENCIES
166
168
  webmock
167
169
 
168
170
  BUNDLED WITH
169
- 1.13.5
171
+ 1.15.4
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency 'nap', '>= 0.8', '< 2.0'
21
- spec.add_dependency 'netrc', '0.7.8'
21
+ spec.add_dependency 'netrc', '~> 0.11'
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake", '~> 10.0'
24
24
 
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -34,6 +34,7 @@ module Pod
34
34
  ['--swift-version=VERSION', 'The SWIFT_VERSION that should be used to lint the spec. ' \
35
35
  'This takes precedence over a .swift-version file.'],
36
36
  ['--skip-import-validation', 'Lint skips validating that the pod can be imported'],
37
+ ['--skip-tests', 'Lint skips building and running tests during validation'],
37
38
  ].concat(super)
38
39
  end
39
40
 
@@ -42,6 +43,7 @@ module Pod
42
43
  @use_frameworks = !argv.flag?('use-libraries')
43
44
  @swift_version = argv.option('swift-version', nil)
44
45
  @skip_import_validation = argv.flag?('skip-import-validation', false)
46
+ @skip_tests = argv.flag?('skip-tests', false)
45
47
  @path = argv.shift_argument || '.'
46
48
  find_podspec_file if File.directory?(@path)
47
49
  super
@@ -119,6 +121,7 @@ module Pod
119
121
  validator.use_frameworks = @use_frameworks
120
122
  validator.swift_version = @swift_version if Validator.method_defined?(:swift_version=)
121
123
  validator.skip_import_validation = @skip_import_validation
124
+ validator.skip_tests = @skip_tests
122
125
  validator.validate
123
126
  unless validator.validated?
124
127
  raise Informative, "The spec did not pass validation, due to #{validator.failure_reason}."
@@ -8,9 +8,9 @@ module Pod
8
8
  self.description = <<-DESC
9
9
  Register a new account, or create a new session.
10
10
 
11
- If this is your first registration, both an `EMAIL` address and your
12
- `NAME` are required. If you’ve already registered with trunk, you may
13
- omit the `NAME` (unless you would like to change it).
11
+ If this is your first registration, both an `EMAIL` address and
12
+ `YOUR_NAME` are required. If you’ve already registered with trunk, you may
13
+ omit the `YOUR_NAME` (unless you would like to change it).
14
14
 
15
15
  It is recommended that you provide a description of the session, so
16
16
  that it will be easier to identify later on. For instance, when you
@@ -27,7 +27,7 @@ module Pod
27
27
 
28
28
  self.arguments = [
29
29
  CLAide::Argument.new('EMAIL', true),
30
- CLAide::Argument.new('NAME', false),
30
+ CLAide::Argument.new('YOUR_NAME', false),
31
31
  ]
32
32
 
33
33
  def self.options
@@ -39,7 +39,7 @@ module Pod
39
39
 
40
40
  it 'should successfully add an owner' do
41
41
  url = 'https://trunk.cocoapods.org/api/v1/pods/QueryKit/owners'
42
- WebMock::API.stub_request(:patch, url).
42
+ stub_request(:patch, url).
43
43
  with(:body => '{"email":"kyle@cocoapods.org"}',
44
44
  :headers => { 'Authorization' => 'Token 527d11fe429f3426cb8dbeba183a0d80' }).
45
45
  to_return(:status => 200, :body => '[]', :headers => {})
@@ -38,11 +38,11 @@ module Pod
38
38
 
39
39
  it 'should send the proper network request' do
40
40
  redirect = 'http://redirected.com'
41
- WebMock::API.stub_request(:patch, 'https://trunk.cocoapods.org/api/v1/pods/Stencil/deprecated').
42
- with(:body => WebMock::API.hash_including('in_favor_of' => 'Stamp')).
41
+ stub_request(:patch, 'https://trunk.cocoapods.org/api/v1/pods/Stencil/deprecated').
42
+ with(:body => hash_including('in_favor_of' => 'Stamp')).
43
43
  to_return(:status => 201, :headers => { :location => redirect })
44
44
 
45
- WebMock::API.stub_request(:get, redirect).
45
+ stub_request(:get, redirect).
46
46
  to_return(:status => 200, :body => @push_response.to_json)
47
47
 
48
48
  Command::Trunk::Deprecate.invoke(%w(Stencil --in-favor-of=Stamp))
@@ -16,7 +16,7 @@ module Pod
16
16
 
17
17
  it 'should show information for a pod' do
18
18
  url = 'https://trunk.cocoapods.org/api/v1/pods/Stencil'
19
- WebMock::API.stub_request(:get, url).to_return(:body => {
19
+ stub_request(:get, url).to_return(:body => {
20
20
  'owners' => [
21
21
  {
22
22
  'name' => 'Kyle Fuller',
@@ -36,7 +36,7 @@ module Pod
36
36
 
37
37
  it 'should error when the trunk service returns an error' do
38
38
  url = 'https://trunk.cocoapods.org/api/v1/pods?allow_warnings=false'
39
- WebMock::API.stub_request(:post, url).to_return(:status => 422, :body => {
39
+ stub_request(:post, url).to_return(:status => 422, :body => {
40
40
  'error' => 'The Pod Specification did not pass validation.',
41
41
  'data' => {
42
42
  'warnings' => [
@@ -126,22 +126,23 @@ module Pod
126
126
  end
127
127
 
128
128
  it 'passes a swift version back to command, to handle .swift-version files' do
129
+ Validator.any_instance.stubs(:dot_swift_version).returns('1.2.3')
129
130
  Validator.any_instance.stubs(:used_swift_version).returns('1.2.3')
130
131
 
131
- cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec))
132
+ cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --allow-warnings))
132
133
  cmd.send(:validate_podspec)
133
134
  cmd.instance_variable_get(:@swift_version).should == '1.2.3'
134
135
  end
135
136
 
136
137
  it 'validates specs as frameworks by default' do
137
138
  Validator.any_instance.expects(:podfile_from_spec).
138
- with(:ios, '8.0', true).once.returns(Podfile.new)
139
+ with(:ios, '8.0', true, []).once.returns(Podfile.new)
139
140
  Validator.any_instance.expects(:podfile_from_spec).
140
- with(:osx, nil, true).once.returns(Podfile.new)
141
+ with(:osx, nil, true, []).once.returns(Podfile.new)
141
142
  Validator.any_instance.expects(:podfile_from_spec).
142
- with(:tvos, nil, true).once.returns(Podfile.new)
143
+ with(:tvos, nil, true, []).once.returns(Podfile.new)
143
144
  Validator.any_instance.expects(:podfile_from_spec).
144
- with(:watchos, nil, true).once.returns(Podfile.new)
145
+ with(:watchos, nil, true, []).once.returns(Podfile.new)
145
146
 
146
147
  cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec))
147
148
  cmd.send(:validate_podspec)
@@ -149,13 +150,13 @@ module Pod
149
150
 
150
151
  it 'validates specs as libraries if requested' do
151
152
  Validator.any_instance.expects(:podfile_from_spec).
152
- with(:ios, nil, false).once.returns(Podfile.new)
153
+ with(:ios, nil, false, []).once.returns(Podfile.new)
153
154
  Validator.any_instance.expects(:podfile_from_spec).
154
- with(:osx, nil, false).once.returns(Podfile.new)
155
+ with(:osx, nil, false, []).once.returns(Podfile.new)
155
156
  Validator.any_instance.expects(:podfile_from_spec).
156
- with(:tvos, nil, false).once.returns(Podfile.new)
157
+ with(:tvos, nil, false, []).once.returns(Podfile.new)
157
158
  Validator.any_instance.expects(:podfile_from_spec).
158
- with(:watchos, nil, false).once.returns(Podfile.new)
159
+ with(:watchos, nil, false, []).once.returns(Podfile.new)
159
160
 
160
161
  cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --use-libraries))
161
162
  cmd.send(:validate_podspec)
@@ -176,6 +177,12 @@ module Pod
176
177
  cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --skip-import-validation))
177
178
  cmd.send(:validate_podspec)
178
179
  end
180
+
181
+ it 'passes skip test' do
182
+ Validator.any_instance.expects(:skip_tests=).with(true)
183
+ cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --skip-tests))
184
+ cmd.send(:validate_podspec)
185
+ end
179
186
  end
180
187
 
181
188
  describe 'sending the swift version up to trunk' do
@@ -17,8 +17,8 @@ module Pod
17
17
 
18
18
  it 'should register user' do
19
19
  url = 'https://trunk.cocoapods.org/api/v1/sessions'
20
- WebMock::API.stub_request(:post, url).
21
- with(:body => WebMock::API.hash_including('email' => 'kyle@cocoapods.org')).
20
+ stub_request(:post, url).
21
+ with(:body => hash_including('email' => 'kyle@cocoapods.org')).
22
22
  to_return(:status => 200, :body => '{"token": "acct"}')
23
23
  Netrc.any_instance.stubs(:[]).returns(nil)
24
24
  Netrc.any_instance.expects(:[]=).with('trunk.cocoapods.org', ['kyle@cocoapods.org', 'acct'])
@@ -39,7 +39,7 @@ module Pod
39
39
 
40
40
  it 'should successfully remove an owner' do
41
41
  url = 'https://trunk.cocoapods.org/api/v1/pods/QueryKit/owners/kyle@cocoapods.org'
42
- WebMock::API.stub_request(:delete, url).
42
+ stub_request(:delete, url).
43
43
  with(:headers => { 'Authorization' => 'Token 527d11fe429f3426cb8dbeba183a0d80' }).
44
44
  to_return(:status => 200, :body => '[]', :headers => {})
45
45
 
@@ -22,6 +22,9 @@ require 'bacon'
22
22
  require 'mocha-on-bacon'
23
23
  require 'pretty_bacon'
24
24
  require 'webmock'
25
+
26
+ include WebMock::API
27
+ WebMock.enable!
25
28
  WebMock.disable_net_connect!(:allow => 'codeclimate.com')
26
29
 
27
30
  require 'cocoapods'
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.2.0
4
+ version: 1.3.0
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: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nap
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: netrc
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '='
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.7.8
39
+ version: '0.11'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '='
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.7.8
46
+ version: '0.11'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement