rack-golem 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,6 +71,7 @@ module Rack::Golem
71
71
  end
72
72
 
73
73
  def error(e, *args)
74
+ puts "\n", e.class, e.message, e.backtrace # Log the error anyway
74
75
  @res.status = 500
75
76
  "ERROR"
76
77
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-golem'
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = "A Controller middleware that is fairly basic"
6
6
  s.description = "A Controller middleware that is fairly basic. I would say it is a sort of Ramaze for kids"
@@ -144,8 +144,13 @@ describe "Golem" do
144
144
  ENV['RACK_ENV'] = 'development'
145
145
  lambda{ SimplyIndexedR.get('/will_fail') }.should.raise(ArgumentError)
146
146
  ENV['RACK_ENV'] = 'production'
147
+ @old_stdout = $stdout
148
+ $stdout = StringIO.new
147
149
  res = SimplyIndexedR.get('/will_fail')
150
+ logged = $stdout.dup
151
+ $stdout = @old_stdout
148
152
  res.status.should==500
153
+ logged.string.should.match(/ArgumentError/)
149
154
  ENV['RACK_ENV'] = nil
150
155
  end
151
156
 
metadata CHANGED
@@ -1,63 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rack-golem
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Mickael Riga
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-06-18 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: tilt
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 1
31
- - 2
32
- - 2
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.2.2
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: bacon
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: bacon
32
+ requirement: !ruby/object:Gem::Requirement
40
33
  none: false
41
- requirements:
34
+ requirements:
42
35
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 19
45
- segments:
46
- - 1
47
- - 1
48
- - 0
36
+ - !ruby/object:Gem::Version
49
37
  version: 1.1.0
50
38
  type: :development
51
- version_requirements: *id002
52
- description: A Controller middleware that is fairly basic. I would say it is a sort of Ramaze for kids
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.0
46
+ description: A Controller middleware that is fairly basic. I would say it is a sort
47
+ of Ramaze for kids
53
48
  email: mig@campbellhay.com
54
49
  executables: []
55
-
56
50
  extensions: []
57
-
58
51
  extra_rdoc_files: []
59
-
60
- files:
52
+ files:
61
53
  - README.md
62
54
  - lib/rack/golem.rb
63
55
  - lib/rack_golem.rb
@@ -65,36 +57,26 @@ files:
65
57
  - test/spec_golem.rb
66
58
  homepage: http://www.campbellhay.com
67
59
  licenses: []
68
-
69
60
  post_install_message:
70
61
  rdoc_options: []
71
-
72
- require_paths:
62
+ require_paths:
73
63
  - ./lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
64
+ required_ruby_version: !ruby/object:Gem::Requirement
75
65
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 3
80
- segments:
81
- - 0
82
- version: "0"
83
- required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
71
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
92
76
  requirements: []
93
-
94
77
  rubyforge_project:
95
- rubygems_version: 1.8.15
78
+ rubygems_version: 1.8.23
96
79
  signing_key:
97
80
  specification_version: 3
98
81
  summary: A Controller middleware that is fairly basic
99
82
  test_files: []
100
-