array-compositing 1.0.0 → 1.0.1
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.rb +6 -0
- data/lib/array/compositing/array_interface.rb +2 -24
- metadata +3 -4
- data/README.rdoc +0 -0
data/CHANGELOG.rdoc
CHANGED
data/lib/array/compositing.rb
CHANGED
|
@@ -10,6 +10,12 @@ require_relative './requires.rb'
|
|
|
10
10
|
|
|
11
11
|
class ::Array::Compositing < ::Array::Hooked
|
|
12
12
|
|
|
13
|
+
alias_method :non_cascading_set, :[]=
|
|
14
|
+
|
|
15
|
+
alias_method :non_cascading_insert, :insert
|
|
16
|
+
|
|
17
|
+
alias_method :non_cascading_delete_at, :delete_at
|
|
18
|
+
|
|
13
19
|
include ::Array::Compositing::ArrayInterface
|
|
14
20
|
|
|
15
21
|
end
|
|
@@ -6,28 +6,6 @@ module ::Array::Compositing::ArrayInterface
|
|
|
6
6
|
instances_identify_as!( ::Array::Compositing )
|
|
7
7
|
|
|
8
8
|
ParentIndexStruct = ::Struct.new( :local_index, :replaced )
|
|
9
|
-
|
|
10
|
-
extend ::Module::Cluster
|
|
11
|
-
|
|
12
|
-
cluster( :compositing_array_interface ).before_include.cascade_to( :class ) do |hooked_instance|
|
|
13
|
-
|
|
14
|
-
hooked_instance.class_eval do
|
|
15
|
-
|
|
16
|
-
unless method_defined?( :non_cascading_set )
|
|
17
|
-
alias_method :non_cascading_set, :[]=
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
unless method_defined?( :non_cascading_insert )
|
|
21
|
-
alias_method :non_cascading_insert, :insert
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
unless method_defined?( :non_cascading_delete_at )
|
|
25
|
-
alias_method :non_cascading_delete_at, :delete_at
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
end
|
|
31
9
|
|
|
32
10
|
################
|
|
33
11
|
# initialize #
|
|
@@ -283,9 +261,9 @@ module ::Array::Compositing::ArrayInterface
|
|
|
283
261
|
################################################
|
|
284
262
|
# perform_single_object_insert_between_hooks #
|
|
285
263
|
################################################
|
|
286
|
-
|
|
264
|
+
puts 'blah'
|
|
287
265
|
def perform_single_object_insert_between_hooks( local_index, object )
|
|
288
|
-
|
|
266
|
+
puts 'here: ' + object.to_s
|
|
289
267
|
if local_index = super
|
|
290
268
|
|
|
291
269
|
@parent_index_map.local_insert( local_index, 1 )
|
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.1
|
|
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-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: array-hooked
|
|
@@ -44,7 +44,6 @@ files:
|
|
|
44
44
|
- spec/array/compositing/parent_index_map_spec.rb
|
|
45
45
|
- spec/array/compositing_spec.rb
|
|
46
46
|
- README.md
|
|
47
|
-
- README.rdoc
|
|
48
47
|
- CHANGELOG.rdoc
|
|
49
48
|
homepage: http://rubygems.org/gems/array-compositing
|
|
50
49
|
licenses: []
|
|
@@ -57,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
57
56
|
requirements:
|
|
58
57
|
- - ! '>='
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
59
|
+
version: 1.9.1
|
|
61
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
61
|
none: false
|
|
63
62
|
requirements:
|
data/README.rdoc
DELETED
|
File without changes
|