cistern 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cistern/attributes.rb +2 -2
- 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: 06c6ce008de39695dfbae8ca9e6c5429e75c675f
|
4
|
+
data.tar.gz: b049614c035bf9a4284d5e7c6b1f20085a544b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e04b4dbbe14e346c0388c3fd00c341f48638d7384e32a6328088dc0744000f71b6d36a684494ff37fd3028ccc7d73a655743e3adfae45e06c375dfbd2b9c0b13
|
7
|
+
data.tar.gz: 14fe25476a2f3ebac056bec9636a30b07d41d4ed97d9d45e62988ba8279c2a7f0ea4e0018a9d183ac44ff95d6eecc60cc4e074113f60231e1c61d1f3323c8854
|
data/lib/cistern/attributes.rb
CHANGED
@@ -81,7 +81,7 @@ module Cistern::Attributes
|
|
81
81
|
self.class.attributes[name.to_s.to_sym][:coverage_hits] += 1 rescue nil
|
82
82
|
|
83
83
|
attributes[name.to_s.to_sym]
|
84
|
-
end
|
84
|
+
end unless self.instance_methods.include?(name)
|
85
85
|
|
86
86
|
if options[:type] == :boolean
|
87
87
|
self.send(:alias_method, "#{name}?", name)
|
@@ -90,7 +90,7 @@ module Cistern::Attributes
|
|
90
90
|
self.send(:define_method, "#{name}=") do |value|
|
91
91
|
transformed = transform.call(name, value, options)
|
92
92
|
attributes[name.to_s.to_sym]= parser.call(transformed, options)
|
93
|
-
end
|
93
|
+
end unless self.instance_methods.include?("#{name}=".to_sym)
|
94
94
|
|
95
95
|
if self.attributes[name]
|
96
96
|
raise(ArgumentError, "#{self.name} attribute[#{_name}] specified more than once")
|
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.5.
|
4
|
+
version: 0.5.10
|
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-04-
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: API client framework extracted from Fog
|
14
14
|
email:
|