property_sets 0.0.9 → 0.0.10
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -65,7 +65,7 @@ module PropertySets
|
|
65
65
|
# The finder method which returns the property if present, otherwise a new instance with defaults
|
66
66
|
define_method "lookup" do |arg|
|
67
67
|
instance = detect { |property| property.name.to_sym == arg }
|
68
|
-
instance ||= property_class.new(@owner.class.name.underscore.to_sym => @owner, :name => arg.to_s)
|
68
|
+
instance ||= property_class.new(@owner.class.name.underscore.to_sym => @owner, :name => arg.to_s, :value => property_class.default(arg))
|
69
69
|
PropertySetProxy.new(instance)
|
70
70
|
end
|
71
71
|
end
|
data/property_sets.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: property_sets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Morten Primdahl
|