Permalink
Browse files

Renaming project to a_b_server

  • Loading branch information...
1 parent f1903ab commit 4d1e1827e846442d7cbbb7b92d4ac7b03f71d907 @winton committed Nov 20, 2010
Showing with 57 additions and 57 deletions.
  1. +6 −6 Rakefile
  2. +9 −9 a_b.gemspec → a_b_server.gemspec
  3. +1 −1 config.ru
  4. +1 −1 config/database.example.yml
  5. +1 −1 db/migrate/011_requests_indexes.rb
  6. +1 −1 db/migrate/012_ips_indexes.rb
  7. +1 −1 db/migrate/013_more_indexes.rb
  8. +0 −6 lib/a_b/boot/controller.rb
  9. +0 −6 lib/a_b/boot/helper.rb
  10. +0 −6 lib/a_b/boot/model.rb
  11. +0 −3 lib/a_b/version.rb
  12. +3 −3 lib/{a_b.rb → a_b_server.rb}
  13. 0 lib/{a_b → a_b_server}/boot/active_wrapper.rb
  14. 0 lib/{a_b → a_b_server}/boot/application.rb
  15. +1 −1 lib/{a_b → a_b_server}/boot/console.rb
  16. +6 −0 lib/a_b_server/boot/controller.rb
  17. 0 lib/{a_b → a_b_server}/boot/delayed_job.rb
  18. 0 lib/{a_b → a_b_server}/boot/haml.rb
  19. +6 −0 lib/a_b_server/boot/helper.rb
  20. +1 −1 lib/{a_b → a_b_server}/boot/job.rb
  21. 0 lib/{a_b → a_b_server}/boot/lilypad.rb
  22. +6 −0 lib/a_b_server/boot/model.rb
  23. +1 −1 lib/{a_b → a_b_server}/boot/sinatra.rb
  24. 0 lib/{a_b → a_b_server}/controller/api.rb
  25. 0 lib/{a_b → a_b_server}/controller/pulse.rb
  26. 0 lib/{a_b → a_b_server}/controller/spec.rb
  27. +2 −2 lib/{a_b → a_b_server}/gems.rb
  28. 0 lib/{a_b → a_b_server}/helper/application.rb
  29. 0 lib/{a_b → a_b_server}/job/increment.rb
  30. 0 lib/{a_b → a_b_server}/model/a_b_request.rb
  31. 0 lib/{a_b → a_b_server}/model/a_b_test.rb
  32. 0 lib/{a_b → a_b_server}/model/cached_find.rb
  33. 0 lib/{a_b → a_b_server}/model/category.rb
  34. 0 lib/{a_b → a_b_server}/model/env.rb
  35. 0 lib/{a_b → a_b_server}/model/ip.rb
  36. 0 lib/{a_b → a_b_server}/model/site.rb
  37. 0 lib/{a_b → a_b_server}/model/user.rb
  38. 0 lib/{a_b → a_b_server}/model/variant.rb
  39. +3 −0 lib/a_b_server/version.rb
  40. +1 −1 script/console
  41. +3 −3 script/dj
  42. +1 −1 script/runner
  43. 0 spec/{a_b → a_b_server}/helper/application_spec.rb
  44. 0 spec/{a_b → a_b_server}/model/a_b_request_spec.rb
  45. 0 spec/{a_b → a_b_server}/model/a_b_test_spec.rb
  46. 0 spec/{a_b → a_b_server}/model/category_spec.rb
  47. 0 spec/{a_b → a_b_server}/model/env_spec.rb
  48. 0 spec/{a_b → a_b_server}/model/ip_spec.rb
  49. 0 spec/{a_b → a_b_server}/model/site_spec.rb
  50. 0 spec/{a_b → a_b_server}/model/user_spec.rb
  51. 0 spec/{a_b → a_b_server}/model/variant_spec.rb
  52. +3 −3 spec/spec_helper.rb
