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 +4 -4
- data/lib/cistern/attributes.rb +7 -1
- data/lib/cistern/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a7f9a02401d9c9e5c38402adb3ed56d8abbf143
|
|
4
|
+
data.tar.gz: 3244f949b14837163187b45dae902531f60af58a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ae10e49af345b7879c1b2f5ec8a88edfc2e18cc773a81e9b30205cd957c39ef404a606f1cc0344e9251fce2a6656df1d4f972a715ba45f8885aca3e62e9e809
|
|
7
|
+
data.tar.gz: 77df65c3624f3512296491173ab6bcd9b150f3b2bafff6169063b5e7f182ef607dbc0e56500d4d82cd324d68eaa65041b1e9643da28db3f338533fffe4fe840c
|
data/lib/cistern/attributes.rb
CHANGED
|
@@ -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
|
-
|
|
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)
|
data/lib/cistern/version.rb
CHANGED
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.
|
|
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:
|
|
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:
|