cocoapods 0.0.2 → 0.0.3
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 +27 -1
- data/lib/cocoapods.rb +1 -1
- data/lib/cocoapods/command/install.rb +3 -3
- data/lib/cocoapods/installer.rb +3 -1
- data/lib/cocoapods/xcode/project.rb +5 -3
- metadata +10 -7
data/README.md
CHANGED
@@ -4,7 +4,8 @@ CocoaPods is an Objective-C library package manager. It tries to take away all
|
|
4
4
|
hard work of maintaining your dependencies, but in a lean and flexible way.
|
5
5
|
|
6
6
|
Its goal is to create a more centralized overview of open-source libraries and
|
7
|
-
unify the way in which we deal with them.
|
7
|
+
unify the way in which we deal with them, like RubyGems[http://rubygems.org]
|
8
|
+
does for the Ruby community.
|
8
9
|
|
9
10
|
CocoaPods will:
|
10
11
|
|
@@ -26,6 +27,8 @@ be fixed in the very near future._**
|
|
26
27
|
You’ll need MacRuby. CocoaPods itself installs through RubyGems, the Ruby
|
27
28
|
package manager:
|
28
29
|
|
30
|
+
**_NOTE: There actually is no MacRuby homebrew formula yet, but it's being worked on as we speak, well, you reading this._**
|
31
|
+
|
29
32
|
$ brew install macruby
|
30
33
|
$ macgem install cocoapods
|
31
34
|
$ pod setup
|
@@ -36,6 +39,25 @@ The load time can be improved a bit by compiling the Ruby source files:
|
|
36
39
|
$ macgem compile cocoapods
|
37
40
|
|
38
41
|
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
* We need specifications for as many libraries as possible, which will help in
|
45
|
+
adoption and finding CocoaPods issues that need to be addressed.
|
46
|
+
|
47
|
+
* There needs to be [proper documentation and guides with screenshots][wiki],
|
48
|
+
screencasts, blog posts, etcetera.
|
49
|
+
|
50
|
+
* The project is still very young, so there's a lot still on the table. Feel
|
51
|
+
free to create [tickets][tickets] with ideas, feedback, and issues.
|
52
|
+
|
53
|
+
* If you're looking for other things to do, check the [tickets][tickets] and
|
54
|
+
[the example specification][example-spec] which contains a lot of ideas we
|
55
|
+
may, or may not, want to support.
|
56
|
+
|
57
|
+
**I will give out push access to the [cocoapods][cocoapods] and
|
58
|
+
[master spec-repo][cocoapods-specs] to anyone that has _one) patch accepted.**
|
59
|
+
|
60
|
+
|
39
61
|
## Contact
|
40
62
|
|
41
63
|
Eloy Durán:
|
@@ -51,6 +73,10 @@ These works are available under the MIT license. See the [LICENSE][license] file
|
|
51
73
|
for more info.
|
52
74
|
|
53
75
|
|
76
|
+
[cocoapods]: https://github.com/alloy/cocoapods
|
77
|
+
[cocoapods-specs]: https://github.com/alloy/cocoapods-specs
|
78
|
+
[tickets]: https://github.com/alloy/cocoapods/issues
|
54
79
|
[ticket]: https://github.com/alloy/cocoapods/issues/3
|
80
|
+
[example-spec]: https://github.com/alloy/cocoapods/blob/master/examples/PodSpec.podspec
|
55
81
|
[wiki]: https://github.com/alloy/cocoapods/wiki
|
56
82
|
[license]: cocoa-pods/blob/master/LICENSE
|
data/lib/cocoapods.rb
CHANGED
@@ -32,13 +32,13 @@ module Pod
|
|
32
32
|
if @podspec.exist?
|
33
33
|
spec = Specification.from_podspec(@podspec)
|
34
34
|
else
|
35
|
-
raise
|
35
|
+
raise Informative, "The specified podspec `#{@podspec}' doesn't exist."
|
36
36
|
end
|
37
37
|
else
|
38
|
-
if config.project_podfile
|
38
|
+
if config.project_podfile
|
39
39
|
spec = Specification.from_podfile(config.project_podfile)
|
40
40
|
else
|
41
|
-
raise
|
41
|
+
raise Informative, "No `Podfile' or `.podspec' file found in the current working directory."
|
42
42
|
end
|
43
43
|
end
|
44
44
|
Installer.new(spec).install!
|
data/lib/cocoapods/installer.rb
CHANGED
@@ -51,10 +51,12 @@ module Pod
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
# TODO we need a spec that tests that all dependencies are first downloaded/installed
|
55
|
+
# before #generate_project is called!
|
54
56
|
def install!
|
55
57
|
puts "Installing dependencies of: #{@specification.defined_in_file}" unless config.silent?
|
56
|
-
generate_project
|
57
58
|
build_specification_sets.each { |set| set.specification.install! }
|
59
|
+
generate_project
|
58
60
|
xcodeproj.create_in(config.project_pods_root)
|
59
61
|
xcconfig.create_in(config.project_pods_root)
|
60
62
|
end
|
@@ -3,6 +3,8 @@ framework 'Foundation'
|
|
3
3
|
module Pod
|
4
4
|
module Xcode
|
5
5
|
class Project
|
6
|
+
include Pod::Config::Mixin
|
7
|
+
|
6
8
|
# TODO this is a workaround for an issue with MacRuby with compiled files
|
7
9
|
# that makes the use of __FILE__ impossible.
|
8
10
|
#
|
@@ -62,10 +64,10 @@ module Pod
|
|
62
64
|
end
|
63
65
|
|
64
66
|
def create_in(pods_root)
|
65
|
-
@template_dir
|
66
|
-
|
67
|
-
end
|
67
|
+
puts " * Copying contents of template directory `#{@template_dir}' to `#{pods_root}'" if config.verbose?
|
68
|
+
FileUtils.cp_r("#{@template_dir}/.", pods_root)
|
68
69
|
pbxproj = pods_root + template_file
|
70
|
+
puts " * Writing Xcode project file to `#{pbxproj}'" if config.verbose?
|
69
71
|
@template.writeToFile(pbxproj.to_s, atomically:true)
|
70
72
|
end
|
71
73
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Eloy Duran
|
@@ -14,8 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-09-17 00:00:00
|
18
|
-
default_executable:
|
18
|
+
date: 2011-09-17 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: |-
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- bin/pod
|
55
55
|
- README.md
|
56
56
|
- LICENSE
|
57
|
-
has_rdoc: true
|
58
57
|
homepage: https://github.com/alloy/cocoapods
|
59
58
|
licenses:
|
60
59
|
- MIT
|
@@ -69,23 +68,27 @@ rdoc_options: []
|
|
69
68
|
require_paths:
|
70
69
|
- lib
|
71
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
+
hash: 3
|
75
76
|
segments:
|
76
77
|
- 0
|
77
78
|
version: "0"
|
78
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
79
81
|
requirements:
|
80
82
|
- - ">="
|
81
83
|
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
82
85
|
segments:
|
83
86
|
- 0
|
84
87
|
version: "0"
|
85
88
|
requirements: []
|
86
89
|
|
87
90
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.
|
91
|
+
rubygems_version: 1.8.7
|
89
92
|
signing_key:
|
90
93
|
specification_version: 3
|
91
94
|
summary: A simple Objective-C library package manager. (Requires MacRuby.)
|