coaster 0.1.8 → 0.1.9

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: 0078d98287eacfdc837ba625421f3b4d401b05c7
4
- data.tar.gz: 614def4d15e58cd528d05ddb119504d121d4b0f9
3
+ metadata.gz: 3bf03c8e2a57151a71c57dd236521b3e27298fab
4
+ data.tar.gz: 081f46d0508d044ef04cf6da479001ed7e6a38bb
5
5
  SHA512:
6
- metadata.gz: 5cf82ec67af8ee7a1849626132a2edd965aa695e08286b401c229a2ca68e6f2dec4a830ae409cce6e38ef60a72a9cbafcf94cb86f715a5383f05794f148131f3
7
- data.tar.gz: dc0047f65de92a4a8bf7418f923153eb9520590613c088f1ee52756ac2c0a52fa4c74c56811f63b8d419695848586df761f4a1b269c63d607797844be2b9eb0d
6
+ metadata.gz: 1f24b63083787980ffc0d69a9f134a2615c7bc6708a4ce229ba89254491870adaa02a637db83a862bab482a9e2de0c5e91e29bf50dc04c207aa35e72a25800d1
7
+ data.tar.gz: e62400b021e67bf6b7f59df8fdafc87137d0be69614629cdbc9d6716dc0d1d6891f32a9e9d098b0530f982bbca82f6defcf1bb25e3c66485d361d8243b56c10e
@@ -33,6 +33,7 @@ class Object
33
33
  end
34
34
  options[:tkey] ||= key
35
35
  options.merge!(throw: true)
36
+ options.symbolize_keys!
36
37
  result = catch(:exception) do
37
38
  I18n.t(key, *args, options)
38
39
  end
@@ -1,4 +1,3 @@
1
- require 'active_support/core_ext/hash/indifferent_access'
2
1
  require 'active_support/core_ext/class/attribute_accessors'
3
2
  require 'active_support/core_ext/string'
4
3
  require 'coaster/core_ext/object_translation'
@@ -137,7 +136,9 @@ class StandardError
137
136
  lg += "\n\tMESSAGE: #{message.gsub(/\n/, "\n\t\t")}"
138
137
  instance_variables.each do |var|
139
138
  unless var.to_s.start_with?('@_')
140
- lg += "\n\t#{var}: #{instance_variable_get(var)}"
139
+ val = instance_variable_get(var)
140
+ val = val.inspect rescue val.to_s
141
+ lg += "\n\t#{var}: #{val}"
141
142
  end
142
143
  end
143
144
  if cause
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
data/lib/coaster.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'active_support/core_ext/hash/indifferent_access'
1
2
  require 'active_support/core_ext/module/attribute_accessors'
2
3
 
3
4
  module Coaster
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.8
4
+ version: 0.1.9
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