diff --git a/bin/seed b/bin/seed index 631d309..b0c9e8d 100755 --- a/bin/seed +++ b/bin/seed @@ -2,4 +2,4 @@ require 'cocoaseeds' -CocoaSeed::Command.run(ARGV) +Seeds::Command.run(ARGV) diff --git a/cocoaseeds.gemspec b/cocoaseeds.gemspec index 814533b..e73e0cd 100644 --- a/cocoaseeds.gemspec +++ b/cocoaseeds.gemspec @@ -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." diff --git a/lib/cocoaseeds.rb b/lib/cocoaseeds.rb index 651fe46..e384d53 100644 --- a/lib/cocoaseeds.rb +++ b/lib/cocoaseeds.rb @@ -1,6 +1,6 @@ require 'xcodeproj' -module CocoaSeed +module Seeds require 'cocoaseeds/version' autoload :Command, 'cocoaseeds/command' diff --git a/lib/cocoaseeds/command.rb b/lib/cocoaseeds/command.rb index 1326bba..06ed36d 100644 --- a/lib/cocoaseeds/command.rb +++ b/lib/cocoaseeds/command.rb @@ -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 diff --git a/lib/cocoaseeds/core.rb b/lib/cocoaseeds/core.rb index b206a11..2d9ca23 100644 --- a/lib/cocoaseeds/core.rb +++ b/lib/cocoaseeds/core.rb @@ -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 @@ -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 @@ -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 diff --git a/lib/cocoaseeds/seed.rb b/lib/cocoaseeds/seed.rb index b728314..8f3a1ec 100644 --- a/lib/cocoaseeds/seed.rb +++ b/lib/cocoaseeds/seed.rb @@ -1,4 +1,4 @@ -module CocoaSeed +module Seeds class Seed attr_accessor :name, :version, :url, :files diff --git a/lib/cocoaseeds/version.rb b/lib/cocoaseeds/version.rb index b90302c..0eac8fd 100644 --- a/lib/cocoaseeds/version.rb +++ b/lib/cocoaseeds/version.rb @@ -1,3 +1,3 @@ -module CocoaSeed +module Seeds VERSION = '0.0.3' end