cocoapods-trunk 0.6.1 → 0.6.2

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: 4e53c5f586b4dccfde9ef3025946716946886e6f
4
- data.tar.gz: c025ab447cea0c2c6bf72e6954668a0361811fa7
3
+ metadata.gz: 2597a15a9b09bf1dccef5d9b2ce3bfdc59527947
4
+ data.tar.gz: 5ef371fc55d2b3069b173e38d77a05a82f0a02ef
5
5
  SHA512:
6
- metadata.gz: 3c4832e9a1262b5496a28f5e935879fa74e3b064c6ee81c4f06b1d09cb898772aff4806717e8e8b5e96a0a600da235b08d168447821228f1e12d9f9a5e235608
7
- data.tar.gz: 44940a0a2ceacc257bdfed963359b90c56b1481773cdfbe8c0a25f35b0d12540804bb0bf517dd2d7fe03b560c3e2bcd75899ff1a694feb98bc6b12058ee83b8d
6
+ metadata.gz: 95ab45459ffd4ccfd274a879226f0323e1c34052f16199bdf2a4f481f6fbf8d8ef69b3a334c9bd85e7277dc47a202a63d739fae5c3d2ebdfb9c0e5a1291512bd
7
+ data.tar.gz: 46f84d1da4af48600116b1a1baa3ab9507e069916820ef5d0e448beebe5fbded8066f78d72eeffc3f1cf3f76e4d2847fe2636c2de23bbe629e7471ca54a1617e
@@ -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
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: 4cb13d48a907d8acf8d398f1104843df029def6d
3
+ revision: 4e7b02d849c3e82dff7c1cdacf33df45516acaf3
4
4
  branch: master
5
5
  specs:
6
- claide (0.8.1)
6
+ claide (0.9.1)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: 187a851ad197507286373418bb6daeb5a9596d66
10
+ revision: 0c9f24807f53a93bff0628f799ade47a1a4f7f1c
11
11
  branch: master
12
12
  specs:
13
- cocoapods (0.36.0.rc.1)
13
+ cocoapods (0.38.2)
14
14
  activesupport (>= 3.2.15)
15
- claide (~> 0.8.1)
16
- cocoapods-core (= 0.36.0.rc.1)
17
- cocoapods-downloader (~> 0.8.1)
18
- cocoapods-plugins (~> 0.4.1)
19
- cocoapods-trunk (~> 0.6.0)
20
- cocoapods-try (~> 0.4.3)
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.2.1)
24
+ molinillo (~> 0.3.1)
24
25
  nap (~> 0.8)
25
- open4 (~> 1.3)
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: 549c77f41de847cb519b5594a3d5099c53a1e5a3
30
+ revision: 32917a36cbf71117d5da1c8f785b65d108c6f815
31
31
  branch: master
32
32
  specs:
33
- cocoapods-core (0.36.0.rc.1)
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.1)
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.0)
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.6)
55
- ast (2.0.0)
56
- astrolabe (1.3.0)
57
- parser (>= 2.2.0.pre.3, < 3.0)
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.8.1)
60
- cocoapods-plugins (0.4.1)
59
+ cocoapods-downloader (0.9.1)
60
+ cocoapods-plugins (0.4.2)
61
61
  nap
62
- cocoapods-try (0.4.3)
63
- codeclimate-test-reporter (0.4.1)
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.6)
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.5.1)
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.2.1)
88
- multi_json (1.10.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
- open4 (1.3.4)
93
- parser (2.2.0.pre.8)
94
+ parser (2.2.2.6)
94
95
  ast (>= 1.1, < 3.0)
95
- slop (~> 3.4, >= 3.4.5)
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.3.2)
101
- rb-fsevent (0.9.4)
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.3)
104
+ rb-kqueue (0.2.4)
105
105
  ffi (>= 0.5.0)
106
- rubocop (0.27.1)
106
+ rubocop (0.33.0)
107
107
  astrolabe (~> 1.3)
108
- parser (>= 2.2.0.pre.7, < 3.0)
109
- powerpack (~> 0.0.6)
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.0)
112
+ ruby-progressbar (1.7.5)
113
113
  safe_yaml (1.0.4)
114
- simplecov (0.9.1)
114
+ simplecov (0.9.2)
115
115
  docile (~> 1.1.0)
116
116
  multi_json (~> 1.0)
117
- simplecov-html (~> 0.8.0)
118
- simplecov-html (0.8.0)
119
- slop (3.6.0)
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.20.4)
122
+ webmock (1.21.0)
124
123
  addressable (>= 2.3.6)
125
124
  crack (>= 0.3.2)
126
- xcodeproj (0.23.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
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
@@ -62,7 +62,7 @@ module Pod
62
62
  end.flatten
63
63
  count = lines.size
64
64
  lines.unshift "The following #{'validation'.pluralize(count)} failed:"
65
- error += "\n" << lines.join("\n")
65
+ error += "\n" << lines.join("\n")
66
66
  end
67
67
 
68
68
  raise Informative, error
@@ -16,7 +16,8 @@ module Pod
16
16
  ]
17
17
 
18
18
  def initialize(argv)
19
- @pod, @email = argv.shift_argument, argv.shift_argument
19
+ @pod = argv.shift_argument
20
+ @email = argv.shift_argument
20
21
  super
21
22
  end
22
23
 
@@ -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, 'pods', spec.to_json, auth_headers)
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
- $stdout.puts " - Data URL: #{json['data_url']}"
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
@@ -38,7 +38,8 @@ module Pod
38
38
 
39
39
  def initialize(argv)
40
40
  @session_description = argv.option('description')
41
- @email, @name = argv.shift_argument, argv.shift_argument
41
+ @email = argv.shift_argument
42
+ @name = argv.shift_argument
42
43
  super
43
44
  end
44
45
 
@@ -16,7 +16,8 @@ module Pod
16
16
  ]
17
17
 
18
18
  def initialize(argv)
19
- @pod, @email = argv.shift_argument, argv.shift_argument
19
+ @pod = argv.shift_argument
20
+ @email = argv.shift_argument
20
21
  super
21
22
  end
22
23
 
@@ -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( trunk me )).should.be.instance_of Command::Trunk::Me
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( trunk me ))
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( trunk push )).should.be.instance_of Command::Trunk::Push
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).with(:ios, nil, true).once
104
- Validator.any_instance.expects(:podfile_from_spec).with(:osx, nil, true).once
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).with(:ios, nil, false).once
112
- Validator.any_instance.expects(:podfile_from_spec).with(:osx, nil, false).once
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)
@@ -4,7 +4,7 @@ module Pod
4
4
  describe Command::Trunk do
5
5
  describe 'CLAide' do
6
6
  it 'registers it self' do
7
- Command.parse(%w( trunk )).should.be.instance_of Command::Trunk
7
+ Command.parse(%w( trunk )).should.be.instance_of Command::Trunk
8
8
  end
9
9
  end
10
10
 
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.1
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-05-27 00:00:00.000000000 Z
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.7
127
+ rubygems_version: 2.4.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Interact with trunk.cocoapods.org