goat 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/goat.gemspec +1 -1
  2. data/lib/goat.rb +6 -2
  3. metadata +4 -4
data/goat.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'goat'
3
- s.version = '0.3.7'
3
+ s.version = '0.3.8'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
data/lib/goat.rb CHANGED
@@ -143,18 +143,22 @@ module Goat
143
143
  NotificationCenter.configure(Goat.setting(:notifications)) if Goat.setting(:notifications)
144
144
  end
145
145
 
146
- def self.rack_builder(app)
146
+ def self.rack_builder(app, opts={})
147
+ defaults = {:logger => Rack::CommonLogger}
148
+ opts = defaults.merge(opts)
149
+
147
150
  Rack::Builder.new do
148
151
  if cookies = Goat.setting(:cookies)
149
152
  use Rack::Session::Cookie, cookies
150
153
  end
151
154
 
155
+ use opts[:logger]
156
+
152
157
  if static = Goat.setting(:static)
153
158
  use Rack::Static, :urls => static.fetch(:urls), :root => static.fetch(:root)
154
159
  end
155
160
 
156
161
  use Rack::Flash if defined?(Rack::Flash) # TODO hack
157
- use Rack::CommonLogger
158
162
 
159
163
  run app
160
164
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 7
10
- version: 0.3.7
9
+ - 8
10
+ version: 0.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Collison
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-18 00:00:00 +00:00
18
+ date: 2010-11-19 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21