Skip to content
Browse files

Renaming project to a_b_server

  • Loading branch information...
1 parent f1903ab commit 4d1e1827e846442d7cbbb7b92d4ac7b03f71d907 @winton committed Nov 19, 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
12 Rakefile
@@ -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
View
18 a_b.gemspec → a_b_server.gemspec
@@ -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
2 config.ru
@@ -1,3 +1,3 @@
-require "#{::File.dirname(__FILE__)}/lib/a_b"
+require "#{::File.dirname(__FILE__)}/lib/a_b_server"
run Application
View
2 config/database.example.yml
@@ -1,6 +1,6 @@
development:
adapter: mysql
- database: a_b
+ database: a_b_server
username: root
password:
host: localhost
View
2 db/migrate/011_requests_indexes.rb
@@ -8,4 +8,4 @@ def self.down
remove_index :requests, :identifier
remove_index :requests, :ip
end
-end
+end
View
2 db/migrate/012_ips_indexes.rb
@@ -6,4 +6,4 @@ def self.up
def self.down
remove_index :ips, :date
end
-end
+end
View
2 db/migrate/013_more_indexes.rb
@@ -12,4 +12,4 @@ def self.down
remove_index :sites, :name
remove_index :users, :token
end
-end
+end
View
6 lib/a_b/boot/controller.rb
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/controller/*.rb"].sort.each do |path|
- require path
- end
-end
View
6 lib/a_b/boot/helper.rb
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/helper/*.rb"].sort.each do |path|
- require path
- end
-end
View
6 lib/a_b/boot/model.rb
@@ -1,6 +0,0 @@
-Application.class_eval do
-
- Dir["#{root}/lib/a_b/model/*.rb"].sort.each do |path|
- require path
- end
-end
View
3 lib/a_b/version.rb
@@ -1,3 +0,0 @@
-module AB
- VERSION = "0.1.0" unless defined?(::AB::VERSION)
-end
View
6 lib/a_b.rb → lib/a_b_server.rb
@@ -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'
View
0 lib/a_b/boot/active_wrapper.rb → lib/a_b_server/boot/active_wrapper.rb
File renamed without changes.
View
0 lib/a_b/boot/application.rb → lib/a_b_server/boot/application.rb
File renamed without changes.
View
2 lib/a_b/boot/console.rb → lib/a_b_server/boot/console.rb
@@ -1,6 +1,6 @@
require File.expand_path('../../gems', __FILE__)
-AB::Gems.require(:console)
+ABServer::Gems.require(:console)
$:.unshift File.dirname(__FILE__) + '/../'
View
6 lib/a_b_server/boot/controller.rb
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/controller/*.rb"].sort.each do |path|
+ require path
+ end
+end
View
0 lib/a_b/boot/delayed_job.rb → lib/a_b_server/boot/delayed_job.rb
File renamed without changes.
View
0 lib/a_b/boot/haml.rb → lib/a_b_server/boot/haml.rb
File renamed without changes.
View
6 lib/a_b_server/boot/helper.rb
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/helper/*.rb"].sort.each do |path|
+ require path
+ end
+end
View
2 lib/a_b/boot/job.rb → lib/a_b_server/boot/job.rb
@@ -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
View
0 lib/a_b/boot/lilypad.rb → lib/a_b_server/boot/lilypad.rb
File renamed without changes.
View
6 lib/a_b_server/boot/model.rb
@@ -0,0 +1,6 @@
+Application.class_eval do
+
+ Dir["#{root}/lib/a_b_server/model/*.rb"].sort.each do |path|
+ require path
+ end
+end
View
2 lib/a_b/boot/sinatra.rb → lib/a_b_server/boot/sinatra.rb
@@ -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
View
0 lib/a_b/controller/api.rb → lib/a_b_server/controller/api.rb
File renamed without changes.
View
0 lib/a_b/controller/pulse.rb → lib/a_b_server/controller/pulse.rb
File renamed without changes.
View
0 lib/a_b/controller/spec.rb → lib/a_b_server/controller/spec.rb
File renamed without changes.
View
4 lib/a_b/gems.rb → lib/a_b_server/gems.rb
@@ -1,8 +1,8 @@
-unless defined?(AB::Gems)
+unless defined?(ABServer::Gems)
require 'rubygems'
- module AB
+ module ABServer
class Gems
VERSIONS = {
View
0 lib/a_b/helper/application.rb → lib/a_b_server/helper/application.rb
File renamed without changes.
View
0 lib/a_b/job/increment.rb → lib/a_b_server/job/increment.rb
File renamed without changes.
View
0 lib/a_b/model/a_b_request.rb → lib/a_b_server/model/a_b_request.rb
File renamed without changes.
View
0 lib/a_b/model/a_b_test.rb → lib/a_b_server/model/a_b_test.rb
File renamed without changes.
View
0 lib/a_b/model/cached_find.rb → lib/a_b_server/model/cached_find.rb
File renamed without changes.
View
0 lib/a_b/model/category.rb → lib/a_b_server/model/category.rb
File renamed without changes.
View
0 lib/a_b/model/env.rb → lib/a_b_server/model/env.rb
File renamed without changes.
View
0 lib/a_b/model/ip.rb → lib/a_b_server/model/ip.rb
File renamed without changes.
View
0 lib/a_b/model/site.rb → lib/a_b_server/model/site.rb
File renamed without changes.
View
0 lib/a_b/model/user.rb → lib/a_b_server/model/user.rb
File renamed without changes.
View
0 lib/a_b/model/variant.rb → lib/a_b_server/model/variant.rb
File renamed without changes.
View
3 lib/a_b_server/version.rb
@@ -0,0 +1,3 @@
+module ABServer
+ VERSION = "0.1.0" unless defined?(::ABServer::VERSION)
+end
View
2 script/console
@@ -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
6 script/dj
@@ -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
2 script/runner
@@ -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]}'"
View
0 spec/a_b/helper/application_spec.rb → spec/a_b_server/helper/application_spec.rb
File renamed without changes.
View
0 spec/a_b/model/a_b_request_spec.rb → spec/a_b_server/model/a_b_request_spec.rb
File renamed without changes.
View
0 spec/a_b/model/a_b_test_spec.rb → spec/a_b_server/model/a_b_test_spec.rb
File renamed without changes.
View
0 spec/a_b/model/category_spec.rb → spec/a_b_server/model/category_spec.rb
File renamed without changes.
View
0 spec/a_b/model/env_spec.rb → spec/a_b_server/model/env_spec.rb
File renamed without changes.
View
0 spec/a_b/model/ip_spec.rb → spec/a_b_server/model/ip_spec.rb
File renamed without changes.
View
0 spec/a_b/model/site_spec.rb → spec/a_b_server/model/site_spec.rb
File renamed without changes.
View
0 spec/a_b/model/user_spec.rb → spec/a_b_server/model/user_spec.rb
File renamed without changes.
View
0 spec/a_b/model/variant_spec.rb → spec/a_b_server/model/variant_spec.rb
File renamed without changes.
View
6 spec/spec_helper.rb
@@ -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.
Something went wrong with that request. Please try again.