coaster 0.4.3 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a62886d9a7540108bdafbf5b1f4f5fb005dff32a
4
- data.tar.gz: 4bde5583aa622d44296aeccdbbac7f26a97cbcf7
3
+ metadata.gz: 47e6a12a97270291d051cdc167c5e7b95495a8c3
4
+ data.tar.gz: 7cb248ed3b36df610062d16e2f0be47ab24cc35f
5
5
  SHA512:
6
- metadata.gz: 570974ef22dd3d7cf23a50400795f5df33d10901e7e66b8bd2bc27fcf9ea18a655075e8b6c5f241292aa4de99168c67247e8c18646b13b767adf340551c13374
7
- data.tar.gz: bb1cfdca33da85e89c54a79053409185321628f7394249f5d57e1d3b28515fa64ab556abddd802d3930cc3c1ac42d154cd040f7bcaa7c90a8c42d4643f9658ad
6
+ metadata.gz: 1d0abd53785570f54e47a499325d18f6b15ffa40b7ab8b9cc8ced1d64d1469122f251c14e4d8035b874155ef0474ead478e7cc5c997053078bfea4fd58b11e7d
7
+ data.tar.gz: b21679d2afa8b59ce5425ba1952e3ff5a40b91f891f70e0e454e448f842c533f493f6d6e0924da2fc2f3cf9990a30d11bedceab2f54b0051635d8289be112795
@@ -91,10 +91,18 @@ class StandardError
91
91
  attributes[:http_status] || self.class.http_status
92
92
  end
93
93
 
94
+ def http_status=(value)
95
+ attributes[:http_status] = value
96
+ end
97
+
94
98
  def code
95
99
  attributes[:code] || status
96
100
  end
97
101
 
102
+ def code=(value)
103
+ attributes[:code] = value
104
+ end
105
+
98
106
  # description is user friendly messages, do not use error's message
99
107
  # error message is not user friendly in many cases.
100
108
  def description
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzz jung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n