Commit 7f282a979717984db4f20e69d9b9404102f35e68
1 parent
7e2b77ca
Exists in
master
and in
1 other branch
Official project name is Errbit
Showing
18 changed files
with
29 additions
and
29 deletions
Show diff stats
README.md
Rakefile
... | ... | @@ -5,7 +5,7 @@ require File.expand_path('../config/application', __FILE__) |
5 | 5 | require 'rake' |
6 | 6 | require 'bundler' |
7 | 7 | |
8 | -Hypnotoad::Application.load_tasks | |
8 | +Errbit::Application.load_tasks | |
9 | 9 | |
10 | 10 | Rake::Task[:default].clear |
11 | 11 | task :default => ['spec'] |
12 | 12 | \ No newline at end of file | ... | ... |
app/views/mailer/_signature.text.erb
config/application.rb
... | ... | @@ -12,7 +12,7 @@ require 'mongoid/railtie' |
12 | 12 | # you've limited to :test, :development, or :production. |
13 | 13 | Bundler.require(:default, Rails.env) if defined?(Bundler) |
14 | 14 | |
15 | -module Hypnotoad | |
15 | +module Errbit | |
16 | 16 | class Application < Rails::Application |
17 | 17 | # Settings in config/environments/* take precedence over those specified here. |
18 | 18 | # Application configuration should go into files in config/initializers | ... | ... |
config/config.yml
config/environment.rb
config/environments/development.rb
config/environments/production.rb
config/environments/test.rb
config/initializers/secret_token.rb
... | ... | @@ -4,4 +4,4 @@ |
4 | 4 | # If you change this key, all old signed cookies will become invalid! |
5 | 5 | # Make sure the secret is at least 30 characters and all random, |
6 | 6 | # no regular words or you'll be exposed to dictionary attacks. |
7 | -Hypnotoad::Application.config.secret_token = '41f6b3871b375769786c379a3e542d67a7a234926f926778ed634f40a9480ba6d7b0768993e9852aafcaa73d6b8ddd2ed3b46208b92305e8c21936574f74a9a4' | |
7 | +Errbit::Application.config.secret_token = '41f6b3871b375769786c379a3e542d67a7a234926f926778ed634f40a9480ba6d7b0768993e9852aafcaa73d6b8ddd2ed3b46208b92305e8c21936574f74a9a4' | ... | ... |
config/initializers/session_store.rb
1 | 1 | # Be sure to restart your server when you modify this file. |
2 | 2 | |
3 | -Hypnotoad::Application.config.session_store :cookie_store, :key => '_hypnotoad_session' | |
3 | +Errbit::Application.config.session_store :cookie_store, :key => '_errbit_session' | |
4 | 4 | |
5 | 5 | # Use the database for sessions instead of the cookie-based default, |
6 | 6 | # which shouldn't be used to store highly confidential information |
7 | 7 | # (create the session table with "rake db:sessions:create") |
8 | -# Hypnotoad::Application.config.session_store :active_record_store | |
8 | +# Errbit::Application.config.session_store :active_record_store | ... | ... |
config/mongoid.yml
... | ... | @@ -8,11 +8,11 @@ defaults: &defaults |
8 | 8 | |
9 | 9 | development: |
10 | 10 | <<: *defaults |
11 | - database: hypnotoad_development | |
11 | + database: errbit_development | |
12 | 12 | |
13 | 13 | test: |
14 | 14 | <<: *defaults |
15 | - database: hypnotoad_test | |
15 | + database: errbit_test | |
16 | 16 | |
17 | 17 | # set these environment variables on your prod server |
18 | 18 | production: | ... | ... |
config/routes.rb
spec/controllers/deploys_controller_spec.rb
... | ... | @@ -6,16 +6,16 @@ describe DeploysController do |
6 | 6 | before do |
7 | 7 | @params = { |
8 | 8 | 'local_username' => 'john.doe', |
9 | - 'scm_repository' => 'git@github.com/jdpace/hypnotoad.git', | |
9 | + 'scm_repository' => 'git@github.com/jdpace/errbit.git', | |
10 | 10 | 'rails_env' => 'production', |
11 | 11 | 'scm_revision' => '19d77837eef37902cf5df7e4445c85f392a8d0d5' |
12 | 12 | } |
13 | - @project = Factory(:project_with_watcher, :api_key => 'ALLGLORYTOTHEHYPNOTOAD') | |
13 | + @project = Factory(:project_with_watcher, :api_key => 'APIKEY') | |
14 | 14 | end |
15 | 15 | |
16 | 16 | it 'finds the project via the api key' do |
17 | - Project.should_receive(:find_by_api_key!).with('ALLGLORYTOTHEHYPNOTOAD').and_return(@project) | |
18 | - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' | |
17 | + Project.should_receive(:find_by_api_key!).with('APIKEY').and_return(@project) | |
18 | + post :create, :deploy => @params, :api_key => 'APIKEY' | |
19 | 19 | end |
20 | 20 | |
21 | 21 | it 'creates a deploy' do |
... | ... | @@ -24,14 +24,14 @@ describe DeploysController do |
24 | 24 | with({ |
25 | 25 | :username => 'john.doe', |
26 | 26 | :environment => 'production', |
27 | - :repository => 'git@github.com/jdpace/hypnotoad.git', | |
27 | + :repository => 'git@github.com/jdpace/errbit.git', | |
28 | 28 | :revision => '19d77837eef37902cf5df7e4445c85f392a8d0d5' |
29 | 29 | }).and_return(Factory(:deploy)) |
30 | - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' | |
30 | + post :create, :deploy => @params, :api_key => 'APIKEY' | |
31 | 31 | end |
32 | 32 | |
33 | 33 | it 'sends an email notification', :focused => true do |
34 | - post :create, :deploy => @params, :api_key => 'ALLGLORYTOTHEHYPNOTOAD' | |
34 | + post :create, :deploy => @params, :api_key => 'APIKEY' | |
35 | 35 | email = ActionMailer::Base.deliveries.last |
36 | 36 | email.to.should include(@project.watchers.first.email) |
37 | 37 | email.subject.should == "[#{@project.name}] Deployed to production by john.doe" | ... | ... |
spec/factories/project_factories.rb
... | ... | @@ -19,7 +19,7 @@ end |
19 | 19 | Factory.define(:deploy) do |d| |
20 | 20 | d.project {|p| p.association :project} |
21 | 21 | d.username 'clyde.frog' |
22 | - d.repository 'git@github.com/jdpace/hypnotoad.git' | |
22 | + d.repository 'git@github.com/jdpace/errbit.git' | |
23 | 23 | d.environment 'production' |
24 | 24 | d.revision '2e601cb575ca97f1a1097f12d0edfae241a70263' |
25 | 25 | end |
26 | 26 | \ No newline at end of file | ... | ... |
spec/fixtures/hoptoad_test_notice.xml
spec/models/notice_spec.rb
... | ... | @@ -25,7 +25,7 @@ describe Notice do |
25 | 25 | context '#from_xml' do |
26 | 26 | before do |
27 | 27 | @xml = Rails.root.join('spec','fixtures','hoptoad_test_notice.xml').read |
28 | - @project = Factory(:project, :api_key => 'ALLGLORYTOTHEHYPNOTOAD') | |
28 | + @project = Factory(:project, :api_key => 'APIKEY') | |
29 | 29 | Digest::MD5.stub(:hexdigest).and_return('fingerprintdigest') |
30 | 30 | end |
31 | 31 | ... | ... |
spec/models/project_spec.rb
... | ... | @@ -10,8 +10,8 @@ describe Project do |
10 | 10 | end |
11 | 11 | |
12 | 12 | it 'requires unique names' do |
13 | - Factory(:project, :name => 'Hypnotoad') | |
14 | - project = Factory.build(:project, :name => 'Hypnotoad') | |
13 | + Factory(:project, :name => 'Errbit') | |
14 | + project = Factory.build(:project, :name => 'Errbit') | |
15 | 15 | project.should_not be_valid |
16 | 16 | project.errors[:name].should include('is already taken') |
17 | 17 | end | ... | ... |