cocoapods 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,31 @@
1
- ## 0.7.0 (unreleased)
1
+ ## 0.8.0
2
2
 
3
- [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.6.1...develop) | [XcodeProj](https://github.com/CocoaPods/XcodeProj/compare/0.2.1...develop)
3
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.7.0...0.8.0) [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.2.2...0.2.3)
4
+
5
+ ###### Breaking change
6
+
7
+ Syntax change in Podfile: `dependency` has been replaced by `pod`.
8
+
9
+ ```ruby
10
+ platform :ios
11
+ pod 'JSONKit', '~> 1.4'
12
+ pod 'Reachability', '~> 2.0.4'
13
+ ```
14
+
15
+ ###### Bug fixes
16
+
17
+ - Properly quote all paths given to Git.
18
+
19
+
20
+ ## 0.7.0
21
+
22
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.6.1...0.7.0) • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.2.1...0.2.2)
4
23
 
5
24
  ###### Features
6
25
 
7
26
  - Added support for branches in git repos.
8
27
  - Added support for linting remote files, i.e. `pod spec lint http://raw/file.podspec`.
9
- - Improved `Spec create template`
28
+ - Improved `Spec create template`.
10
29
  - The indentation is automatically stripped for podspecs strings.
11
30
 
12
31
  ###### Bug fixes
@@ -19,7 +38,7 @@
19
38
 
20
39
  ## 0.6.1
21
40
 
