array-unique-compositing 1.0.3 → 1.0.4

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.rdoc CHANGED
@@ -14,3 +14,7 @@ Added :include? implementation using @unique_keys instead of linear search.
14
14
  == 6/1/12
15
15
 
16
16
  Added :configuration_instance parameter to :initialize.
17
+
18
+ == 7/14/12
19
+
20
+ Fix for lazy loading.
@@ -1,8 +1,6 @@
1
1
 
2
2
  require 'array/unique'
3
3
  require 'array/compositing'
4
- #require_relative '../../../../../hooked_objects/array-unique/lib/array-unique.rb'
5
- #require_relative '../../../../array-compositing/lib/array/compositing.rb'
6
4
 
7
5
  # namespaces that have to be declared ahead of time for proper load order
8
6
  require_relative './namespaces'
@@ -53,6 +53,18 @@ module ::Array::Unique::Compositing::ArrayInterface
53
53
  private ######################################################################################
54
54
  ##################################################################################################
55
55
 
56
+ #####################################
57
+ # lazy_set_parent_element_in_self #
58
+ #####################################
59
+
60
+ def lazy_set_parent_element_in_self( local_index, *optional_object )
61
+
62
+ object = super
63
+
64
+ @unique_keys[ object ] = true
65
+
66
+ end
67
+
56
68
  ###########################
57
69
  # update_for_parent_set #
58
70
  ###########################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-unique-compositing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
12
+ date: 2012-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: array-compositing