ralgorithms 0.2.1 → 0.3.0

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.
@@ -0,0 +1,21 @@
1
+ # http://svn.python.org/projects/python/trunk/Objects/listsort.txt
2
+ # http://svn.python.org/projects/python/trunk/Objects/listobject.c
3
+ # http://cr.openjdk.java.net/~martin/webrevs/openjdk7/timsort/src/share/classes/java/util/TimSort.java.html
4
+ require File.join(File.dirname(File.realpath(__FILE__)), "insertion_sort")
5
+ require File.join(File.dirname(File.realpath(__FILE__)), "helper")
6
+ module Sorting
7
+ class TimSort
8
+ extend Helper
9
+ TEST_DATA_SIZE=nil
10
+
11
+ def self.sort!(data, l=0, r=data.size-1)
12
+ nil
13
+ end
14
+
15
+ end
16
+ end
17
+
18
+ if __FILE__ == $0
19
+ require File.join(File.dirname(File.realpath(__FILE__)), "test_helper")
20
+ Sorting::TestHelper.test __FILE__
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ralgorithms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,10 +14,29 @@ dependencies: []
14
14
  description: Algorithms implemented in Ruby.
15
15
  email: qianthinking@gmail.com
16
16
  executables: []
17
- extensions: []
17
+ extensions:
18
+ - ext/sorting/extconf.rb
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - bin/benchmark
22
+ - ext/sorting/sorting_ext.c
23
+ - ext/sorting/sorting_common.c
24
+ - ext/sorting/extconf.rb
25
+ - lib/searching/skip_list.rb
26
+ - lib/sorting/tim_sort.rb
27
+ - lib/sorting/quick_sort.rb
28
+ - lib/sorting/smooth_sort.rb
29
+ - lib/sorting/load_ext.rb
30
+ - lib/sorting/insertion_sort.rb
31
+ - lib/sorting/helper.rb
32
+ - lib/sorting/bubble_sort.rb
33
+ - lib/sorting/test_helper.rb
34
+ - lib/sorting/library_sort.rb
35
+ - lib/sorting/intro_sort.rb
36
+ - lib/sorting/shell_sort.rb
37
+ - lib/sorting/heap_sort.rb
38
+ - lib/sorting/selection_sort.rb
39
+ - lib/sorting/merge_sort.rb
21
40
  - README.md
22
41
  homepage: https://github.com/qianthinking/ralgorithms
23
42
  licenses: []