Skip to content
Browse files

rename project

  • Loading branch information...
1 parent 5c307f7 commit 7370eb6e3a0fda3e8f12e14a7fc65a8277d91dc7 @jugyo committed Jan 7, 2010
View
8 README.markdown
@@ -1,4 +1,4 @@
-Tester
+CiLite
======
Continuation testing tool.
@@ -9,18 +9,18 @@ Usage
run:
% cd your_git_repository
- % tester
+ % cilite
and open http://localhost:4567/
help:
- % tester -h
+ % cilite -h
Installation
------
- gem install tester
+ gem install cilite
Copyright
------
View
6 Rakefile
@@ -4,11 +4,11 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
- gem.name = "tester"
+ gem.name = "cilite"
gem.summary = %Q{Continuation testing tool.}
gem.description = %Q{Continuation testing tool for project that use git.}
gem.email = "jugyo.org@gmail.com"
- gem.homepage = "http://github.com/jugyo/tester"
+ gem.homepage = "http://github.com/jugyo/cilite"
gem.authors = ["jugyo"]
gem.add_development_dependency "shoulda", ">= 0"
gem.add_development_dependency "rr", ">= 0"
@@ -49,7 +49,7 @@ Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "tester #{version}"
+ rdoc.title = "cilite #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
6 bin/tester
@@ -3,7 +3,7 @@
$:.unshift(File.dirname(__FILE__) + "/../lib")
require 'rubygems'
-require 'tester'
+require 'cilite'
require 'choice'
Choice.options do
@@ -74,13 +74,13 @@ end
options = Choice.choices
-Tester::Runner.start(
+CiLite::Runner.start(
:branch => options[:branch],
:test_command => options[:command],
:interval => options[:interval]
)
-Tester::Server.run!(
+CiLite::Server.run!(
:host => options[:host],
:port => options[:port]
)
View
4 lib/tester.rb → lib/cilite.rb
@@ -7,10 +7,10 @@
require 'singleton'
require 'sinatra'
-work_dir = '.tester'
+work_dir = '.cilite'
Dir.mkdir(work_dir) unless File.exists?(work_dir)
KVS.dir = work_dir
-Dir[File.join(File.dirname(__FILE__), 'tester', '*.rb')].each do |filename|
+Dir[File.join(File.dirname(__FILE__), 'cilite', '*.rb')].each do |filename|
require filename
end
View
2 lib/tester/checker.rb → lib/cilite/checker.rb
@@ -1,4 +1,4 @@
-module Tester
+module CiLite
class Checker
attr_reader :branch
attr_accessor :last_hash
View
2 lib/tester/log.rb → lib/cilite/log.rb
@@ -1,4 +1,4 @@
-module Tester
+module CiLite
module Log
class << self
def []=(hash, result)
View
2 lib/tester/runner.rb → lib/cilite/runner.rb
@@ -1,4 +1,4 @@
-module Tester
+module CiLite
class Runner
def self.start(options)
self.new(options).start
View
2 lib/tester/server.rb → lib/cilite/server.rb
@@ -1,4 +1,4 @@
-module Tester
+module CiLite
class Server < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))
View
2 lib/tester/test_process.rb → lib/cilite/test_process.rb
@@ -1,4 +1,4 @@
-module Tester
+module CiLite
class TestProcess < Struct.new(:status, :pid)
attr_reader :command, :status, :pid, :output
View
0 lib/tester/views/index.haml → lib/cilite/views/index.haml
File renamed without changes.
View
6 lib/tester/views/layout.haml → lib/cilite/views/layout.haml
@@ -1,16 +1,16 @@
%html
%head
%meta{:"http-equiv"=>"Content-Type", :content=>"text/html;charset=UTF-8"}
- %title Tester
+ %title CiLite
%link{:rel=>'stylesheet', :type=>'text/css', :href=>'/css', :media=>'screen,tv,projection'}
%body
#wrap
#header
%h1
- %a{:href => '/'} Tester
+ %a{:href => '/'} CiLite
#content
= yield
#footer
- %a{:href => 'http://github.com/jugyo/tester'} Tester
+ %a{:href => 'http://github.com/jugyo/cilite'} CiLite
View
0 lib/tester/views/show.haml → lib/cilite/views/show.haml
File renamed without changes.
View
0 lib/tester/views/styles.css → lib/cilite/views/styles.css
File renamed without changes.
View
0 lib/tester/views/styles.sass → lib/cilite/views/styles.sass
File renamed without changes.
View
2 test/helper.rb
@@ -5,7 +5,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'tester'
+require 'cilite'
class Test::Unit::TestCase
include RR::Adapters::TestUnit
View
2 test/test_tester.rb → test/test_cilite.rb
@@ -1,7 +1,7 @@
require 'helper'
require 'tmpdir'
-class TestTester < Test::Unit::TestCase
+class TestCiLite < Test::Unit::TestCase
should 'test' do
end
end
View
4 test/tester.ru
@@ -1,3 +1,3 @@
$:.unshift(File.dirname(__FILE__) + "/../lib")
-require 'tester'
-run Tester::Server
+require 'cilite'
+run CiLite::Server
View
2 test/tester/test_checker.rb
@@ -6,7 +6,7 @@ class TestChecker < Test::Unit::TestCase
setup do
KVS.dir = 'foo'
KVS['HEAD'] = ''
- @checker = Tester::Checker.new('master')
+ @checker = CiLite::Checker.new('master')
stub(@checker).update
end
View
12 test/tester/test_log.rb
@@ -8,12 +8,12 @@ class TestLog < Test::Unit::TestCase
end
should 'save log' do
- Tester::Log['test1'] = {:foo => :bar}
- assert_equal(['test1'], Tester::Log.logs)
- assert_equal({:foo => :bar}, Tester::Log['test1'])
- Tester::Log['test2'] = {:FOO => :BAR}
- assert_equal(['test1', 'test2'], Tester::Log.logs)
- assert_equal({:FOO => :BAR}, Tester::Log['test2'])
+ CiLite::Log['test1'] = {:foo => :bar}
+ assert_equal(['test1'], CiLite::Log.logs)
+ assert_equal({:foo => :bar}, CiLite::Log['test1'])
+ CiLite::Log['test2'] = {:FOO => :BAR}
+ assert_equal(['test1', 'test2'], CiLite::Log.logs)
+ assert_equal({:FOO => :BAR}, CiLite::Log['test2'])
end
end
end
View
6 test/tester/test_runner.rb
@@ -3,7 +3,7 @@
class TestRunner < Test::Unit::TestCase
context 'main' do
setup do
- @runner = Tester::Runner.new({:branch => 'foo', :test_command => 'bar', :interval => 10})
+ @runner = CiLite::Runner.new({:branch => 'foo', :test_command => 'bar', :interval => 10})
end
should 'Runner.new' do
@@ -16,8 +16,8 @@ class TestRunner < Test::Unit::TestCase
stub(test_process_stub).to_hash { {:foo => :bar} }
stub(test_process_stub).status { 0 }
stub(test_process_stub).output { 'output' }
- mock(Tester::TestProcess).new(@runner.config[:test_command]) { test_process_stub }
- mock(Tester::Log).[]=.with_any_args
+ mock(CiLite::TestProcess).new(@runner.config[:test_command]) { test_process_stub }
+ mock(CiLite::Log).[]=.with_any_args
stub(Time).now { 'now' }
$stdout = StringIO.new
View
2 test/tester/test_test_process.rb
@@ -4,7 +4,7 @@
class TestTestProcess < Test::Unit::TestCase
context 'main' do
setup do
- @test = Tester::TestProcess.new('foo')
+ @test = CiLite::TestProcess.new('foo')
end
should 'pass the test' do

0 comments on commit 7370eb6

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