22
- [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.6.0...0.6.1) | [XcodeProj](https://github.com/CocoaPods/XcodeProj/compare/0.2.0...0.2.1)
41
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.6.0...0.6.1) [Xcodeproj](https://github.com/CocoaPods/XcodeProj/compare/0.2.0...0.2.1)
23
42
 
24
43
  ###### Bug fixes
25
44
 
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # CocoaPods – an Objective-C library manager
2
2
 
3
- | Master branch | Develop branch | CocoaPods/Specs |
3
+ | CocoaPods | Xcodeproj | Specs |
4
4
  | :---: | :---: | :---: |
5
- [![Master Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=master)](https://secure.travis-ci.org/CocoaPods/CocoaPods)|[![Develop Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=develop)](https://secure.travis-ci.org/CocoaPods/CocoaPods)|[![Build Status](https://secure.travis-ci.org/CocoaPods/Specs.png?branch=master)](http://travis-ci.org/CocoaPods/Specs)
5
+ [![Master Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=master)](https://secure.travis-ci.org/CocoaPods/CocoaPods)|[![Build Status](https://secure.travis-ci.org/CocoaPods/Xcodeproj.png?branch=master)](http://travis-ci.org/CocoaPods/Xcodeproj)|[![Build Status](https://secure.travis-ci.org/CocoaPods/Specs.png?branch=master)](http://travis-ci.org/CocoaPods/Specs)
6
6
 
7
7
 
8
8
  CocoaPods manages library dependencies for your Xcode project.
@@ -17,6 +17,8 @@ Ultimately, the goal is to improve discoverability of, and engagement in, third
17
17
 
18
18
  See the [NSScreencast episode about CocoaPods](http://nsscreencast.com/episodes/5-cocoapods) for a quick overview on how to get started, or [the wiki](https://github.com/CocoaPods/CocoaPods/wiki) for more in depth information on several topics.
19
19
 
20
+ Or, if you’re already using CocoaPods, you can find the changelog [here](https://github.com/CocoaPods/CocoaPods/blob/master/CHANGELOG.md), which contains an overview of the changes in recent versions.
21
+
20
22
 
21
23
  ## Installation
22
24
 
@@ -25,8 +27,7 @@ Downloading and installing CocoaPods only takes a few minutes.
25
27
  CocoaPods runs on [Ruby](http://www.ruby-lang.org/en/). To install it run the following commands:
26
28
 
27
29
  ```
28
- $ [sudo] gem install cocoapods --pre
29
- $ pod setup
30
+ $ [sudo] gem install cocoapods
30
31
  ```
31
32
 
32
33
  If you want to have CocoaPods generate documentation for each library, then install the [appledoc](http://gentlebytes.com/appledoc/) tool:
@@ -71,20 +72,12 @@ $ edit Podfile
71
72
 
72
73
  ```ruby
73
74
  platform :ios
74
- dependency 'JSONKit', '~> 1.4'
75
- dependency 'Reachability', '~> 2.0.4'
75
+ pod 'JSONKit', '~> 1.4'
76
+ pod 'Reachability', '~> 2.0.4'
76
77
  ```
77
78
 
78
79
  And then you [install the dependencies](https://github.com/CocoaPods/CocoaPods/wiki/Creating-a-project-that-uses-CocoaPods) in your project.
79
80
 
80
- ```
81
- $ pod install App.xcodeproj
82
- ```
83
-
84
- _Where ‘App.xcodeproj’ is the name of your actual application project._
85
-
86
- The next time you change your Podfile, you can update your project by simply running:
87
-
88
81
  ```
89
82
  $ pod install
90
83
  ```
@@ -114,8 +107,6 @@ All CocoaPods development happens on GitHub, there is a repository for [CocoaPod
114
107
 
115
108
  Follow [@CocoaPodsOrg](http://twitter.com/CocoaPodsOrg) to get up to date information about what's going on in the CocoaPods world.
116
109
 
117
- If you're really oldschool and you want to discuss CocoaPods development you can join #cocoapods on irc.freenode.net.
118
-
119
110
 
120
111
  # Donations
121
112
 
@@ -1,5 +1,5 @@
1
1
  module Pod
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.0'
3
3
 
4
4
  class PlainInformative < StandardError
5
5
  end
@@ -258,7 +258,7 @@ module Pod
258
258
  platform = @platform
259
259
  podfile = Pod::Podfile.new do
260
260
  platform(platform)
261
- dependency name, :podspec => podspec
261
+ pod name, :podspec => podspec
262
262
  end
263
263
  podfile
264
264
  end
@@ -30,7 +30,7 @@ module Pod
30
30
  puts "-> Creating cache git repo (#{cache_path})" if config.verbose?
31
31
  cache_path.rmtree if cache_path.exist?
32
32
  cache_path.mkpath
33
- git "clone '#{url}' #{cache_path}"
33
+ clone(url, cache_path)
34
34
  end
35
35
 
36
36
  def removed_cached_repos_if_needed
@@ -100,7 +100,7 @@ module Pod
100
100
 
101
101
  def download_head
102
102
  update_cache
103
- git "clone '#{clone_url}' '#{target_path}'"
103
+ clone(clone_url, target_path)
104
104
  end
105
105
 
106
106
  def download_tag
@@ -116,7 +116,7 @@ module Pod
116
116
 
117
117
  def download_commit
118
118
  ensure_ref_exists(options[:commit])
119
- git "clone '#{clone_url}' '#{target_path}'"
119
+ clone(clone_url, target_path)
120
120
  Dir.chdir(target_path) do
121
121
  git "checkout -b activated-pod-commit #{options[:commit]}"
122
122
  end
@@ -124,14 +124,18 @@ module Pod
124
124
 
125
125
  def download_branch
126
126
  ensure_remote_branch_exists(options[:branch])
127
- git "clone '#{clone_url}' '#{target_path}'"
127
+ clone(clone_url, target_path)
128
128
  Dir.chdir(target_path) do
129
- git "remote add upstream #{@url}" # we need to add the original url, not the cache url
129
+ git "remote add upstream '#{@url}'" # we need to add the original url, not the cache url
130
130
  git "fetch -q upstream" # refresh the branches
131
131
  git "checkout --track -b activated-pod-commit upstream/#{options[:branch]}" # create a new tracking branch
132
132
  puts "Just downloaded and checked out branch: #{options[:branch]} from upstream #{clone_url}" if config.verbose?
133
133
  end
134
134
  end
135
+
136
+ def clone(from, to)
137
+ git "clone '#{from}' '#{to}'"
138
+ end
135
139
  end
136
140
 
137
141
  class GitHub < Git
@@ -278,13 +278,13 @@ module Pod
278
278
  # latest version of a Pod. If this is the case, simply omit the version
279
279
  # requirements.
280
280
  #
281
- # dependency 'SSZipArchive'
281
+ # pod 'SSZipArchive'
282
282
  #
283
283
  #
284
284
  # Later on in the project you may want to freeze to a specific version of a
285
285
  # Pod, in which case you can specify that version number.
286
286
  #
287
- # dependency 'Objection', '0.9'
287
+ # pod 'Objection', '0.9'
288
288
  #
289
289
  #
290
290
  # Besides no version, or a specific one, it is also possible to use operators:
@@ -311,17 +311,17 @@ module Pod
311
311
  #
312
312
  # Sometimes you may want to use the bleeding edge version of a Pod. Or a
313
313
  # specific revision. If this is the case, you can specify that with your
314
- # dependency declaration.
314
+ # pod declaration.
315
315
  #
316
316
  #
317
317
  # To use the `master` branch of the repo:
318
318
  #
319
- # dependency 'TTTFormatterKit', :git => 'https://github.com/gowalla/AFNetworking.git'
319
+ # pod 'TTTFormatterKit', :git => 'https://github.com/gowalla/AFNetworking.git'
320
320
  #
321
321
  #
322
322
  # Or specify a commit:
323
323
  #
324
- # dependency 'TTTFormatterKit', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => '082f8319af'
324
+ # pod 'TTTFormatterKit', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => '082f8319af'
325
325
  #
326
326
  #
327
327
  # It is important to note, though, that this means that the version will
@@ -338,7 +338,7 @@ module Pod
338
338
  # If a podspec is available from another source outside of the library’s
339
339
  # repo. Consider, for instance, a podpsec available via HTTP:
340
340
  #
341
- # dependency 'JSONKit', :podspec => 'https://raw.github.com/gist/1346394/1d26570f68ca27377a27430c65841a0880395d72/JSONKit.podspec'
341
+ # pod 'JSONKit', :podspec => 'https://raw.github.com/gist/1346394/1d26570f68ca27377a27430c65841a0880395d72/JSONKit.podspec'
342
342
  #
343
343
  #
344
344
  # ### For a library without any available podspec
@@ -347,12 +347,12 @@ module Pod
347
347
  # to use, yet, you will have to specify the library yourself.
348
348
  #
349
349
  #
350
- # When you omit arguments and pass a block to `dependency`, an instance of
350
+ # When you omit arguments and pass a block to `pod`, an instance of
351
351
  # Pod::Specification is yielded to the block. This is the same class which
352
352
  # is normally used to specify a Pod.
353
353
  #
354
354
  # ```
355
- # dependency do |spec|
355
+ # pod do |spec|
356
356
  # spec.name = 'JSONKit'
357
357
  # spec.version = '1.4'
358
358
  # spec.source = { :git => 'https://github.com/johnezang/JSONKit.git', :tag => 'v1.4' }
@@ -363,10 +363,15 @@ module Pod
363
363
  #
364
364
  # For more info on the definition of a Pod::Specification see:
365
365
  # https://github.com/CocoaPods/CocoaPods/wiki/A-pod-specification
366
- def dependency(*name_and_version_requirements, &block)
366
+ def pod(*name_and_version_requirements, &block)
367
367
  @target_definition.target_dependencies << Dependency.new(*name_and_version_requirements, &block)
368
368
  end
369
369
 
370
+ def dependency(*name_and_version_requirements, &block)
371
+ warn "[DEPRECATED] `dependency' is deprecated (use `pod')"
372
+ pod(*name_and_version_requirements, &block)
373
+ end
374
+
370
375
  # Specifies that a BridgeSupport metadata document should be generated from
371
376
  # the headers of all installed Pods.
372
377
  #
@@ -383,14 +388,14 @@ module Pod
383
388
  #
384
389
  # Consider the following Podfile:
385
390
  #
386
- # dependency 'ASIHTTPRequest'
391
+ # pod 'ASIHTTPRequest'
387
392
  #
388
393
  # target :debug do
389
- # dependency 'SSZipArchive'
394
+ # pod 'SSZipArchive'
390
395
  # end
391
396
  #
392
397
  # target :test, :exclusive => true do
393
- # dependency 'JSONKit'
398
+ # pod 'JSONKit'
394
399
  # end
395
400
  #
396
401
  # This Podfile defines three targets. The first one is the `:default` target,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-06 00:00:00.000000000 Z
12
+ date: 2012-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: 0.2.2
133
+ version: 0.2.3
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: 0.2.2
141
+ version: 0.2.3
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: activesupport
144
144
  requirement: !ruby/object:Gem::Requirement
@@ -246,9 +246,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
246
246
  - - ! '>='
247
247
  - !ruby/object:Gem::Version
248
248
  version: '0'
249
- segments:
250
- - 0
251
- hash: -3994196354824039548
252
249
  required_rubygems_version: !ruby/object:Gem::Requirement
253
250
  none: false
254
251
  requirements:
@@ -257,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
254
  version: '0'
258
255
  requirements: []
259
256
  rubyforge_project:
260
- rubygems_version: 1.8.24
257
+ rubygems_version: 1.8.23
261
258
  signing_key:
262
259
  specification_version: 3
263
260
  summary: An Objective-C library package manager.