array-sorted 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,21 +7,9 @@ files = [
7
7
 
8
8
  ]
9
9
 
10
- second_basepath = '../sorted_array'
11
-
12
- second_files = [
13
-
14
- 'array_interface'
15
-
16
- ]
17
-
18
10
  files.each do |this_file|
19
11
  require_relative( File.join( basepath, this_file ) + '.rb' )
20
12
  end
21
- second_files.each do |this_file|
22
- require_relative( File.join( second_basepath, this_file ) + '.rb' )
23
- end
24
13
 
25
14
  require_relative( basepath + '.rb' )
26
- require_relative( second_basepath + '.rb' )
27
15
 
@@ -11,9 +11,9 @@ module ::Array::Sorted::ArrayInterface
11
11
 
12
12
  # Adds optional block for retaining sort order.
13
13
  # @yield Block to use to determine sort order.
14
- def initialize( *args, & sort_object_block )
14
+ def initialize( configuration_instance = nil, *args, & sort_object_block )
15
15
 
16
- super( *args )
16
+ super( configuration_instance, *args )
17
17
 
18
18
  if block_given?
19
19
  @sort_object_block = sort_object_block
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-sorted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,9 +41,7 @@ files:
41
41
  - lib/array-hooked-sorted.rb
42
42
  - lib/array-sorted.rb
43
43
  - lib/hooked/array/sorted.rb
44
- - lib/sorted_array/array_interface.rb
45
- - lib/sorted_array.rb
46
- - spec/array/sorted_spec.rb
44
+ - spec/Array/Sorted_spec.rb
47
45
  - README.md
48
46
  - CHANGELOG.rdoc
49
47
  homepage: http://rubygems.org/gems/array-sorted
@@ -69,6 +67,6 @@ rubyforge_project: array-sorted
69
67
  rubygems_version: 1.8.23
70
68
  signing_key:
71
69
  specification_version: 3
72
- summary: Provides Array::Sorted and SortedArray.
70
+ summary: Provides Array::Sorted.
73
71
  test_files: []
74
72
  has_rdoc:
@@ -1,6 +0,0 @@
1
-
2
- class ::SortedArray < ::Array::Sorted
3
-
4
- include ::SortedArray::Interface
5
-
6
- end
@@ -1,23 +0,0 @@
1
-
2
- module ::SortedArray::Interface
3
-
4
- include ::Array::Sorted::ArrayInterface
5
- include ::HookedArray::Interface
6
-
7
- instances_identify_as!( ::SortedArray )
8
-
9
- ################
10
- # initialize #
11
- ################
12
-
13
- def initialize( configuration_instance = nil, & sort_object_block )
14
-
15
- super( configuration_instance )
16
-
17
- if block_given?
18
- @sort_object_block = sort_object_block
19
- end
20
-
21
- end
22
-
23
- end