apimaster 0.1.3 → 0.1.4

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.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'apimaster'
3
- s.version = '0.1.3'
4
- s.date = '2013-04-16'
3
+ s.version = '0.1.4'
4
+ s.date = '2013-05-28'
5
5
  s.summary = "ApiMaster"
6
6
  s.description = "A simple restful api framework."
7
7
  s.authors = ["Sun", "Zhang", "Li"]
@@ -21,7 +21,11 @@ module Apimaster::Controllers
21
21
  end
22
22
 
23
23
  superclass.error do
24
- raise env['sinatra.error'] if development?
24
+ if respond_to?(:development?)
25
+ raise env['sinatra.error'] if development?
26
+ elsif settings.respond_to?(:development?)
27
+ raise env['sinatra.error'] if settings.development?
28
+ end
25
29
  json :message => "Internal Server Error"
26
30
  end
27
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apimaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-04-16 00:00:00.000000000 Z
14
+ date: 2013-05-28 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: A simple restful api framework.
17
17
  email: sunxiqiu@admaster.com.cn