pancake 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,9 +11,9 @@ begin
11
11
  gem.homepage = "http://github.com/hassox/pancake"
12
12
  gem.authors = ["Daniel Neighman"]
13
13
  gem.add_development_dependency "rspec"
14
- gem.add_dependency "usher", ">=0.5.10"
14
+ gem.add_dependency "usher", ">=0.6.4"
15
15
  gem.add_development_dependency "extlib"
16
- gem.add_dependency "thor"
16
+ gem.add_development_dependency "thor"
17
17
  gem.add_dependency "rack"
18
18
  gem.add_dependency "tilt", ">=0.3"
19
19
  gem.add_dependency "hashie", ">=0.1.4"
@@ -28,7 +28,9 @@ module Pancake
28
28
  end
29
29
 
30
30
  if static_file
31
- Rack::Response.new(File.open(static_file)).finish
31
+ Rack::Response.new(File.open(static_file), 200, {
32
+ 'Content-Type' => Rack::Mime.mime_type(File.extname(static_file))
33
+ }).finish
32
34
  else
33
35
  app.call(env)
34
36
  end
@@ -35,7 +35,7 @@ class Pancake::Stack::Configuration
35
35
  unless stack.nil?
36
36
  r = stack.router.dup
37
37
  r.configuration = self
38
- r.app = app
38
+ r.default(app)
39
39
  r.configuration = self
40
40
  r
41
41
  end
@@ -170,8 +170,8 @@ module Pancake
170
170
  name = options.delete(:_name)
171
171
  options[:conditions] ||= {}
172
172
  options[:conditions][:request_method] = method.to_s.upcase unless method == :any
173
- options[:action] ||= action_name
174
173
  r = router.add(path, options)
174
+ r.to(:action => action_name)
175
175
  r.name(name) if name
176
176
  r
177
177
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pancake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire: pancake
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-18 00:00:00 +11:00
12
+ date: 2010-01-13 00:00:00 +11:00
13
13
  default_executable: pancake-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.5.10
33
+ version: 0.6.4
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: extlib
@@ -44,7 +44,7 @@ dependencies:
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: thor
47
- type: :runtime
47
+ type: :development
48
48
  version_requirement:
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements: