bats 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -16,7 +16,7 @@ require 'bats'
16
16
 
17
17
  class App < Bats
18
18
  get '/' do
19
- s( 200 ).body 'Flap flap flap'
19
+ s( 200 ).b 'Flap flap flap'
20
20
  end
21
21
  end
22
22
 
@@ -63,7 +63,7 @@ class Bats
63
63
  route ||= s( 404 )
64
64
  args = ( matches ) ? [ env, *matches ] : [ env ]
65
65
  begin
66
- route = route.call( args ) if route.kind_of?( Proc )
66
+ route = route.call( *args ) if route.kind_of?( Proc )
67
67
  route.call( env )
68
68
  rescue
69
69
  b = '<h1>Ooops... The code broke.</h1>'
@@ -21,7 +21,7 @@ module HTTPResponse
21
21
  end
22
22
 
23
23
  def call env
24
- @headers.merge! 'Content-Length' => @body.length
24
+ @headers.merge! 'Content-Length' => @body.length.to_s
25
25
  [ @status, @headers, @body ]
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hans Oksendahl
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-15 00:00:00 -07:00
12
+ date: 2009-11-13 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -31,12 +31,12 @@ extensions: []
31
31
  extra_rdoc_files:
32
32
  - README
33
33
  files:
34
- - lib/bats.rb
35
- - lib/bats/yaml/statuses.yaml
36
34
  - lib/bats/modules/httpresponse.rb
37
35
  - lib/bats/modules/classbaker.rb
38
36
  - lib/bats/modules/wizarding.rb
39
37
  - lib/bats/modules/metaid.rb
38
+ - lib/bats/yaml/statuses.yaml
39
+ - lib/bats.rb
40
40
  - README
41
41
  has_rdoc: true
42
42
  homepage: http://hansoksendahl.com/bats