tootsie 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/config.ru +7 -6
  2. data/lib/tootsie/version.rb +1 -1
  3. metadata +3 -3
data/config.ru CHANGED
@@ -6,14 +6,15 @@ Bundler.require
6
6
  $:.unshift(File.join(File.dirname(__FILE__), "/lib"))
7
7
  require 'tootsie'
8
8
 
9
- environment = ENV['RACK_ENV'] ||= 'development'
9
+ config_path = ENV['TOOTSIE_CONFIG']
10
+ unless config_path
11
+ abort "You must specify a configuration file with TOOTSIE_CONFIG."
12
+ end
10
13
 
11
- app = Tootsie::Application.new(
12
- :environment => environment,
13
- :logger => ENV["rack.logger"])
14
- app.configure!
14
+ app = Tootsie::Application.new(:logger => ENV["rack.logger"])
15
+ app.configure!(config_path)
15
16
 
16
- if environment == 'development'
17
+ if ENV['RACK_ENV'] == 'development'
17
18
  Thread.new do
18
19
  Tootsie::Application.get.task_manager.run!
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Tootsie
2
- VERSION = '0.9.6'
2
+ VERSION = '0.9.7'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tootsie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 6
10
- version: 0.9.6
9
+ - 7
10
+ version: 0.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexander Staubo