array-sorted-compositing 1.0.1 → 1.0.3

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/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # Sorted Compositing Array #
2
+
3
+ http://rubygems.org/gems/array-sorted-compositing
4
+
5
+ # Description #
6
+
7
+ Provides Array::Sorted::Compositing.
8
+
9
+ # Summary #
10
+
11
+ An implementation of Array that permits chaining, where children inherit changes to parent and where parent settings can be overridden in children, and that retains sorted order.
12
+
13
+ # Install #
14
+
15
+ * sudo gem install array-sorted-compositing
16
+
17
+ # Usage #
18
+
19
+ ```ruby
20
+ compositing_array = Array::Sorted::Compositing.new
21
+ sub_compositing_array = Array::Sorted::Compositing.new( compositing_array )
22
+
23
+ compositing_array.push( :A )
24
+ # compositing_array
25
+ # => [ :A ]
26
+ # sub_compositing_array
27
+ # => [ :A ]
28
+ compositing_array.push( :C )
29
+ # compositing_array
30
+ # => [ :A, :C ]
31
+ # sub_compositing_array
32
+ # => [ :A, :C ]
33
+ compositing_array.push( :B )
34
+ # compositing_array
35
+ # => [ :A, :B, :C ]
36
+ # sub_compositing_array
37
+ # => [ :A, :B, :C ]
38
+
39
+ compositing_array.delete_at( 0 )
40
+ # compositing_array
41
+ # => [ :B, :C ]
42
+ # sub_compositing_array
43
+ # => [ :B, :C ]
44
+
45
+ sub_compositing_array.push( :A )
46
+ # compositing_array
47
+ # => [ :B, :C ]
48
+ # sub_compositing_array
49
+ # => [ :A, :B, :C ]
50
+ ```
51
+
52
+ # License #
53
+
54
+ (The MIT License)
55
+
56
+ Copyright (c) Asher
57
+
58
+ Permission is hereby granted, free of charge, to any person obtaining
59
+ a copy of this software and associated documentation files (the
60
+ 'Software'), to deal in the Software without restriction, including
61
+ without limitation the rights to use, copy, modify, merge, publish,
62
+ distribute, sublicense, and/or sell copies of the Software, and to
63
+ permit persons to whom the Software is furnished to do so, subject to
64
+ the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be
67
+ included in all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
70
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
72
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
73
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
74
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
75
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,8 @@
1
1
 
2
2
  require 'array/sorted'
3
3
  require 'array/compositing'
4
+ #require_relative '../../../../../hooked_objects/array-sorted/lib/array-sorted.rb'
5
+ #require_relative '../../../../array-compositing/lib/array-compositing.rb'
4
6
 
5
7
  # namespaces that have to be declared ahead of time for proper load order
6
8
  require_relative './namespaces'
@@ -10,12 +12,6 @@ require_relative './requires.rb'
10
12
 
11
13
  class ::Array::Sorted::Compositing < ::Array::Hooked
12
14
 
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
-
19
15
  include ::Array::Sorted::Compositing::ArrayInterface
20
16
 
21
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-sorted-compositing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,6 +58,7 @@ files:
58
58
  - lib/array/sorted/requires.rb
59
59
  - lib/array-sorted-compositing.rb
60
60
  - spec/array/sorted/compositing_spec.rb
61
+ - README.md
61
62
  - README.rdoc
62
63
  - CHANGELOG.rdoc
63
64
  homepage: http://rubygems.org/gems/array-sorted-compositing
@@ -71,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - ! '>='
73
74
  - !ruby/object:Gem::Version
74
- version: 1.9.1
75
+ version: '0'
75
76
  required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  none: false
77
78
  requirements: