Skip to content

Commit

Permalink
Moving the main app into the apps/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed May 25, 2009
1 parent 94596da commit cef0af3
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/config.ru → apps/site/config.ru
Expand Up @@ -2,7 +2,7 @@ $:.unshift File.expand_path(File.join(File.dirname(__FILE__)))

require 'rubygems'
require 'sinatra'
require 'app'
require 'site'

set :environment, :production
run Gem::App
run Gem::Site
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
2 changes: 1 addition & 1 deletion app/app.rb → apps/site/site.rb
Expand Up @@ -12,7 +12,7 @@
Gem.configuration.verbose = false

module Gem
class App < Sinatra::Default
class Site < Sinatra::Default
set :app_file, __FILE__

get '/' do
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
1 change: 1 addition & 0 deletions spec/cutter_spec.rb
@@ -1,4 +1,5 @@
require File.join(File.dirname(__FILE__), 'spec_helper')
require 'apps/site/site'

describe Gem::Cutter do
def stub_spec
Expand Down
6 changes: 3 additions & 3 deletions spec/app_spec.rb → spec/site_spec.rb
@@ -1,9 +1,9 @@
require File.join(File.dirname(__FILE__), 'spec_helper')
require 'app/app'
require 'apps/site/site'

describe Gem::App do
describe Gem::Site do
def app
Gem::App.new
Gem::Site.new
end

it "should have a homepage" do
Expand Down

0 comments on commit cef0af3

Please sign in to comment.