coaster 1.3.3 → 1.3.4

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
  SHA256:
3
- metadata.gz: 33d174be37c41745be18836a83e051931f9c7eff099bc65d4bfbdb292e467732
4
- data.tar.gz: 8c822b6bad5a1d334057a5cd577e8f236b201cfc74cd8ce6bd1c6586190880ab
3
+ metadata.gz: '095940670cdfde3eac7e9c3ab8818386b9070cf4d19ac405e144296e2bdb2c25'
4
+ data.tar.gz: 468278966fcdad4349921586d9520a2dd0b84188f52f5f089678f09b88ea7ef8
5
5
  SHA512:
6
- metadata.gz: 58cfb38ecda73be57102b58e19d1badabc1a6ddf87717df4d8e6dc74b918fdf7f4e7d3569cffdb32968c3a5adc79b33930b14e534e6d1176656b22048a7a2951
7
- data.tar.gz: 2886f1c69b87eda652641e8f28e48fb1514c8e8d1fe0d65973a93d63553426ea8dedd6012f27058b483f3ec293233e1468a1c67763a02ac1e0208804b9b1ff80
6
+ metadata.gz: 9a332cd5b18dd1963a010293352c80939d99c968f4c83d52f02aebf0d50d444eb2ed82ed0590afded4eed2712b58eb550b7ca1f1f90389d42011b920435a7929
7
+ data.tar.gz: 4fe3cddcca27bc17f0c189e9eb829b68f52f07b9a4b4c6c2a9dcbbaca883c2d2cb4e89f134c159fc0a94888049ac990dbb6c26d7811681f32d995a4e8dcbc22d
@@ -133,7 +133,7 @@ class StandardError
133
133
  # user friendly message, for overid
134
134
  def user_message
135
135
  return description if description.present?
136
- return _translate if tkey.present?
136
+ return _translate if tkey.present? || dev_message.present?
137
137
  "#{_translate} (#{to_origin_s})"
138
138
  end
139
139
 
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '1.3.3'
2
+ VERSION = '1.3.4'
3
3
  end
@@ -97,7 +97,7 @@ module Coaster
97
97
  assert_nil e.description
98
98
  assert_nil e.desc
99
99
  assert_equal 'Test sample error', e._translate
100
- assert_equal 'Test sample error (Coaster::TestStandardError::SampleError)', e.user_message
100
+ assert_equal 'Test sample error', e.user_message
101
101
  assert_equal 'Test this title', e.title
102
102
  e = SampleError.new(m: 'developer message', desc: 'user message')
103
103
  assert_equal "user message (developer message)", e.to_s
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: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzz jung