View
@@ -1,6 +1,6 @@
-require File.dirname(__FILE__) + '/lib/a_b/gems'
+require File.dirname(__FILE__) + '/lib/a_b_server/gems'
-AB::Gems.require(:rake)
+ABServer::Gems.require(:rake)
require 'rake'
require 'active_wrapper/tasks'
@@ -9,7 +9,7 @@ require 'spec/rake/spectask'
def gemspec
@gemspec ||= begin
- file = File.expand_path('../a_b.gemspec', __FILE__)
+ file = File.expand_path('../a_b_server.gemspec', __FILE__)
eval(File.read(file), binding, file)
end
end
@@ -54,10 +54,10 @@ namespace :gems do
end
end
else
- gems = AB::Gems::TYPES[:gemspec]
- gems = AB::Gems::TYPES[:gemspec_dev] if ENV['DEV'] == '1'
+ gems = ABServer::Gems::TYPES[:gemspec]
+ gems = ABServer::Gems::TYPES[:gemspec_dev] if ENV['DEV'] == '1'
gems.collect! do |g|
- [ g.to_s, AB::Gems::VERSIONS[g] ]
+ [ g.to_s, ABServer::Gems::VERSIONS[g] ]
end
end
@@ -2,25 +2,25 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
-require 'a_b/gems'
-require 'a_b/version'
+require 'a_b_server/gems'
+require 'a_b_server/version'
Gem::Specification.new do |s|
- s.name = "a_b"
- s.version = AB::VERSION
+ s.name = "a_b_server"
+ s.version = ABServer::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Winton Welsh"]
s.email = ["mail@wintoni.us"]
- s.homepage = "http://github.com/winton/a_b"
+ s.homepage = "http://github.com/winton/a_b_server"
s.summary = ""
s.description = ""
- AB::Gems::TYPES[:gemspec].each do |g|
- s.add_dependency g.to_s, AB::Gems::VERSIONS[g]
+ ABServer::Gems::TYPES[:gemspec].each do |g|
+ s.add_dependency g.to_s, ABServer::Gems::VERSIONS[g]
end
- AB::Gems::TYPES[:gemspec_dev].each do |g|
- s.add_development_dependency g.to_s, AB::Gems::VERSIONS[g]
+ ABServer::Gems::TYPES[:gemspec_dev].each do |g|
+ s.add_development_dependency g.to_s, ABServer::Gems::VERSIONS[g]
end
s.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE README.md)
View
@@ -1,3 +1,3 @@
-require "#{::File.dirname(__FILE__)}/lib/a_b"
+require "#{::File.dirname(__FILE__)}/lib/a_b_server"
run Application
@@ -1,6 +1,6 @@
development:
adapter: mysql
- database: a_b
+ database: a_b_server
username: root
password:
host: localhost
@@ -8,4 +8,4 @@ def self.down
remove_index :requests, :identifier
remove_index :requests, :ip
end
-end
+end
@@ -6,4 +6,4 @@ def self.up
def self.down
remove_index :ips, :date
end
-end
+end
@@ -12,4 +12,4 @@ def self.down
remove_index :sites, :name
remove_index :users, :token
end
-end
+end
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/controller/*.rb"].sort.each do |path|
- require path
- end
-end
View
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/helper/*.rb"].sort.each do |path|
- require path
- end
-end
View
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/model/*.rb"].sort.each do |path|
- require path
- end
-end
View
@@ -1,3 +0,0 @@
-module AB
- VERSION = "0.1.0" unless defined?(::AB::VERSION)
-end
@@ -1,10 +1,10 @@
-require File.dirname(__FILE__) + '/a_b/gems'
+require File.dirname(__FILE__) + '/a_b_server/gems'
-AB::Gems.require(:lib)
+ABServer::Gems.require(:lib)
require 'json'
-$:.unshift File.dirname(__FILE__) + '/a_b'
+$:.unshift File.dirname(__FILE__) + '/a_b_server'
require 'version'
File renamed without changes.
@@ -1,6 +1,6 @@
require File.expand_path('../../gems', __FILE__)
-AB::Gems.require(:console)
+ABServer::Gems.require(:console)
$:.unshift File.dirname(__FILE__) + '/../'
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/controller/*.rb"].sort.each do |path|
+ require path
+ end
+end
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/helper/*.rb"].sort.each do |path|
+ require path
+ end
+end
@@ -1,6 +1,6 @@
Application.class_eval do
- Dir["#{root}/lib/a_b/job/*.rb"].sort.each do |path|
+ Dir["#{root}/lib/a_b_server/job/*.rb"].sort.each do |path|
require path
end
Delayed::Worker.guess_backend
File renamed without changes.
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/model/*.rb"].sort.each do |path|
+ require path
+ end
+end
@@ -5,5 +5,5 @@
set :public, "#{root}/public"
set :logging, true
set :static, true
- set :views, "#{root}/lib/a_b/view"
+ set :views, "#{root}/lib/a_b_server/view"
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
-unless defined?(AB::Gems)
+unless defined?(ABServer::Gems)
require 'rubygems'
- module AB
+ module ABServer
class Gems
VERSIONS = {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@
+module ABServer
+ VERSION = "0.1.0" unless defined?(::ABServer::VERSION)
+end
View
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-lib = File.expand_path(File.dirname(__FILE__) + "/../lib/a_b")
+lib = File.expand_path(File.dirname(__FILE__) + "/../lib/a_b_server")
exec "irb -r #{lib}/boot/console"
View
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require 'fileutils'
-require File.expand_path('../../lib/a_b/gems', __FILE__)
+require File.expand_path('../../lib/a_b_server/gems', __FILE__)
-AB::Gems.require(:dj)
+ABServer::Gems.require(:dj)
require 'with_pid'
@@ -12,6 +12,6 @@ puts with_pid(
:command => File.expand_path(File.dirname(__FILE__)) + "/runner 'Delayed::Worker.new.start'",
:environment => ARGV[2] || 'development',
:name => "dj",
- :pid => "/tmp/delayed_job.a_b.#{ARGV[1] || 0}.pid",
+ :pid => "/tmp/delayed_job.a_b_server.#{ARGV[1] || 0}.pid",
:tmp => "/tmp"
)
View
@@ -1,3 +1,3 @@
#!/usr/bin/env ruby
-exec "ruby -r #{File.expand_path("#{File.dirname(__FILE__)}/../lib/a_b/boot/console")} -e '#{ARGV[0]}'"
+exec "ruby -r #{File.expand_path("#{File.dirname(__FILE__)}/../lib/a_b_server/boot/console")} -e '#{ARGV[0]}'"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,13 +1,13 @@
$root = File.expand_path('../../', __FILE__)
-require "#{$root}/lib/a_b/gems"
+require "#{$root}/lib/a_b_server/gems"
-AB::Gems.require(:spec)
+ABServer::Gems.require(:spec)
require 'rack/test'
ENV['RACK_ENV'] = 'test'
-require "#{$root}/lib/a_b"
+require "#{$root}/lib/a_b_server"
require 'pp'
Spec::Runner.configure do |config|

0 comments on commit 4d1e182

Please sign in to comment.