From 7f282a979717984db4f20e69d9b9404102f35e68 Mon Sep 17 00:00:00 2001 From: Jared Pace Date: Sat, 7 Aug 2010 18:52:28 -0400 Subject: [PATCH] Official project name is Errbit --- README.md | 2 +- Rakefile | 2 +- app/views/mailer/_signature.text.erb | 4 ++-- config/application.rb | 2 +- config/config.yml | 4 ++-- config/environment.rb | 2 +- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- config/initializers/secret_token.rb | 2 +- config/initializers/session_store.rb | 4 ++-- config/mongoid.yml | 4 ++-- config/routes.rb | 2 +- spec/controllers/deploys_controller_spec.rb | 14 +++++++------- spec/factories/project_factories.rb | 2 +- spec/fixtures/hoptoad_test_notice.xml | 2 +- spec/models/notice_spec.rb | 2 +- spec/models/project_spec.rb | 4 ++-- 18 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 165218a..97431ef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Hypnotoad: The open source self-hosted Hoptoad Server +Errbit: The open source self-hosted Hoptoad Server ===================================================== WIP diff --git a/Rakefile b/Rakefile index 2b4c04d..a7ba95e 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ require File.expand_path('../config/application', __FILE__) require 'rake' require 'bundler' -Hypnotoad::Application.load_tasks +Errbit::Application.load_tasks Rake::Task[:default].clear task :default => ['spec'] \ No newline at end of file diff --git a/app/views/mailer/_signature.text.erb b/app/views/mailer/_signature.text.erb index 89997d9..b083654 100644 --- a/app/views/mailer/_signature.text.erb +++ b/app/views/mailer/_signature.text.erb @@ -1,2 +1,2 @@ -All Glory, -Hypnotoad \ No newline at end of file +Your loyal servant, +Errbit \ No newline at end of file diff --git a/config/application.rb b/config/application.rb index 4942b53..3d1662b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -12,7 +12,7 @@ require 'mongoid/railtie' # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) -module Hypnotoad +module Errbit class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers diff --git a/config/config.yml b/config/config.yml index 9a67d1d..e5f4afb 100644 --- a/config/config.yml +++ b/config/config.yml @@ -1,4 +1,4 @@ -host: hypnotoad.example.com +host: errbit.example.com email_at_notices: [1, 10, 100] -email_from: hypnotoad@example.com \ No newline at end of file +email_from: errbit@example.com \ No newline at end of file diff --git a/config/environment.rb b/config/environment.rb index bc92e88..a04540e 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,4 +2,4 @@ require File.expand_path('../application', __FILE__) # Initialize the rails application -Hypnotoad::Application.initialize! +Errbit::Application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb index 23e250f..6662691 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -Hypnotoad::Application.configure do +Errbit::Application.configure do # Settings specified here will take precedence over those in config/environment.rb # In the development environment your application's code is reloaded on diff --git a/config/environments/production.rb b/config/environments/production.rb index ab6e999..6c1ea4f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -Hypnotoad::Application.configure do +Errbit::Application.configure do # Settings specified here will take precedence over those in config/environment.rb # The production environment is meant for finished, "live" apps. diff --git a/config/environments/test.rb b/config/environments/test.rb index 54d42ae..9dfc650 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -Hypnotoad::Application.configure do +Errbit::Application.configure do # Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 860f491..64ae1a0 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Hypnotoad::Application.config.secret_token = '41f6b3871b375769786c379a3e542d67a7a234926f926778ed634f40a9480ba6d7b0768993e9852aafcaa73d6b8ddd2ed3b46208b92305e8c21936574f74a9a4' +Errbit::Application.config.secret_token = '41f6b3871b375769786c379a3e542d67a7a234926f926778ed634f40a9480ba6d7b0768993e9852aafcaa73d6b8ddd2ed3b46208b92305e8c21936574f74a9a4' diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index a2f7cac..3ebaea0 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,8 +1,8 @@ # Be sure to restart your server when you modify this file. -Hypnotoad::Application.config.session_store :cookie_store, :key => '_hypnotoad_session' +Errbit::Application.config.session_store :cookie_store, :key => '_errbit_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rake db:sessions:create") -# Hypnotoad::Application.config.session_store :active_record_store +# Errbit::Application.config.session_store :active_record_store diff --git a/config/mongoid.yml b/config/mongoid.yml index 3a0ecca..f7fb3b6 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -8,11 +8,11 @@ defaults: &defaults development: <<: *defaults - database: hypnotoad_development + database: errbit_development test: <<: *defaults - database: hypnotoad_test + database: errbit_test # set these environment variables on your prod server production: diff --git a/config/routes.rb b/config/routes.rb index 5249fb3..61b4ab3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -Hypnotoad::Application.routes.draw do +Errbit::Application.routes.draw do # Hoptoad Notifier Routes match '/notifier_api/v2/notices' => 'notices#create' diff --git a/spec/controllers/deploys_controller_spec.rb b/spec/controllers/deploys_controller_spec.rb index f60f1fe..d2180f1 100644 --- a/spec/controllers/deploys_controller_spec.rb +++ b/spec/controllers/deploys_controller_spec.rb @@ -6,16 +6,16 @@ describe DeploysController do before do @params = { 'local_username' => 'john.doe', - 'scm_repository' => 'git@github.com/jdpace/hypnotoad.git', + 'scm_repository' => 'git@github.com/jdpace/errbit.git', 'rails_env' => 'production', 'scm_revision' => '19d77837eef37902cf5df7e4445c85f392a8d0d5' } - @project = Factory(:project_with_watcher, :api_key => 'ALLGLORYTOTHEHYPNOTOAD') + @project = Factory(:project_with_watcher, :api_key => 'APIKEY') end it 'finds the project via the api key' do - Project.should_receive(:find_by_api_key!).with('ALLGLORYTOTHEHYPNOTOAD').and_return(@project) - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' + Project.should_receive(:find_by_api_key!).with('APIKEY').and_return(@project) + post :create, :deploy => @params, :api_key => 'APIKEY' end it 'creates a deploy' do @@ -24,14 +24,14 @@ describe DeploysController do with({ :username => 'john.doe', :environment => 'production', - :repository => 'git@github.com/jdpace/hypnotoad.git', + :repository => 'git@github.com/jdpace/errbit.git', :revision => '19d77837eef37902cf5df7e4445c85f392a8d0d5' }).and_return(Factory(:deploy)) - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' + post :create, :deploy => @params, :api_key => 'APIKEY' end it 'sends an email notification', :focused => true do - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' + post :create, :deploy => @params, :api_key => 'APIKEY' email = ActionMailer::Base.deliveries.last email.to.should include(@project.watchers.first.email) email.subject.should == "[#{@project.name}] Deployed to production by john.doe" diff --git a/spec/factories/project_factories.rb b/spec/factories/project_factories.rb index aed2f84..499a6e1 100644 --- a/spec/factories/project_factories.rb +++ b/spec/factories/project_factories.rb @@ -19,7 +19,7 @@ end Factory.define(:deploy) do |d| d.project {|p| p.association :project} d.username 'clyde.frog' - d.repository 'git@github.com/jdpace/hypnotoad.git' + d.repository 'git@github.com/jdpace/errbit.git' d.environment 'production' d.revision '2e601cb575ca97f1a1097f12d0edfae241a70263' end \ No newline at end of file diff --git a/spec/fixtures/hoptoad_test_notice.xml b/spec/fixtures/hoptoad_test_notice.xml index 37dd941..34a1119 100644 --- a/spec/fixtures/hoptoad_test_notice.xml +++ b/spec/fixtures/hoptoad_test_notice.xml @@ -1,6 +1,6 @@ - ALLGLORYTOTHEHYPNOTOAD + APIKEY Hoptoad Notifier 2.3.2 diff --git a/spec/models/notice_spec.rb b/spec/models/notice_spec.rb index fa76568..6f1899c 100644 --- a/spec/models/notice_spec.rb +++ b/spec/models/notice_spec.rb @@ -25,7 +25,7 @@ describe Notice do context '#from_xml' do before do @xml = Rails.root.join('spec','fixtures','hoptoad_test_notice.xml').read - @project = Factory(:project, :api_key => 'ALLGLORYTOTHEHYPNOTOAD') + @project = Factory(:project, :api_key => 'APIKEY') Digest::MD5.stub(:hexdigest).and_return('fingerprintdigest') end diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index ac5ac05..a709ff6 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -10,8 +10,8 @@ describe Project do end it 'requires unique names' do - Factory(:project, :name => 'Hypnotoad') - project = Factory.build(:project, :name => 'Hypnotoad') + Factory(:project, :name => 'Errbit') + project = Factory.build(:project, :name => 'Errbit') project.should_not be_valid project.errors[:name].should include('is already taken') end -- libgit2 0.21.2