array-compositing 1.0.5 → 1.0.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.rdoc +4 -0
- data/lib/array/compositing/array_interface.rb +14 -2
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -174,6 +174,18 @@ module ::Array::Compositing::ArrayInterface
|
|
174
174
|
|
175
175
|
end
|
176
176
|
|
177
|
+
##############
|
178
|
+
# include? #
|
179
|
+
##############
|
180
|
+
|
181
|
+
def include?( object )
|
182
|
+
|
183
|
+
load_parent_state
|
184
|
+
|
185
|
+
return super
|
186
|
+
|
187
|
+
end
|
188
|
+
|
177
189
|
##########
|
178
190
|
# to_s #
|
179
191
|
##########
|
@@ -333,7 +345,7 @@ module ::Array::Compositing::ArrayInterface
|
|
333
345
|
# We call hooks manually so that we can do a direct undecorated set.
|
334
346
|
# This is because we already have an object we loaded as a place-holder that we are now updating.
|
335
347
|
# So we don't want to sort/test uniqueness/etc. We just want to insert at the actual index.
|
336
|
-
|
348
|
+
|
337
349
|
unless @without_child_hooks
|
338
350
|
object = child_pre_set_hook( local_index, object, false )
|
339
351
|
end
|
@@ -353,7 +365,7 @@ module ::Array::Compositing::ArrayInterface
|
|
353
365
|
unless @without_child_hooks
|
354
366
|
child_post_set_hook( local_index, object, false )
|
355
367
|
end
|
356
|
-
|
368
|
+
|
357
369
|
return object
|
358
370
|
|
359
371
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: array-compositing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
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-
|
12
|
+
date: 2012-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: array-hooked
|