cocoapods-trunk 0.5.1 → 0.6.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: 8fd8fe859e2920ddba3c449b56c120e294b14cde
4
- data.tar.gz: c9c5c3d1ed0c5e1eea9f82e3b00a03ed87dde6ec
3
+ metadata.gz: 36f74d361a7cdcad64c393e2305778d40ae0a811
4
+ data.tar.gz: abfedde318572e6c50d8500cf150031f3f04f344
5
5
  SHA512:
6
- metadata.gz: ec5e95ef99c5864f7147346bd4316764ad6f08b5f8564557f7917feb924bc448b7179362361bb0a891f6cbc96fef07920e30963473f94eab2e5a7e8fa097aad4
7
- data.tar.gz: f79b2506de975e6c535dedab7d337bb47866eee5452562a83d497600e347db372672c36b1ca29012a9cdb3b01174c0c804293095e2de83141df382f8b604900a
6
+ metadata.gz: 59f1fd677ff13ef071f69b93b3ba15936801418bda132ff26afb6cf79fcd523b3449225f770414c71f28594cb14313f89e0d893012a985c1980df947efc17f6d
7
+ data.tar.gz: c1c6199f2b3a0986feeb3fc76d86187ff93f12d28cec25e4aa65d788f4163ea4a4c3a5c7d019481b5d9c9250619e9b4483cd6f7ef230ec479d32684a5624b382
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.6.0
2
+
3
+ ##### Enhancements
4
+
5
+ * Allow specifying a Trunk token via the `COCOAPODS_TRUNK_TOKEN` environment
6
+ variable.
7
+ [Samuel Giddins](https://github.com/segiddins)
8
+ [CocoaPods#3224](https://github.com/CocoaPods/CocoaPods/issues/3224)
9
+
10
+
1
11
  ## 0.5.1
2
12
 
3
13
  ##### Enhancements
data/Gemfile.lock CHANGED
@@ -1,36 +1,36 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CLAide.git
3
- revision: 9e8b9072fd66f69b91999cd3838a4bbba043a7e5
3
+ revision: 4cb13d48a907d8acf8d398f1104843df029def6d
4
4
  branch: master
5
5
  specs:
6
- claide (0.8.0)
6
+ claide (0.8.1)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: 26b9a555f1fa57675d46a0fb678f8ed7f37e361f
10
+ revision: 187a851ad197507286373418bb6daeb5a9596d66
11
11
  branch: master
12
12
  specs:
13
- cocoapods (0.35.0)
13
+ cocoapods (0.36.0.rc.1)
14
14
  activesupport (>= 3.2.15)
15
- claide (~> 0.8.0)
16
- cocoapods-core (= 0.35.0)
17
- cocoapods-downloader (~> 0.8.0)
18
- cocoapods-plugins (~> 0.3.1)
19
- cocoapods-trunk (~> 0.5.0)
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
20
  cocoapods-try (~> 0.4.3)
21
21
  colored (~> 1.2)
22
22
  escape (~> 0.0.4)
23
- molinillo (~> 0.2.0)
23
+ molinillo (~> 0.2.1)
24
24
  nap (~> 0.8)
25
25
  open4 (~> 1.3)
26
- xcodeproj (~> 0.21.0)
26
+ xcodeproj (~> 0.23.0)
27
27
 
28
28
  GIT
29
29
  remote: https://github.com/CocoaPods/Core.git
30
- revision: 7d2b3c0cba15d4c62639c5b390df306a30cc1d40
30
+ revision: 549c77f41de847cb519b5594a3d5099c53a1e5a3
31
31
  branch: master
32
32
  specs:
33
- cocoapods-core (0.35.0)
33
+ cocoapods-core (0.36.0.rc.1)
34
34
  activesupport (>= 3.2.15)
35
35
  fuzzy_match (~> 2.0.4)
36
36
  nap (~> 0.8.0)
@@ -38,7 +38,7 @@ GIT
38
38
  PATH
39
39
  remote: .
40
40
  specs:
41
- cocoapods-trunk (0.5.1)
41
+ cocoapods-trunk (0.6.0)
42
42
  nap (>= 0.8)
43
43
  netrc (= 0.7.8)
44
44
 
@@ -56,8 +56,8 @@ GEM
56
56
  astrolabe (1.3.0)
57
57
  parser (>= 2.2.0.pre.3, < 3.0)
58
58
  bacon (1.2.0)
59
- cocoapods-downloader (0.8.0)
60
- cocoapods-plugins (0.3.2)
59
+ cocoapods-downloader (0.8.1)
60
+ cocoapods-plugins (0.4.1)
61
61
  nap
62
62
  cocoapods-try (0.4.3)
63
63
  codeclimate-test-reporter (0.4.1)
@@ -79,12 +79,12 @@ GEM
79
79
  rb-inotify (>= 0.9)
80
80
  rb-kqueue (>= 0.2)
81
81
  metaclass (0.0.4)
82
- minitest (5.5.0)
82
+ minitest (5.5.1)
83
83
  mocha (1.1.0)
84
84
  metaclass (~> 0.0.1)
85
85
  mocha-on-bacon (0.2.2)
86
86
  mocha (>= 0.13.0)
87
- molinillo (0.2.0)
87
+ molinillo (0.2.1)
88
88
  multi_json (1.10.1)
89
89
  nap (0.8.0)
90
90
  netrc (0.7.8)
@@ -123,7 +123,7 @@ GEM
123
123
  webmock (1.20.4)
124
124
  addressable (>= 2.3.6)
125
125
  crack (>= 0.3.2)
126
- xcodeproj (0.21.0)
126
+ xcodeproj (0.23.0)
127
127
  activesupport (>= 3)
128
128
  colored (~> 1.2)
129
129
 
@@ -1,3 +1,3 @@
1
1
  module CocoaPodsTrunk
2
- VERSION = '0.5.1'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -77,13 +77,15 @@ module Pod
77
77
  end
78
78
 
79
79
  def token
80
- netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password
80
+ ENV['COCOAPODS_TRUNK_TOKEN'] ||
81
+ (netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
81
82
  end
82
83
 
83
84
  def default_headers
84
85
  {
85
86
  'Content-Type' => 'application/json; charset=utf-8',
86
87
  'Accept' => 'application/json; charset=utf-8',
88
+ 'User-Agent' => "CocoaPods/#{Pod::VERSION}",
87
89
  }
88
90
  end
89
91
 
@@ -7,5 +7,17 @@ module Pod
7
7
  Command.parse(%w( trunk )).should.be.instance_of Command::Trunk
8
8
  end
9
9
  end
10
+
11
+ before do
12
+ @command = Command.parse(%w(trunk))
13
+ end
14
+
15
+ describe 'authorization' do
16
+ it 'will use the trunk token from ENV if present' do
17
+ ENV.stubs(:[]).with('COCOAPODS_TRUNK_TOKEN').returns('token')
18
+
19
+ @command.send(:token).should == 'token'
20
+ end
21
+ end
10
22
  end
11
23
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-trunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.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: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nap
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.8'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description:
@@ -73,12 +73,12 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
77
- - ".kick"
78
- - ".rubocop.yml"
79
- - ".rubocop_cocoapods.yml"
80
- - ".rubocop_todo.yml"
81
- - ".travis.yml"
76
+ - .gitignore
77
+ - .kick
78
+ - .rubocop.yml
79
+ - .rubocop_cocoapods.yml
80
+ - .rubocop_todo.yml
81
+ - .travis.yml
82
82
  - CHANGELOG.md
83
83
  - Gemfile
84
84
  - Gemfile.lock
@@ -114,17 +114,17 @@ require_paths:
114
114
  - lib
115
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
117
+ - - '>='
118
118
  - !ruby/object:Gem::Version
119
119
  version: 2.0.0
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5
127
+ rubygems_version: 2.0.14
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Interact with trunk.cocoapods.org