git-ds 0.9.8.4 → 0.9.8.6

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2011-09-21 : mkfs <mkfs@thoughtgang.org>
2
+ * Removed sort() call from ModelItemObject#properties
3
+ * Added children() method to ModelItemObject
4
+
1
5
  2011-08-09 : mkfs <mkfs@thoughtgang.org>
2
6
  * Added fix for "zero-padded file modes" error
3
7
 
@@ -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.sort
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: 47
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 4
11
- version: 0.9.8.4
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-08-09 00:00:00 -04:00
19
+ date: 2011-09-21 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency