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 +4 -4
- data/lib/coaster/core_ext/standard_error.rb +2 -1
- data/lib/coaster/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 896afca25794eb01feb74ee9aef918b07a5c3703
|
4
|
+
data.tar.gz: b83c7d68111aa21621c9cf2d426ebdbe0465b67a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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] ||
|
90
|
+
attributes[:code] || status
|
90
91
|
end
|
91
92
|
|
92
93
|
# description is user friendly messages, do not use error's message
|
data/lib/coaster/version.rb
CHANGED
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.
|
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.
|
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:
|