cocoapods 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -0
- data/lib/cocoapods.rb +2 -1
- data/lib/cocoapods/command.rb +3 -0
- data/lib/cocoapods/command/list.rb +26 -0
- data/lib/cocoapods/command/spec.rb +1 -1
- data/lib/cocoapods/config.rb +4 -0
- data/lib/cocoapods/generator/copy_resources_script.rb +10 -2
- data/lib/cocoapods/installer.rb +4 -0
- data/lib/cocoapods/installer/target_installer.rb +1 -8
- metadata +3 -2
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)
|
data/lib/cocoapods.rb
CHANGED
data/lib/cocoapods/command.rb
CHANGED
@@ -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.
|
data/lib/cocoapods/config.rb
CHANGED
@@ -6,8 +6,16 @@ module Pod
|
|
6
6
|
|
7
7
|
install_resource()
|
8
8
|
{
|
9
|
-
|
10
|
-
|
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
|
|
data/lib/cocoapods/installer.rb
CHANGED
@@ -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 = "#{
|
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
|
-
version: 0.3.
|
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
|