Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
2b4c37d3
Commit
2b4c37d3
authored
Sep 17, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make compiling the source files work, thanks @ferrous26!
parent
e3078191
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
5 deletions
+16
-5
.gitignore
.gitignore
+1
-0
Rakefile
Rakefile
+6
-0
cocoa_pods.rb
lib/cocoa_pods.rb
+1
-0
setup.rb
lib/cocoa_pods/command/setup.rb
+0
-2
specification.rb
lib/cocoa_pods/specification.rb
+2
-2
project.rb
lib/cocoa_pods/xcode/project.rb
+6
-1
No files found.
.gitignore
View file @
2b4c37d3
*.swp
*.swo
*.rbo
.DS_Store
tmp
examples/Pods
...
...
Rakefile
0 → 100644
View file @
2b4c37d3
desc
"Compile the source files (as rbo files)"
task
:compile
do
Dir
.
glob
(
"lib/**/*.rb"
).
each
do
|
file
|
sh
"macrubyc
#{
file
}
-C -o
#{
file
}
o"
end
end
lib/cocoa_pods.rb
View file @
2b4c37d3
...
...
@@ -27,3 +27,4 @@ class Pathname
Dir
.
glob
((
self
+
pattern
).
to_s
).
map
{
|
f
|
Pathname
.
new
(
f
)
}
end
end
lib/cocoa_pods/command/setup.rb
View file @
2b4c37d3
require
'cocoa_pods/command/repo'
module
Pod
class
Command
class
Setup
<
Command
...
...
lib/cocoa_pods/specification.rb
View file @
2b4c37d3
require
'cocoa_pods/specification/set'
module
Pod
class
Specification
autoload
:Set
,
'cocoa_pods/specification/set'
def
self
.
from_podfile
(
path
)
if
path
.
exist?
spec
=
new
...
...
lib/cocoa_pods/xcode/project.rb
View file @
2b4c37d3
...
...
@@ -3,7 +3,12 @@ framework 'Foundation'
module
Pod
module
Xcode
class
Project
TEMPLATES_DIR
=
Pathname
.
new
(
File
.
expand_path
(
'../../../../xcode-project-templates'
,
__FILE__
))
# TODO this is a workaround for an issue with MacRuby with compiled files
# that makes the use of __FILE__ impossible.
#
#TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', __FILE__))
file
=
$LOADED_FEATURES
.
find
{
|
file
|
file
=~
%r{cocoa_pods/xcode/project
\.
rbo?$}
}
TEMPLATES_DIR
=
Pathname
.
new
(
File
.
expand_path
(
'../../../../xcode-project-templates'
,
file
))
# TODO see if we really need different templates for iOS and OS X
def
self
.
ios_static_library
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment