array-sorted-compositing 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,6 @@
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'
6
4
 
7
5
  # namespaces that have to be declared ahead of time for proper load order
8
6
  require_relative './namespaces'
@@ -12,6 +10,12 @@ require_relative './requires.rb'
12
10
 
13
11
  class ::Array::Sorted::Compositing < ::Array::Hooked
14
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
+
15
19
  include ::Array::Sorted::Compositing::ArrayInterface
16
20
 
17
21
  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.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-06 00:00:00.000000000 Z
12
+ date: 2012-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: array-compositing
@@ -58,7 +58,6 @@ 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
62
61
  - README.rdoc
63
62
  - CHANGELOG.rdoc
64
63
  homepage: http://rubygems.org/gems/array-sorted-compositing
@@ -72,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ! '>='
74
73
  - !ruby/object:Gem::Version
75
- version: '0'
74
+ version: 1.9.1
76
75
  required_rubygems_version: !ruby/object:Gem::Requirement
77
76
  none: false
78
77
  requirements:
data/README.md DELETED
@@ -1,75 +0,0 @@
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.