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 +4 -4
- data/lib/yodatra/logger.rb +1 -2
- data/lib/yodatra/version.rb +2 -2
- metadata +1 -1
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
|
15
|
-
register
|
13
|
+
register Boot
|
14
|
+
register Initializers
|
15
|
+
register Logger
|
16
16
|
end
|
17
17
|
end
|
data/lib/yodatra/logger.rb
CHANGED
@@ -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
|
data/lib/yodatra/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Yodatra
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
2
|
+
VERSION = '0.1.2'
|
3
|
+
end
|