coaster 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e103c20559ef38abe9181a4078ab21926e5d2ca
4
- data.tar.gz: 35108e0fba9005cd4b77c031084f6f7cf35ae4ff
3
+ metadata.gz: 896afca25794eb01feb74ee9aef918b07a5c3703
4
+ data.tar.gz: b83c7d68111aa21621c9cf2d426ebdbe0465b67a
5
5
  SHA512:
6
- metadata.gz: 99c3f4c7c2fbc167bd6319e8e4cc29b840655510b447e976cef963bad152fea185471340c27e46683718cf8ed3d237c0cc8497e53eb99493fb6eaa6efcf7b3b6
7
- data.tar.gz: 7552f273522341ca834205849d6bb285405fa10abb63020bfefe1fc319102d9df8f946c21e8c13cebf3e37dbd749bfba940d72ac240eb37efbf293e0b7a4a810
6
+ metadata.gz: a661f4814e8a48d4e9b1f9bf77e827fb640d39872748c8dbd6148276544b4602c5e042d56e7a69e799ba42e252f77349a47efc1725962e7f1bb8c0797853eba0
7
+ data.tar.gz: 3e07c57a0d0d22d8def6a9685d402900e9ad7db857e0cd4f10227f94391e7dcb43b99ae3c62b6f556924f9ca3ac24ec3e3a16411f23850874e285f16462f03b1
@@ -10,6 +10,7 @@ class StandardError
10
10
  def status
11
11
  999999 # Unknown
12
12
  end
13
+ alias_method :code, :status
13
14
 
14
15
  def http_status
15
16
  500
@@ -86,7 +87,7 @@ class StandardError
86
87
  end
87
88
 
88
89
  def code
89
- attributes[:code] || http_status
90
+ attributes[:code] || status
90
91
  end
91
92
 
92
93
  # description is user friendly messages, do not use error's message
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzz jung
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.4.5.1
206
+ rubygems_version: 2.4.8
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: A little convenient feature for standard library
@@ -212,4 +212,3 @@ test_files:
212
212
  - test/test_helper.rb
213
213
  - test/test_object_translation.rb
214
214
  - test/test_standard_error.rb
215
- has_rdoc: