Skip to content
Browse files

Rename cocoa_pods => cocoapods.

  • Loading branch information...
1 parent 2b4c37d commit 4ee802d15cb3e8149cdc5e90413791102b5dad92 @alloy alloy committed
View
5 Rakefile
@@ -4,3 +4,8 @@ task :compile do
sh "macrubyc #{file} -C -o #{file}o"
end
end
+
+desc "Remove rbo files"
+task :clean do
+ sh "rm lib/**/*.rbo"
+end
View
30 lib/cocoa_pods.rb
@@ -1,30 +0,0 @@
-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
-
View
30 lib/cocoapods.rb
@@ -0,0 +1,30 @@
+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
+
View
8 lib/cocoa_pods/command.rb → lib/cocoapods/command.rb
@@ -1,9 +1,9 @@
module Pod
class Command
- autoload :Install, 'cocoa_pods/command/install'
- autoload :Repo, 'cocoa_pods/command/repo'
- autoload :Setup, 'cocoa_pods/command/setup'
- autoload :Spec, 'cocoa_pods/command/spec'
+ autoload :Install, 'cocoapods/command/install'
+ autoload :Repo, 'cocoapods/command/repo'
+ autoload :Setup, 'cocoapods/command/setup'
+ autoload :Spec, 'cocoapods/command/spec'
class Help < Informative
def initialize(command_class, argv)
View
0 lib/cocoa_pods/command/install.rb → lib/cocoapods/command/install.rb
File renamed without changes.
View
0 lib/cocoa_pods/command/repo.rb → lib/cocoapods/command/repo.rb
File renamed without changes.
View
0 lib/cocoa_pods/command/setup.rb → lib/cocoapods/command/setup.rb
File renamed without changes.
View
0 lib/cocoa_pods/command/spec.rb → lib/cocoapods/command/spec.rb
File renamed without changes.
View
0 lib/cocoa_pods/config.rb → lib/cocoapods/config.rb
File renamed without changes.
View
0 lib/cocoa_pods/dependency.rb → lib/cocoapods/dependency.rb
File renamed without changes.
View
0 lib/cocoa_pods/downloader.rb → lib/cocoapods/downloader.rb
File renamed without changes.
View
0 lib/cocoa_pods/executable.rb → lib/cocoapods/executable.rb
File renamed without changes.
View
0 lib/cocoa_pods/installer.rb → lib/cocoapods/installer.rb
File renamed without changes.
View
0 lib/cocoa_pods/resolver.rb → lib/cocoapods/resolver.rb
File renamed without changes.
View
0 lib/cocoa_pods/source.rb → lib/cocoapods/source.rb
File renamed without changes.
View
2 lib/cocoa_pods/specification.rb → lib/cocoapods/specification.rb
@@ -1,6 +1,6 @@
module Pod
class Specification
- autoload :Set, 'cocoa_pods/specification/set'
+ autoload :Set, 'cocoapods/specification/set'
def self.from_podfile(path)
if path.exist?
View
0 lib/cocoa_pods/specification/set.rb → lib/cocoapods/specification/set.rb
File renamed without changes.
View
0 lib/cocoa_pods/version.rb → lib/cocoapods/version.rb
File renamed without changes.
View
0 lib/cocoa_pods/xcode/config.rb → lib/cocoapods/xcode/config.rb
File renamed without changes.
View
2 lib/cocoa_pods/xcode/project.rb → lib/cocoapods/xcode/project.rb
@@ -7,7 +7,7 @@ class Project
# 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?$} }
+ file = $LOADED_FEATURES.find { |file| file =~ %r{cocoapods/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
View
2 spec/spec_helper.rb
@@ -5,7 +5,7 @@
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$:.unshift((ROOT + 'lib').to_s)
-require 'cocoa_pods'
+require 'cocoapods'
$:.unshift((ROOT + 'spec').to_s)
require 'spec_helper/fixture'

0 comments on commit 4ee802d

Please sign in to comment.
Something went wrong with that request. Please try again.