cistern 0.11.2 → 0.11.3

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: 3ae50687387de9d226da400b9d56bf97f2ecddc4
4
- data.tar.gz: 93febb3647951b17b4aa0f076e4610d022db788b
3
+ metadata.gz: 5a7f9a02401d9c9e5c38402adb3ed56d8abbf143
4
+ data.tar.gz: 3244f949b14837163187b45dae902531f60af58a
5
5
  SHA512:
6
- metadata.gz: 30e2383f0df43ffd95fdee028407993d6eccfba52c27ddece42d5244a7ae5f5608c8106417f519b8bcbf47bb11a5a4fe2ac76acd8e88acf0a01006bdc9171ced
7
- data.tar.gz: 00ee7d048ebfc6cec54eea637d8c2da9eb3ce7cfba85513492097058046210de942359c439541fe9e99e6c1ab762827e9d4669f5e5e6a0783282649f71cdff20
6
+ metadata.gz: 4ae10e49af345b7879c1b2f5ec8a88edfc2e18cc773a81e9b30205cd957c39ef404a606f1cc0344e9251fce2a6656df1d4f972a715ba45f8885aca3e62e9e809
7
+ data.tar.gz: 77df65c3624f3512296491173ab6bcd9b150f3b2bafff6169063b5e7f182ef607dbc0e56500d4d82cd324d68eaa65041b1e9643da28db3f338533fffe4fe840c
@@ -123,7 +123,13 @@ module Cistern::Attributes
123
123
  # record the attribute was accessed
124
124
  self.class.attributes[name.to_s.to_sym][:coverage_hits] += 1 rescue nil
125
125
 
126
- attributes.fetch(name.to_s.to_sym, options[:default])
126
+ default = options[:default]
127
+
128
+ unless default.nil?
129
+ default = Marshal.load(Marshal.dump(default))
130
+ end
131
+
132
+ attributes.fetch(name.to_s.to_sym, default)
127
133
  end
128
134
 
129
135
  def write_attribute(name, value)
@@ -1,3 +1,3 @@
1
1
  module Cistern
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cistern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-15 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: API client framework extracted from Fog
14
14
  email: