cocoapods-trunk 1.0.0.beta.2 → 1.0.0.beta.3

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: 1c41415e0fb060d2aeeab80a8d5feacaca2597c6
4
- data.tar.gz: f98ea9c2582d5420292044aa1fc4f6630cd4e3b7
3
+ metadata.gz: aa6bb38c9906111357691750b2a15a2c387f681d
4
+ data.tar.gz: 0c7526a32a20805483a28c403f13071561da109e
5
5
  SHA512:
6
- metadata.gz: ac7dd609a4f0534c96fd7a0bdf4e8d7976b7347c7e7ca6c2c111e3188df3b42fba7b2fbd2d2948ffd3398df0d94f3b3381ceba4d97f46eef155f5ccf49452644
7
- data.tar.gz: 57d32e37e9217cc7275fd1af902b5a74c6bf1ca1b123270ebe8ab16d2bf263fb2d6555cb571e363162410e553c020245dff4234601194f6b072c28358286aa6f
6
+ metadata.gz: 0a87ba47fe14b1f854c3d80bddc3015d6713f8ee94c0c3b03f2b71e45f3d37f45830255e5b56702af113396bbc081e62cb2ae29c5b13aec71af32a009d1af5b9
7
+ data.tar.gz: f7b6c0b764af002e0b5789085cb62a98ad38a485f4cc84469eaa617e1fdd966a46d4ee10d27de7ef3e6e3d455bc6222354558451c82c53de01d2645e88a69a50
@@ -40,7 +40,10 @@ Encoding:
40
40
 
41
41
  # Having these make it easier to *not* forget to add one when adding a new
42
42
  # value and you can simply copy the previous line.
43
- TrailingComma:
43
+ Style/TrailingCommaInArguments:
44
+ EnforcedStyleForMultiline: comma
45
+
46
+ Style/TrailingCommaInLiteral:
44
47
  EnforcedStyleForMultiline: comma
45
48
 
46
49
  Style/MultilineOperationIndentation:
@@ -54,6 +57,11 @@ GuardClause:
54
57
  Next:
55
58
  Enabled: false
56
59
 
60
+ # Autocorrect makes this cop much more useful, taking away needless guessing
61
+ Lint/EndAlignment:
62
+ AutoCorrect: true
63
+
64
+
57
65
  # Arbitrary max lengths for classes simply do not work and enabling this will
58
66
  # lead to a never ending stream of annoyance and changes.
59
67
  Metrics/ClassLength:
@@ -83,6 +91,11 @@ Metrics/AbcSize:
83
91
  Metrics/CyclomaticComplexity:
84
92
  Enabled: false
85
93
 
94
+ # It will be obvious which code is complex, Rubocop should only lint simple
95
+ # rules for us.
96
+ Metrics/PerceivedComplexity:
97
+ Enabled: false
98
+
86
99
  #- CocoaPods support for Ruby 1.8.7 ------------------------------------------#
87
100
 
88
101
  HashSyntax:
@@ -107,6 +120,10 @@ AmbiguousRegexpLiteral:
107
120
  Exclude:
108
121
  - spec/**/*
109
122
 
123
+ Performance/RedundantMatch:
124
+ Exclude:
125
+ - spec/**/*
126
+
110
127
  # Allow `object.should == object` syntax.
111
128
  Void:
112
129
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 1.0.0.beta.3 (2016-04-14)
2
+
3
+ ##### Enhancements
4
+
5
+ * The failure reason is printed when validation fails during `pod trunk push`.
6
+ [Samuel Giddins](https://github.com/segiddins)
7
+ [CocoaPods#5073](https://github.com/CocoaPods/CocoaPods/issues/5073)
8
+
9
+ ##### Bug Fixes
10
+
11
+ * None.
12
+
13
+
1
14
  ## 1.0.0.beta.2 (2016-02-03)
2
15
 
3
16
  ##### Bug Fixes
data/Gemfile.lock CHANGED
@@ -39,7 +39,7 @@ GIT
39
39
  PATH
40
40
  remote: .
41
41
  specs:
42
- cocoapods-trunk (1.0.0.beta.2)
42
+ cocoapods-trunk (1.0.0.beta.3)
43
43
  nap (>= 0.8, < 2.0)
44
44
  netrc (= 0.7.8)
45
45
 
@@ -53,9 +53,7 @@ GEM
53
53
  thread_safe (~> 0.3, >= 0.3.4)
54
54
  tzinfo (~> 1.1)
55
55
  addressable (2.3.8)
56
- ast (2.1.0)
57
- astrolabe (1.3.1)
58
- parser (~> 2.2)
56
+ ast (2.2.0)
59
57
  bacon (1.2.0)
60
58
  cocoapods-downloader (0.9.3)
61
59
  cocoapods-plugins (0.4.2)
@@ -89,27 +87,27 @@ GEM
89
87
  mocha (>= 0.13.0)
90
88
  molinillo (0.4.0)
91
89
  multi_json (1.11.2)
92
- nap (1.0.0)
90
+ nap (1.1.0)
93
91
  netrc (0.7.8)
94
92
  notify (0.5.2)
95
- parser (2.2.2.6)
96
- ast (>= 1.1, < 3.0)
93
+ parser (2.3.0.7)
94
+ ast (~> 2.2)
97
95
  powerpack (0.1.1)
98
96
  prettybacon (0.0.2)
99
97
  bacon (~> 1.2)
100
- rainbow (2.0.0)
98
+ rainbow (2.1.0)
101
99
  rake (10.4.2)
102
100
  rb-fsevent (0.9.5)
103
101
  rb-inotify (0.9.5)
104
102
  ffi (>= 0.5.0)
105
103
  rb-kqueue (0.2.4)
106
104
  ffi (>= 0.5.0)
107
- rubocop (0.33.0)
108
- astrolabe (~> 1.3)
109
- parser (>= 2.2.2.5, < 3.0)
105
+ rubocop (0.39.0)
106
+ parser (>= 2.3.0.7, < 3.0)
110
107
  powerpack (~> 0.1)
111
108
  rainbow (>= 1.99.1, < 3.0)
112
- ruby-progressbar (~> 1.4)
109
+ ruby-progressbar (~> 1.7)
110
+ unicode-display_width (~> 1.0, >= 1.0.1)
113
111
  ruby-progressbar (1.7.5)
114
112
  safe_yaml (1.0.4)
115
113
  simplecov (0.9.2)
@@ -120,6 +118,7 @@ GEM
120
118
  thread_safe (0.3.5)
121
119
  tzinfo (1.2.2)
122
120
  thread_safe (~> 0.1)
121
+ unicode-display_width (1.0.3)
123
122
  webmock (1.21.0)
124
123
  addressable (>= 2.3.6)
125
124
  crack (>= 0.3.2)
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '1.0.0.beta.2'.freeze
2
+ VERSION = '1.0.0.beta.3'.freeze
3
3
  end
@@ -106,7 +106,7 @@ module Pod
106
106
  validator.use_frameworks = @use_frameworks
107
107
  validator.validate
108
108
  unless validator.validated?
109
- raise Informative, 'The podspec does not validate.'
109
+ raise Informative, "The spec did not pass validation, due to #{validator.failure_reason}."
110
110
  end
111
111
  end
112
112
 
@@ -11,7 +11,7 @@ module Pod
11
11
  self.summary = 'Interact with the CocoaPods API (e.g. publishing new specs)'
12
12
 
13
13
  SCHEME_AND_HOST = ENV['TRUNK_SCHEME_AND_HOST'] || 'https://trunk.cocoapods.org'
14
- BASE_URL = "#{SCHEME_AND_HOST}/api/v1"
14
+ BASE_URL = "#{SCHEME_AND_HOST}/api/v1".freeze
15
15
 
16
16
  require 'pod/command/trunk/add_owner'
17
17
  require 'pod/command/trunk/delete'
@@ -26,7 +26,7 @@ module Pod
26
26
 
27
27
  def request_url(action, url, *args)
28
28
  response = create_request(action, url, *args)
29
- if (400...600).include?(response.status_code)
29
+ if (400...600).cover?(response.status_code)
30
30
  print_error(response.body)
31
31
  end
32
32
  response
@@ -40,7 +40,7 @@ module Pod
40
40
  it 'should successfully add an owner' do
41
41
  url = 'https://trunk.cocoapods.org/api/v1/pods/QueryKit/owners'
42
42
  WebMock::API.stub_request(:patch, url).
43
- with(:body => "{\"email\":\"kyle@cocoapods.org\"}",
43
+ with(:body => '{"email":"kyle@cocoapods.org"}',
44
44
  :headers => { 'Authorization' => 'Token 527d11fe429f3426cb8dbeba183a0d80' }).
45
45
  to_return(:status => 200, :body => '[]', :headers => {})
46
46
 
@@ -25,7 +25,6 @@ module Pod
25
25
  command.send(:confirm_deletion?).should.be.true
26
26
  command.send(:confirm_deletion?).should.be.false
27
27
 
28
- # rubocop:disable Metrics/LineLength
29
28
  UI.output.should == <<-OUTPUT.gsub(/^>$/, '> ')
30
29
  \e[33mWARNING: It is generally considered bad behavior to remove versions of a Pod that others are depending on!
31
30
  Please consider using the `deprecate` command instead.\e[0m
@@ -38,7 +37,6 @@ Please consider using the `deprecate` command instead.\e[0m
38
37
  Are you sure you want to delete this Pod version?
39
38
  >
40
39
  OUTPUT
41
- # rubocop:enable Metrics/LineLength
42
40
  end
43
41
 
44
42
  it 'does not delete if the user does not confirm' do
@@ -126,6 +126,16 @@ module Pod
126
126
  cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --use-libraries))
127
127
  cmd.send(:validate_podspec)
128
128
  end
129
+
130
+ it 'prints the failure reason' do
131
+ Validator.any_instance.expects(:validated?).returns(false)
132
+ Validator.any_instance.expects(:validate)
133
+ Validator.any_instance.expects(:failure_reason).returns('failure_reason')
134
+
135
+ cmd = Command.parse(%w(trunk push spec/fixtures/BananaLib.podspec --use-libraries))
136
+ e = should.raise(Informative) { cmd.send(:validate_podspec) }
137
+ e.message.should.include 'The spec did not pass validation, due to failure_reason.'
138
+ end
129
139
  end
130
140
 
131
141
  describe 'updating the master repo' do
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.0.0.beta.2
4
+ version: 1.0.0.beta.3
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: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nap
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: 1.3.1
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.2
137
+ rubygems_version: 2.6.3
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Interact with trunk.cocoapods.org