Commit 4ee802d1 authored by Eloy Duran's avatar Eloy Duran

Rename cocoa_pods => cocoapods.

parent 2b4c37d3
...@@ -4,3 +4,8 @@ task :compile do ...@@ -4,3 +4,8 @@ task :compile do
sh "macrubyc #{file} -C -o #{file}o" sh "macrubyc #{file} -C -o #{file}o"
end end
end end
desc "Remove rbo files"
task :clean do
sh "rm lib/**/*.rbo"
end
module Pod
class Informative < StandardError
end
autoload :Command, 'cocoa_pods/command'
autoload :Config, 'cocoa_pods/config'
autoload :Dependency, 'cocoa_pods/dependency'
autoload :Downloader, 'cocoa_pods/downloader'
autoload :Executable, 'cocoa_pods/executable'
autoload :Installer, 'cocoa_pods/installer'
autoload :Resolver, 'cocoa_pods/resolver'
autoload :Source, 'cocoa_pods/source'
autoload :Spec, 'cocoa_pods/specification'
autoload :Specification, 'cocoa_pods/specification'
autoload :Version, 'cocoa_pods/version'
module Xcode
autoload :Config, 'cocoa_pods/xcode/config'
autoload :Project, 'cocoa_pods/xcode/project'
end
autoload :Pathname, 'pathname'
end
class Pathname
def glob(pattern = '')
Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) }
end
end
module Pod
class Informative < StandardError
end
autoload :Command, 'cocoapods/command'
autoload :Config, 'cocoapods/config'
autoload :Dependency, 'cocoapods/dependency'
autoload :Downloader, 'cocoapods/downloader'
autoload :Executable, 'cocoapods/executable'
autoload :Installer, 'cocoapods/installer'
autoload :Resolver, 'cocoapods/resolver'
autoload :Source, 'cocoapods/source'
autoload :Spec, 'cocoapods/specification'
autoload :Specification, 'cocoapods/specification'
autoload :Version, 'cocoapods/version'
module Xcode
autoload :Config, 'cocoapods/xcode/config'
autoload :Project, 'cocoapods/xcode/project'
end
autoload :Pathname, 'pathname'
end
class Pathname
def glob(pattern = '')
Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) }
end
end
module Pod module Pod
class Command class Command
autoload :Install, 'cocoa_pods/command/install' autoload :Install, 'cocoapods/command/install'
autoload :Repo, 'cocoa_pods/command/repo' autoload :Repo, 'cocoapods/command/repo'
autoload :Setup, 'cocoa_pods/command/setup' autoload :Setup, 'cocoapods/command/setup'
autoload :Spec, 'cocoa_pods/command/spec' autoload :Spec, 'cocoapods/command/spec'
class Help < Informative class Help < Informative
def initialize(command_class, argv) def initialize(command_class, argv)
......
module Pod module Pod
class Specification class Specification
autoload :Set, 'cocoa_pods/specification/set' autoload :Set, 'cocoapods/specification/set'
def self.from_podfile(path) def self.from_podfile(path)
if path.exist? if path.exist?
......
...@@ -7,7 +7,7 @@ module Pod ...@@ -7,7 +7,7 @@ module Pod
# that makes the use of __FILE__ impossible. # that makes the use of __FILE__ impossible.
# #
#TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', __FILE__)) #TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', __FILE__))
file = $LOADED_FEATURES.find { |file| file =~ %r{cocoa_pods/xcode/project\.rbo?$} } file = $LOADED_FEATURES.find { |file| file =~ %r{cocoapods/xcode/project\.rbo?$} }
TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', file)) TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', file))
# TODO see if we really need different templates for iOS and OS X # TODO see if we really need different templates for iOS and OS X
......
...@@ -5,7 +5,7 @@ require 'pathname' ...@@ -5,7 +5,7 @@ require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__)) ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$:.unshift((ROOT + 'lib').to_s) $:.unshift((ROOT + 'lib').to_s)
require 'cocoa_pods' require 'cocoapods'
$:.unshift((ROOT + 'spec').to_s) $:.unshift((ROOT + 'spec').to_s)
require 'spec_helper/fixture' require 'spec_helper/fixture'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment