Skip to content
Browse files

Started renaming to TicGit-ng

  • Loading branch information...
1 parent a5b76b0 commit 678723573f491cd0011a00866bfdbc72f8d6a4f4 @jeffWelling jeffWelling committed Feb 14, 2011
View
12 bin/ti
@@ -1,19 +1,13 @@
#!/usr/bin/env ruby
-
-# This is a command line client that does all the actual tic commands
-#
-# author : Scott Chacon (schacon@gmail.com)
-#
-
require 'rubygems'
require 'fileutils'
# Add the library from the source tree to the front of the load path.
# This allows ti to run without first installing a ticgit gem, which is
# important when testing multiple branches of development.
-if File.exist? File.join('lib', 'ticgit.rb')
+if File.exist? File.join('lib', 'ticgit-ng.rb')
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
end
-require 'ticgit'
+require 'ticgit-ng'
-TicGit::CLI.execute
+TicGitNG::CLI.execute
View
8 lib/ticgit.rb → lib/ticgit-ng.rb
@@ -23,10 +23,10 @@
# Author:: Scott Chacon (mailto:schacon@gmail.com)
# License:: MIT License
#
-module TicGit
- autoload :VERSION, 'ticgit/version'
- autoload :Comment, 'ticgit/comment'
- autoload :Ticket, 'ticgit/ticket'
+module TicGitNG
+ autoload :VERSION, 'ticgit-ng/version'
+ autoload :Comment, 'ticgit-ng/comment'
+ autoload :Ticket, 'ticgit-ng/ticket'
# options
# :logger => Logger.new(STDOUT)
View
26 lib/ticgit/base.rb → lib/ticgit-ng/base.rb
@@ -1,4 +1,4 @@
-module TicGit
+module TicGitNG
class NoRepoFound < StandardError;end
class Base
@@ -15,7 +15,7 @@ def initialize(git_dir, opts = {})
proj = Ticket.clean_string(@git.dir.path)
- @tic_dir = opts[:tic_dir] || '~/.ticgit'
+ @tic_dir = opts[:tic_dir] || '~/.ticgit-ng'
@tic_working = opts[:working_directory] || File.expand_path(File.join(@tic_dir, proj, 'working'))
@tic_index = opts[:index_file] || File.expand_path(File.join(@tic_dir, proj, 'index'))
@@ -32,7 +32,7 @@ def initialize(git_dir, opts = {})
if File.file?(@state)
load_state
else
- reset_ticgit
+ reset_ticgitng
end
end
@@ -68,36 +68,36 @@ def load_state
# returns new Ticket
def ticket_new(title, options = {})
- t = TicGit::Ticket.create(self, title, options)
- reset_ticgit
- TicGit::Ticket.open(self, t.ticket_name, tickets[t.ticket_name])
+ t = TicGitNG::Ticket.create(self, title, options)
+ reset_ticgitng
+ TicGitNG::Ticket.open(self, t.ticket_name, tickets[t.ticket_name])
end
#This is a legacy function from back when ticgit needed to have its
#cache reset in order to avoid cache corruption.
- def reset_ticgit
+ def reset_ticgitng
tickets
save_state
end
# returns new Ticket
def ticket_comment(comment, ticket_id = nil)
if t = ticket_revparse(ticket_id)
- ticket = TicGit::Ticket.open(self, t, tickets[t])
+ ticket = TicGitNG::Ticket.open(self, t, tickets[t])
ticket.add_comment(comment)
- reset_ticgit
+ reset_ticgitng
end
end
# returns array of Tickets
def ticket_list(options = {})
- reset_ticgit
+ reset_ticgitng
ts = []
@last_tickets = []
@config['list_options'] ||= {}
tickets.to_a.each do |name, t|
- ts << TicGit::Ticket.open(self, name, t)
+ ts << TicGitNG::Ticket.open(self, name, t)
end
if name = options[:saved]
@@ -185,9 +185,9 @@ def ticket_list(options = {})
# returns single Ticket
def ticket_show(ticket_id = nil)
# ticket_id can be index of last_tickets, partial sha or nil => last ticket
- reset_ticgit
+ reset_ticgitng
if t = ticket_revparse(ticket_id)
- return TicGit::Ticket.open(self, t, tickets[t])
+ return TicGitNG::Ticket.open(self, t, tickets[t])
end
end
View
0 lib/ticgit/cli.rb → lib/ticgit-ng/cli.rb
File renamed without changes.
View
0 lib/ticgit/command.rb → lib/ticgit-ng/command.rb
File renamed without changes.
View
0 lib/ticgit/command/assign.rb → lib/ticgit-ng/command/assign.rb
File renamed without changes.
View
0 lib/ticgit/command/checkout.rb → lib/ticgit-ng/command/checkout.rb
File renamed without changes.
View
0 lib/ticgit/command/comment.rb → lib/ticgit-ng/command/comment.rb
File renamed without changes.
View
0 lib/ticgit/command/list.rb → lib/ticgit-ng/command/list.rb
File renamed without changes.
View
0 lib/ticgit/command/milestone.rb → lib/ticgit-ng/command/milestone.rb
File renamed without changes.
View
0 lib/ticgit/command/new.rb → lib/ticgit-ng/command/new.rb
File renamed without changes.
View
0 lib/ticgit/command/points.rb → lib/ticgit-ng/command/points.rb
File renamed without changes.
View
0 lib/ticgit/command/recent.rb → lib/ticgit-ng/command/recent.rb
File renamed without changes.
View
0 lib/ticgit/command/show.rb → lib/ticgit-ng/command/show.rb
File renamed without changes.
View
0 lib/ticgit/command/state.rb → lib/ticgit-ng/command/state.rb
File renamed without changes.
View
0 lib/ticgit/command/sync.rb → lib/ticgit-ng/command/sync.rb
File renamed without changes.
View
0 lib/ticgit/command/tag.rb → lib/ticgit-ng/command/tag.rb
File renamed without changes.
View
0 lib/ticgit/comment.rb → lib/ticgit-ng/comment.rb
File renamed without changes.
View
0 lib/ticgit/ticket.rb → lib/ticgit-ng/ticket.rb
File renamed without changes.
View
0 lib/ticgit/version.rb → lib/ticgit-ng/version.rb
File renamed without changes.

0 comments on commit 6787235

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