apimaster 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'apimaster'
3
- s.version = '0.0.6'
4
- s.date = '2012-09-06'
3
+ s.version = '0.0.7'
4
+ s.date = '2013-02-01'
5
5
  s.summary = "ApiMaster!"
6
6
  s.description = "A simple restful api framework."
7
7
  s.authors = ["Sun", "Zhang", "Li"]
@@ -25,7 +25,7 @@ module Apimaster::Controllers
25
25
  json :message => "Internal Server Error"
26
26
  end
27
27
 
28
- not_found do
28
+ superclass.not_found do
29
29
  json message: "Not Found"
30
30
  end
31
31
 
@@ -24,7 +24,7 @@ module Apimaster
24
24
 
25
25
  class MissingError < NormalError
26
26
  def initialize(resource = nil)
27
- super("Resource '#{resource}' does not exist.", 404, :missing, resource)
27
+ super("Resource '#{resource}' does not exist.", 410, :missing, resource)
28
28
  end
29
29
  end
30
30
 
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.0.6
4
+ version: 0.0.7
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: 2012-09-06 00:00:00.000000000 Z
14
+ date: 2013-02-01 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: A simple restful api framework.
17
17
  email: sunxiqiu@admaster.com.cn