Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added submodules and improved Rake tasks.

  • Loading branch information...
commit 8b3115e3941c742c0c269ff29b71fdace749b2ee 1 parent 905600b
@fabiopelosin fabiopelosin authored
View
1  .gitignore
@@ -2,6 +2,5 @@
/.bundle
/.sass-cache
build/
-gems/
.yardoc/
docs_data/
View
12 .gitmodules
@@ -0,0 +1,12 @@
+[submodule "gems/CLAide"]
+ path = gems/CLAide
+ url = git@github.com:CocoaPods/CLAide.git
+[submodule "gems/Xcodeproj"]
+ path = gems/Xcodeproj
+ url = git@github.com:CocoaPods/Xcodeproj.git
+[submodule "gems/Core"]
+ path = gems/Core
+ url = git@github.com:CocoaPods/Core.git
+[submodule "gems/CocoaPods"]
+ path = gems/CocoaPods
+ url = git@github.com:CocoaPods/CocoaPods.git
View
42 Rakefile
@@ -1,34 +1,8 @@
-# The gems are stored in the `gems` directory which is not under source
-# control.
-#
-# At the moment I'm preferring this approach because I can add the gems with
-# the SSH url. Without forcing them on users without access to it. It might
-# make sense convert to submodules.
-#
-namespace :gems do
-
- desc "Downloads the gems in a temporary directory"
- task :bootstrap do
- FileUtils.mkdir_p 'gems'
- Dir.chdir 'gems' do
- sh 'git clone git@github.com:CocoaPods/CocoaPods.git' unless File.exist?("CocoaPods")
- sh 'git clone git@github.com:CocoaPods/Core.git' unless File.exist?("Core")
- sh 'git clone git@github.com:CocoaPods/Xcodeproj.git' unless File.exist?("Xcodeproj")
- sh 'git clone git@github.com:CocoaPods/CLAide.git' unless File.exist?("CLAide")
- end
- end
-
- desc "Downloads the gems in a temporary directory"
- task :update => :bootstrap do
- FileUtils.mkdir_p 'gems'
- Dir.glob('gems/*').each do |subdir|
- Dir.chdir subdir do
- puts "Updating #{subdir}"
- sh 'git pull'
- end
- end
- end
+desc "Downloads the gems in a temporary directory"
+task :bootstrap do
+ sh "git submodule update --init"
+ FileUtils.mkdir_p 'docs_data'
end
#-----------------------------------------------------------------------------#
@@ -53,6 +27,7 @@ namespace :generate do
desc "Generates the data for the dsl."
task :dsl do
+ puts "\e[1;33mBuilding DSL Data\e[0m"
dsls.each do |name|
dsl_file = (ROOT + "gems/Core/lib/cocoapods-core/#{name.downcase}/dsl.rb").to_s
@@ -65,6 +40,8 @@ namespace :generate do
desc "Generates the data for the gems."
task :gems do
+ puts "\e[1;33mBuilding Gems Data\e[0m"
+
gems.each do |name|
github_name = name == 'CocoaPods-Core' ? 'Core' : name
generator = Pod::Doc::Generators::Gem.new(ROOT + "gems/#{github_name}/#{name}.gemspec")
@@ -77,6 +54,7 @@ namespace :generate do
desc "Generates the data for the commands."
task :commands do
+ # puts "\e[1;33mBuilding Commands Data\e[0m"
# TODO
end
@@ -85,6 +63,7 @@ namespace :generate do
#
desc "Generates the data for the search."
task :search do
+ puts "\e[1;33mBuilding Search Data\e[0m"
# [Hash{String=>Hash{String=>String}]
result = {
@@ -127,8 +106,7 @@ end
desc "Generates the data for the commands."
task :build => 'generate:all' do
- # sh "middleman build"
- `middleman build`
+ sh "middleman build"
end
#-----------------------------------------------------------------------------#
View
6 config.rb
@@ -40,7 +40,11 @@
# Loading data
-navigation_data = YAML::load(File.open('docs_data/navigation.yaml'))
+navigation_data = {
+ 'dsl' => %w[ podfile specification commands],
+ 'gems' => %w[ CocoaPods CocoaPods-Core Xcodeproj CLAide ]
+}
+
content_for :dsl_data do navigation_data * '<br>' end
# Dynamic pages
1  gems/CLAide
@@ -0,0 +1 @@
+Subproject commit 640812b48fa13f4a36de38491ab1fb6132736a0e
1  gems/CocoaPods
@@ -0,0 +1 @@
+Subproject commit cfebf43888187a399c21e8514399d94b04343a29
1  gems/Core
@@ -0,0 +1 @@
+Subproject commit adb68aafb0511894b1ac5358eef793c2d12dd689
1  gems/Xcodeproj
@@ -0,0 +1 @@
+Subproject commit fbb5c11844b99bd954b2945098502dde0641c311
View
2  source/typeahead.json
1 addition, 1 deletion not shown
Please sign in to comment.
Something went wrong with that request. Please try again.