cocoapods 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -80,6 +80,11 @@ Follow [@CocoaPodsOrg](http://twitter.com/CocoaPodsOrg) to get up to date inform
80
80
  If you're really oldschool and you want to discuss CocoaPods development you can join #cocoapods on irc.freenode.net.
81
81
 
82
82
 
83
+ # Donations
84
+
85
+ * [@fngtps](http://twitter.com/fngtps) is donating time to work on the design of the forthcoming cocoapods.org website and donated the money to hire [Max Steenbergen](http://twitter.com/maxsteenbergen) to design [an icon](http://drbl.in/cpmL) for it.
86
+ * [@sauspiel](http://twitter.com/Sauspiel) uses CocoaPods for their games and have hired me to add features and specs they needed. These are Nimbus, QuincyKit, and HockeyKit. For the [Nimbus spec](https://github.com/CocoaPods/Specs/blob/master/Nimbus/0.9.0/Nimbus.podspec), the ‘subspecs’ feature was added.
87
+
83
88
  # Endorsements
84
89
 
85
90
  * “I am crazy excited about this. With the growing number of Objective-C libraries, this will make things so much better.” –– [Sam Soffes](http://news.ycombinator.com/item?id=3009154)
@@ -1,5 +1,5 @@
1
1
  module Pod
2
- VERSION = '0.3.9'
2
+ VERSION = '0.3.10'
3
3
 
4
4
  class Informative < StandardError
5
5
  end
@@ -38,3 +38,4 @@ class Pathname
38
38
  Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) }
39
39
  end
40
40
  end
41
+
@@ -3,6 +3,7 @@ module Pod
3
3
  autoload :Install, 'cocoapods/command/install'
4
4
  autoload :Repo, 'cocoapods/command/repo'
5
5
  autoload :Search, 'cocoapods/command/search'
6
+ autoload :List, 'cocoapods/command/list'
6
7
  autoload :Setup, 'cocoapods/command/setup'
7
8
  autoload :Spec, 'cocoapods/command/spec'
8
9
 
@@ -35,6 +36,7 @@ module Pod
35
36
  "\n" \
36
37
  " * $ pod setup --help\n" \
37
38
  " * $ pod search --help\n" \
39
+ " * $ pod list --help\n" \
38
40
  " * $ pod install --help\n" \
39
41
  " * $ pod repo --help\n" \
40
42
  " * $ pod spec --help"
@@ -72,6 +74,7 @@ module Pod
72
74
  when 'install' then Install
73
75
  when 'repo' then Repo
74
76
  when 'search' then Search
77
+ when 'list' then List
75
78
  when 'setup' then Setup
76
79
  when 'spec' then Spec
77
80
  end
@@ -0,0 +1,26 @@
1
+ module Pod
2
+ class Command
3
+ class List < Command
4
+ def self.banner
5
+ %{List all pods:
6
+
7
+ $ pod list
8
+
9
+ Lists all available pods.}
10
+ end
11
+
12
+ def initialize(argv)
13
+ end
14
+
15
+ def run
16
+ Source.all.each do |source|
17
+ source.pod_sets.each do |set|
18
+ puts "==> #{set.name} (#{set.versions.reverse.join(", ")})"
19
+ puts " #{set.specification.summary.strip}"
20
+ puts
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -32,7 +32,7 @@ module Pod
32
32
  email = `git config --get user.email`.strip
33
33
  spec = <<-SPEC.gsub(/^ /, '')
34
34
  #
35
- # Be sure to run `pod lint #{@name}.podspec' to ensure this is a
35
+ # Be sure to run `pod spec lint #{@name}.podspec' to ensure this is a
36
36
  # valid spec.
37
37
  #
38
38
  # Remove all comments before submitting the spec.
@@ -40,6 +40,10 @@ module Pod
40
40
  @project_podfile
41
41
  end
42
42
 
43
+ def headers_symlink_root
44
+ @headers_symlink_root ||= "#{project_pods_root}/Headers"
45
+ end
46
+
43
47
  # Returns the spec at the pat returned from `project_podfile`.
44
48
  def rootspec
45
49
  unless @rootspec
@@ -6,8 +6,16 @@ module Pod
6
6
 
7
7
  install_resource()
8
8
  {
9
- echo "cp -R ${SRCROOT}/Pods/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
10
- cp -R "${SRCROOT}/Pods/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
9
+ case $1 in
10
+ *\.xib)
11
+ echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib ${SRCROOT}/Pods/$1 --sdk ${SDKROOT}"
12
+ ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib ${SRCROOT}/Pods/$1 --sdk ${SDKROOT}
13
+ ;;
14
+ *)
15
+ echo "cp -R ${SRCROOT}/Pods/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
16
+ cp -R "${SRCROOT}/Pods/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
17
+ ;;
18
+ esac
11
19
  }
12
20
  EOS
13
21
 
@@ -72,6 +72,10 @@ module Pod
72
72
  puts "Installing dependencies of: #{@podfile.defined_in_file}" if config.verbose?
73
73
  install_dependencies!
74
74
  root = config.project_pods_root
75
+ headers_symlink_root = config.headers_symlink_root
76
+
77
+ # Clean old header symlinks
78
+ FileUtils.rm_r(headers_symlink_root, :secure => true) if File.exists?(headers_symlink_root)
75
79
 
76
80
  puts "Generating support files" unless config.silent?
77
81
  target_installers.each do |target_installer|
@@ -61,18 +61,11 @@ module Pod
61
61
  "#{@definition.lib_name}-prefix.pch"
62
62
  end
63
63
 
64
- def headers_symlink_path_name
65
- "#{config.project_pods_root}/Headers"
66
- end
67
-
68
64
  # TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support.
69
65
  def install!
70
66
  # First add the target to the project
71
67
  @target = @project.targets.new_static_library(@definition.lib_name)
72
68
 
73
- # Clean old header symlinks
74
- FileUtils.rm_r(headers_symlink_path_name, :secure => true) if File.exists?(headers_symlink_path_name)
75
-
76
69
  header_search_paths = []
77
70
  build_specifications.each do |spec|
78
71
  xcconfig.merge!(spec.xcconfig)
@@ -82,7 +75,7 @@ module Pod
82
75
  end
83
76
  # Symlink header files to Pods/Headers
84
77
  spec.copy_header_mappings.each do |header_dir, files|
85
- target_dir = "#{headers_symlink_path_name}/#{header_dir}"
78
+ target_dir = "#{config.headers_symlink_root}/#{header_dir}"
86
79
  FileUtils.mkdir_p(target_dir)
87
80
  target_dir_real_path = Pathname.new(target_dir).realpath
88
81
  files.each do |file|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 9
9
- version: 0.3.9
8
+ - 10
9
+ version: 0.3.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eloy Duran
@@ -46,6 +46,7 @@ extra_rdoc_files: []
46
46
 
47
47
  files:
48
48
  - lib/cocoapods/command/install.rb
49
+ - lib/cocoapods/command/list.rb
49
50
  - lib/cocoapods/command/repo.rb
50
51
  - lib/cocoapods/command/search.rb
51
52
  - lib/cocoapods/command/setup.rb