Skip to content
Browse files

Official project name is Errbit

  • Loading branch information...
1 parent 7e2b77c commit 7f282a979717984db4f20e69d9b9404102f35e68 @jdpace jdpace committed Aug 7, 2010
View
2 README.md
@@ -1,4 +1,4 @@
-Hypnotoad: The open source self-hosted Hoptoad Server
+Errbit: The open source self-hosted Hoptoad Server
=====================================================
WIP
View
2 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']
View
4 app/views/mailer/_signature.text.erb
@@ -1,2 +1,2 @@
-All Glory,
-Hypnotoad
+Your loyal servant,
+Errbit
View
2 config/application.rb
@@ -12,7 +12,7 @@
# 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
View
4 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
+email_from: errbit@example.com
View
2 config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Hypnotoad::Application.initialize!
+Errbit::Application.initialize!
View
2 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
View
2 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.
View
2 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
View
2 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'
View
4 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
View
4 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:
View
2 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'
View
14 spec/controllers/deploys_controller_spec.rb
@@ -6,16 +6,16 @@
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 @@
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"
View
2 spec/factories/project_factories.rb
@@ -19,7 +19,7 @@
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
View
2 spec/fixtures/hoptoad_test_notice.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<notice version="2.0">
- <api-key>ALLGLORYTOTHEHYPNOTOAD</api-key>
+ <api-key>APIKEY</api-key>
<notifier>
<name>Hoptoad Notifier</name>
<version>2.3.2</version>
View
2 spec/models/notice_spec.rb
@@ -25,7 +25,7 @@
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
View
4 spec/models/project_spec.rb
@@ -10,8 +10,8 @@
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

0 comments on commit 7f282a9

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