coaster 0.5.0 → 0.5.1

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: 3f3443395e8b26f474e4d170c1dd1e3edea41cf9
4
- data.tar.gz: 482a7957080674361a16c29a6284e7f819c8248e
3
+ metadata.gz: 918a85bbbc648cbf7916416c5cb6547c60933f2f
4
+ data.tar.gz: 6324a9dc65d8e1d58114c924993b049f77ad6b61
5
5
  SHA512:
6
- metadata.gz: 27ff86f49682b3bfc97c2e9f335fb1a01921b524541b7d7c5f11c283f5bd6afb50a798bcfa4748d4bbf4c457707705e2826f2c5fd4d4c431017c7f4e02bb5eb3
7
- data.tar.gz: a109aefbd31130b58d721a92a365f3b726b4afe0854ef7a4b94872545f20332fe6f589629eb6d1952f474f30891b79d93c894204a5df503977e1b29fafac3bf7
6
+ metadata.gz: c938784571f3b9b3a9b5fff356487dc748b04af567810979acc2ac7065c361f9f11f5d78e955b2be9c937a20eac22aa81cd34399f85b2fce09733f766d7de4f3
7
+ data.tar.gz: 0a43a2a7f20ff87ea562d5f867468720eda20a4d30c043668b32c4a5853a5bd48f05c56749b4916a9fe7e52de69107a83479b81353ebf84fa62cc1959b152a7b
@@ -78,12 +78,12 @@ class StandardError
78
78
  end
79
79
 
80
80
  def attributes
81
- @attributes ||= HashWithIndifferentAccess.new
81
+ return @attributes if defined?(@attributes)
82
+ @attributes = HashWithIndifferentAccess.new
82
83
  if cause && cause.respond_to?(:attributes) && cause.attributes.is_a?(Hash)
83
- cause.attributes.merge(@attributes)
84
- else
85
- @attributes
84
+ @attributes = @attributes.merge(cause.attributes)
86
85
  end
86
+ @attributes
87
87
  end
88
88
  alias_method :attr, :attributes
89
89
 
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
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.5.0
4
+ version: 0.5.1
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-12-05 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -68,14 +68,14 @@ dependencies:
68
68
  name: attr_extras
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - "~>"
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
78
+ - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  - !ruby/object:Gem::Dependency