Commit 55706959 authored by Eloy Duran's avatar Eloy Duran

More renaming work.

parent 4ee802d1
...@@ -4,6 +4,6 @@ if $0 == __FILE__ ...@@ -4,6 +4,6 @@ if $0 == __FILE__
$:.unshift File.expand_path('../../lib', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__)
end end
require 'cocoa_pods' require 'cocoapods'
Pod::Command.run(*ARGV) Pod::Command.run(*ARGV)
...@@ -48,7 +48,7 @@ module Pod ...@@ -48,7 +48,7 @@ module Pod
rescue Exception => e rescue Exception => e
unless e.is_a?(Informative) unless e.is_a?(Informative)
puts "Oh no, an error occurred. Please run with `--verbose' and report " \ puts "Oh no, an error occurred. Please run with `--verbose' and report " \
"on https://github.com/alloy/cocoa-pods/issues." "on https://github.com/alloy/cocoapods/issues."
puts "" puts ""
end end
puts e.message puts e.message
......
...@@ -9,12 +9,12 @@ module Pod ...@@ -9,12 +9,12 @@ module Pod
$ pod help repo $ pod help repo
pod repo add NAME URL pod repo add NAME URL
Clones `URL' in the local spec-repos directory at `~/.cocoa-pods'. The Clones `URL' in the local spec-repos directory at `~/.cocoapods'. The
remote can later be referred to by `NAME'. remote can later be referred to by `NAME'.
pod repo update NAME pod repo update NAME
Updates the local clone of the spec-repo `NAME'. If `NAME' is omitted Updates the local clone of the spec-repo `NAME'. If `NAME' is omitted
this will update all spec-repos in `~/.cocoa-pods'.} this will update all spec-repos in `~/.cocoapods'.}
end end
extend Executable extend Executable
......
...@@ -6,7 +6,7 @@ module Pod ...@@ -6,7 +6,7 @@ module Pod
$ pod setup $ pod setup
Creates a directory at `~/.cocoa-pods' which will hold your spec-repos. Creates a directory at `~/.cocoapods' which will hold your spec-repos.
This is where it will create a clone of the public `master' spec-repo.} This is where it will create a clone of the public `master' spec-repo.}
end end
...@@ -15,7 +15,7 @@ module Pod ...@@ -15,7 +15,7 @@ module Pod
end end
def master_repo_url def master_repo_url
'git://github.com/alloy/cocoa-pod-specs.git' 'git://github.com/alloy/cocoapods-specs.git'
end end
def add_master_repo_command def add_master_repo_command
......
...@@ -16,7 +16,7 @@ module Pod ...@@ -16,7 +16,7 @@ module Pod
alias_method :silent?, :silent alias_method :silent?, :silent
def initialize def initialize
@repos_dir = Pathname.new(File.expand_path("~/.cocoa-pods")) @repos_dir = Pathname.new(File.expand_path("~/.cocoapods"))
@clean = true @clean = true
@verbose = false @verbose = false
@silent = false @silent = false
......
...@@ -3,12 +3,11 @@ module Pod ...@@ -3,12 +3,11 @@ module Pod
def self.all def self.all
@sources ||= begin @sources ||= begin
repos_dir = Config.instance.repos_dir repos_dir = Config.instance.repos_dir
sources = repos_dir.children.select(&:directory?).map { |repo| new(repo) } unless repos_dir.exist?
if sources.empty?
raise Informative, "No spec repos found in `#{repos_dir}'. " \ raise Informative, "No spec repos found in `#{repos_dir}'. " \
"To fetch the `master' repo run: $ pod setup" "To fetch the `master' repo run: $ pod setup"
end end
sources repos_dir.children.select(&:directory?).map { |repo| new(repo) }
end end
end end
......
...@@ -13,9 +13,6 @@ require 'spec_helper/git' ...@@ -13,9 +13,6 @@ require 'spec_helper/git'
require 'spec_helper/log' require 'spec_helper/log'
require 'spec_helper/temporary_directory' require 'spec_helper/temporary_directory'
#TMP_DIR = SpecHelper::TemporaryDirectory.temporary_directory
#TMP_COCOA_PODS_DIR = File.join(TMP_DIR, 'cocoa-pods')
context_class = defined?(BaconContext) ? BaconContext : Bacon::Context context_class = defined?(BaconContext) ? BaconContext : Bacon::Context
context_class.class_eval do context_class.class_eval do
include Pod::Config::Mixin include Pod::Config::Mixin
......
...@@ -7,7 +7,7 @@ module SpecHelper ...@@ -7,7 +7,7 @@ module SpecHelper
module Git module Git
def tmp_repos_path def tmp_repos_path
SpecHelper.temporary_directory + 'cocoa-pods' SpecHelper.temporary_directory + 'cocoapods'
end end
module_function :tmp_repos_path module_function :tmp_repos_path
......
...@@ -15,7 +15,7 @@ describe "Pod::Command::Setup" do ...@@ -15,7 +15,7 @@ describe "Pod::Command::Setup" do
it "returns the URL of the `master' spec-repo" do it "returns the URL of the `master' spec-repo" do
command = Pod::Command::Setup.new(argv) command = Pod::Command::Setup.new(argv)
command.master_repo_url.should == 'git://github.com/alloy/cocoa-pod-specs.git' command.master_repo_url.should == 'git://github.com/alloy/cocoapods-specs.git'
end end
end end
......
...@@ -15,7 +15,7 @@ describe "Pod::Config" do ...@@ -15,7 +15,7 @@ describe "Pod::Config" do
end end
it "returns the path to the spec-repos dir" do it "returns the path to the spec-repos dir" do
config.repos_dir.should == Pathname.new("~/.cocoa-pods").expand_path config.repos_dir.should == Pathname.new("~/.cocoapods").expand_path
end end
describe "concerning a user's project, which is expected in the current working directory" do describe "concerning a user's project, which is expected in the current working directory" do
......
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