yodatra 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/yodatra/base.rb CHANGED
@@ -3,15 +3,15 @@ require 'sinatra/reloader'
3
3
 
4
4
  require File.expand_path '../boot', __FILE__
5
5
  require File.expand_path '../initializers', __FILE__
6
-
6
+ require File.expand_path '../logger', __FILE__
7
7
 
8
8
  module Yodatra
9
9
  class Base < Sinatra::Base
10
10
  configure :development do
11
11
  register Sinatra::Reloader
12
12
  end
13
-
14
- register Yodatra::Boot
15
- register Yodatra::Initializers
13
+ register Boot
14
+ register Initializers
15
+ register Logger
16
16
  end
17
17
  end
@@ -1,5 +1,3 @@
1
- require 'sinatra/logger'
2
-
3
1
  module Yodatra
4
2
  module Logger
5
3
  def self.registered(app)
@@ -10,6 +8,7 @@ module Yodatra
10
8
  file.sync = true
11
9
  app.use Rack::CommonLogger, file
12
10
  end
11
+ require 'sinatra/logger'
13
12
  app.register Sinatra::Logger
14
13
  app.set :logger_level, :debug unless app.environment == 'production'
15
14
  # set the full path to the log file
@@ -1,3 +1,3 @@
1
1
  module Yodatra
2
- VERSION = '0.1.1'
3
- end
2
+ VERSION = '0.1.2'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yodatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: