cocoapods 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,27 @@
1
+ ## 0.16.1
2
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.16.0...0.16.1) • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.4.0...0.4.1)
3
+
4
+ ###### Bug fixes
5
+
6
+ - After unpacking source from a HTTP location, move the source into the parent
7
+ dir if the archive contained only one child. This is done to make it
8
+ consistent with how source from other types of locations are described in a
9
+ podspec.
10
+ **NOTE** This might break some podspecs that assumed the incorrect layout.
11
+ [#727](https://github.com/CocoaPods/CocoaPods/issues/727)
12
+ [#728](https://github.com/CocoaPods/CocoaPods/pull/728)
13
+ - Remove duplicate option in `pod update` command.
14
+ [#725](https://github.com/CocoaPods/CocoaPods/issues/725)
15
+ - Memory fixes in Xcodeproj.
16
+ [#43](https://github.com/CocoaPods/Xcodeproj/pull/43)
17
+
18
+ ###### Xcodeproj Enhancements
19
+
20
+ - Sort contents of xcconfig files by setting name.
21
+ [#591](https://github.com/CocoaPods/CocoaPods/issues/591)
22
+ - Add helpers to get platform name, deployment target, and frameworks build phases
23
+ - Take SDKROOT into account when adding frameworks.
24
+
1
25
  ## 0.16.0
2
26
  [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.16.0.rc5...master)
3
27
 
@@ -6,7 +30,6 @@
6
30
  - Use Rake 0.9.4
7
31
  [#657](https://github.com/CocoaPods/CocoaPods/issues/657)
8
32
 
9
-
10
33
  ## 0.16.0.rc5
11
34
  [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.16.0.rc4...0.16.0.rc5)
12
35
 
@@ -7,12 +7,12 @@ require 'rubygems'
7
7
  #
8
8
  # E.g. https://github.com/CocoaPods/CocoaPods/issues/398
9
9
  unless Gem::Version::Requirement.new('>= 1.4.0').satisfied_by?(Gem::Version.new(Gem::VERSION))
10
- STDERR.puts "\e[1;31m" + "Your RubyGems version (1.8.24) is too old, please update with: `gem update --system`" + "\e[0m"
10
+ STDERR.puts "\e[1;31m" + "Your RubyGems version (#{Gem::VERSION}) is too old, please update with: `gem update --system`" + "\e[0m"
11
11
  exit 1
12
12
  end
13
13
 
14
14
  module Pod
15
- VERSION = '0.16.0'
15
+ VERSION = '0.16.1'
16
16
 
17
17
  class PlainInformative < StandardError
18
18
  end
@@ -27,7 +27,12 @@ module Pod
27
27
  @allow_warnings = argv.option('--allow-warnings')
28
28
  @local_only = argv.option('--local-only')
29
29
  @repo = argv.shift_argument
30
- @podspec = argv.shift_argument
30
+ if @repo.end_with? ".podspec"
31
+ @podspec = @repo
32
+ @repo = "master"
33
+ else
34
+ @podspec = argv.shift_argument
35
+ end
31
36
  super unless argv.empty? && @repo
32
37
  end
33
38
 
@@ -82,7 +87,7 @@ module Pod
82
87
  lint_argv = ["lint"]
83
88
  lint_argv << "--only-errors" if @allow_warnings
84
89
  lint_argv << "--silent" if config.silent
85
- all_valid = true
90
+ # all_valid = true
86
91
  podspec_files.each do |podspec|
87
92
  Spec.new(ARGV.new(lint_argv + [podspec.to_s])).run
88
93
  end
@@ -153,6 +153,8 @@ module Pod
153
153
  is_compatilbe(versions)
154
154
  end
155
155
 
156
+ #--------------------------------------#
157
+
156
158
  private
157
159
 
158
160
  def versions(dir)
@@ -230,7 +230,7 @@ Pod::Spec.new do |s|
230
230
  s.homepage = "#{data[:homepage]}"
231
231
 
232
232
  # Specify the license type. CocoaPods detects automatically the license file if it is named
233
- # `LICENSE*.*', however if the name is different, specify it.
233
+ # `LICEN{C,S}E*.*', however if the name is different, specify it.
234
234
  s.license = 'MIT (example)'
235
235
  # s.license = { :type => 'MIT (example)', :file => 'FILE_LICENSE' }
236
236
  #
@@ -9,10 +9,6 @@ module Pod
9
9
  Updates all dependencies.}
10
10
  end
11
11
 
12
- def self.options
13
- [["--no-update", "Skip running `pod repo update` before install"]].concat(super)
14
- end
15
-
16
12
  def initialize(argv)
17
13
  config.skip_repo_update = argv.option('--no-update')
18
14
  super unless argv.empty?
@@ -136,6 +136,8 @@ module Pod
136
136
  return unless name && params
137
137
  if params.key?(:git)
138
138
  GitSource.new(name, params)
139
+ elsif params.key?(:svn)
140
+ SvnSource.new(name, params)
139
141
  elsif params.key?(:podspec)
140
142
  PodspecSource.new(name, params)
141
143
  elsif params.key?(:local)
@@ -214,6 +216,29 @@ module Pod
214
216
  end
215
217
  end
216
218
 
219
+ class SvnSource < AbstractExternalSource
220
+ def copy_external_source_into_sandbox(sandbox, platform)
221
+ UI.info("->".green + " Pre-downloading: '#{name}'") do
222
+ target = sandbox.root + name
223
+ target.rmtree if target.exist?
224
+ downloader = Downloader.for_target(sandbox.root + name, @params)
225
+ downloader.download
226
+ store_podspec(sandbox, target + "#{name}.podspec")
227
+ if local_pod = sandbox.installed_pod_named(name, platform)
228
+ local_pod.downloaded = true
229
+ end
230
+ end
231
+ end
232
+
233
+ def description
234
+ "from `#{@params[:svn]}'".tap do |description|
235
+ description << ", folder `#{@params[:folder]}'" if @params[:folder]
236
+ description << ", tag `#{@params[:tag]}'" if @params[:tag]
237
+ description << ", revision `#{@params[:revision]}'" if @params[:revision]
238
+ end
239
+ end
240
+ end
241
+
217
242
  # can be http, file, etc
218
243
  class PodspecSource < AbstractExternalSource
219
244
  def copy_external_source_into_sandbox(sandbox, _)
@@ -73,6 +73,14 @@ module Pod
73
73
  else
74
74
  raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
75
75
  end
76
+
77
+ # If the archive only contained a folder, move its contents to the target (#727)
78
+ contents = target_path.children
79
+ contents.delete(full_filename)
80
+ entry = contents.first
81
+ if contents.count == 1 && entry.directory?
82
+ FileUtils.move(entry.children, target_path)
83
+ end
76
84
  end
77
85
 
78
86
  end
@@ -9,16 +9,20 @@ module Pod
9
9
 
10
10
  def download
11
11
  UI.section(' > Exporting subversion repo', '', 3) do
12
- svn! %|export "#{reference_url}" "#{target_path}"|
12
+ svn! %|#{export_subcommand} "#{reference_url}" "#{target_path}"|
13
13
  end
14
14
  end
15
15
 
16
16
  def download_head
17
17
  UI.section(' > Exporting subversion repo', '', 3) do
18
- svn! %|export "#{trunk_url}" "#{target_path}"|
18
+ svn! %|#{export_subcommand} "#{trunk_url}" "#{target_path}"|
19
19
  end
20
20
  end
21
21
 
22
+ def export_subcommand
23
+ result = 'export --non-interactive --trust-server-cert'
24
+ end
25
+
22
26
  def reference_url
23
27
  result = url.dup
24
28
  result << '/' << options[:folder] if options[:folder]
@@ -18,8 +18,8 @@ module Pod
18
18
  ### Initalization
19
19
 
20
20
  # The file is expected to define and return a Pods::Specification.
21
- # If name is equals to nil it returns the top level Specification,
22
- # otherwise it returned the specification with the name that matches
21
+ # If name is equal to nil it returns the top level Specification,
22
+ # otherwise it returns the specification with matching name
23
23
  def self.from_file(path, subspec_name = nil)
24
24
  unless path.exist?
25
25
  raise Informative, "No podspec exists at path `#{path}'."
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.16.0
4
+ version: 0.16.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-22 00:00:00.000000000 Z
13
+ date: 2013-01-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: xcodeproj
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.4.0
22
+ version: 0.4.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 0.4.0
30
+ version: 0.4.1
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: faraday
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -254,9 +254,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  - - ! '>='
255
255
  - !ruby/object:Gem::Version
256
256
  version: '0'
257
- segments:
258
- - 0
259
- hash: -3740855769431273730
260
257
  required_rubygems_version: !ruby/object:Gem::Requirement
261
258
  none: false
262
259
  requirements:
@@ -265,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
262
  version: '0'
266
263
  requirements: []
267
264
  rubyforge_project:
268
- rubygems_version: 1.8.24
265
+ rubygems_version: 1.8.23
269
266
  signing_key:
270
267
  specification_version: 3
271
268
  summary: An Objective-C library package manager.