git-ds 0.9.8.4 → 0.9.8.6
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/ChangeLog +4 -0
- data/lib/git-ds/model/item.rb +10 -1
- data/lib/git-ds/model/property.rb +1 -0
- metadata +4 -4
data/ChangeLog
CHANGED
data/lib/git-ds/model/item.rb
CHANGED
@@ -338,7 +338,16 @@ Primary key (ident) for instance.
|
|
338
338
|
Return list of property names.
|
339
339
|
=end
|
340
340
|
def properties
|
341
|
-
self.class.properties.keys
|
341
|
+
self.class.properties.keys
|
342
|
+
end
|
343
|
+
|
344
|
+
=begin rdoc
|
345
|
+
List children of ModelItemClass. By default, this just lists the properties.
|
346
|
+
Classes should append non-property children (usually other modelitems) to
|
347
|
+
this list.
|
348
|
+
=end
|
349
|
+
def children
|
350
|
+
properties
|
342
351
|
end
|
343
352
|
|
344
353
|
=begin rdoc
|
@@ -185,6 +185,7 @@ Write path of object to property.
|
|
185
185
|
Instantiate object from path stored in property.
|
186
186
|
=end
|
187
187
|
def get(model, parent_path)
|
188
|
+
# the object path is stored in the property file
|
188
189
|
obj_path = super model, parent_path
|
189
190
|
@obj_class.new(model, obj_path) if obj_path && (not obj_path.empty?)
|
190
191
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-ds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- 6
|
11
|
+
version: 0.9.8.6
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- TG Community
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-09-21 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|