Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Rename module from CocoaSeed to Seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
devxoul committed May 8, 2015
1 parent 424fc0a commit 78cd1f8
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bin/seed
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

require 'cocoaseeds'

CocoaSeed::Command.run(ARGV)
Seeds::Command.run(ARGV)
2 changes: 1 addition & 1 deletion cocoaseeds.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'date'

Gem::Specification.new do |s|
s.name = 'cocoaseeds'
s.version = CocoaSeed::VERSION
s.version = Seeds::VERSION
s.date = Date.today
s.summary = "Git Submodule Alternative for Cocoa."
s.description = "Git Submodule Alternative for Cocoa."
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoaseeds.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'xcodeproj'

module CocoaSeed
module Seeds
require 'cocoaseeds/version'

autoload :Command, 'cocoaseeds/command'
Expand Down
6 changes: 3 additions & 3 deletions lib/cocoaseeds/command.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'colorize'

module CocoaSeed
module Seeds
class Command
def self.run(argv)
case argv[0]
when 'install'
CocoaSeed::Core.new(Dir.pwd).install
Seeds::Core.new(Dir.pwd).install
when '--version'
puts CocoaSeed::VERSION
puts Seeds::VERSION
else
self.help
end
Expand Down
6 changes: 3 additions & 3 deletions lib/cocoaseeds/core.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'fileutils'
require 'yaml'

module CocoaSeed
module Seeds
class Core
attr_reader :root_path, :seedfile_path, :lockfile_path
attr_accessor :project, :seedfile, :lockfile
Expand Down Expand Up @@ -60,7 +60,7 @@ def analyze_dependencies
if self.lockfile
locks = YAML.load(self.lockfile)
locks["SEEDS"].each do |lock|
seed = CocoaSeed::Seed.new
seed = Seeds::Seed.new
seed.name = lock.split(' (')[0]
seed.version = lock.split('(')[1].split(')')[0]
self.locks[seed.name] = seed
Expand All @@ -72,7 +72,7 @@ def analyze_dependencies
end

def github(repo, tag, options={})
seed = CocoaSeed::Seed::GitHub.new
seed = Seeds::Seed::GitHub.new
seed.url = "https://github.com/#{repo}"
seed.name = repo.split('/')[1]
seed.version = tag
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoaseeds/seed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module CocoaSeed
module Seeds
class Seed
attr_accessor :name, :version, :url, :files

Expand Down
2 changes: 1 addition & 1 deletion lib/cocoaseeds/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CocoaSeed
module Seeds
VERSION = '0.0.3'
end

0 comments on commit 78cd1f8

Please sign in to comment.