sortviz 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{algorithms → lib/algorithms}/bubblesort.rb +0 -0
- data/{algorithms → lib/algorithms}/insertionsort.rb +0 -0
- data/{algorithms → lib/algorithms}/selectionsort.rb +0 -0
- data/lib/sortviz/version.rb +1 -1
- data/lib/sortviz/visualizer.rb +1 -1
- data/lib/sortviz.rb +2 -3
- data/sortviz.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e30b9e51cccc9c3a759b30c48bd2ea23770181b
|
4
|
+
data.tar.gz: 846ec151c0cbf34fd73d3eca5a125d18b7b40ef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 096d616309245732d9e35b263b89b883332fb56b6b28f5c06130b59ff4231a21f08234c42db951cd4ca48cba55b3ebdeb1e0b05aad0ce0666290b66d2bce70ae
|
7
|
+
data.tar.gz: 4dbc3f8bb250a8cebdd6e5d89024476274d3c485aca2eb9d718bafae4df4bb14917e48c79ef4420e9aa4611404e36cd493e2e7b125f8426fc0f4dafe1fdbf23f
|
File without changes
|
File without changes
|
File without changes
|
data/lib/sortviz/version.rb
CHANGED
data/lib/sortviz/visualizer.rb
CHANGED
@@ -27,7 +27,7 @@ module Sortviz
|
|
27
27
|
def visualize
|
28
28
|
begin
|
29
29
|
banner
|
30
|
-
# NOTICE: :
|
30
|
+
# NOTICE: :caveat: It's important to setup the canvas AFTER displaying
|
31
31
|
# the banner, so the canvas would correctly calculate its offsets
|
32
32
|
# based on the current cursor position, as in, after printing banner
|
33
33
|
@canvas.setup
|
data/lib/sortviz.rb
CHANGED
@@ -6,9 +6,8 @@ require 'sortviz/canvas'
|
|
6
6
|
require 'sortviz/visualizer'
|
7
7
|
require 'sortviz/plugins'
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
Dir[File.join(dir, '*.rb')].each {|file| require File.basename(file) }
|
9
|
+
libdir = File.dirname(__FILE__)
|
10
|
+
Dir[libdir + '/algorithms/*.rb'].each {|file| require file }
|
12
11
|
|
13
12
|
module Sortviz
|
14
13
|
extend self
|
data/sortviz.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Terminal based sorting algorithms visualizer}
|
13
13
|
spec.description = %q{Visualize sorting algorithms with Ruby and Curses lib}
|
14
|
-
spec.homepage = "http://hadyahmed.com
|
14
|
+
spec.homepage = "http://hadyahmed.com"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sortviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hady Ahmed
|
@@ -84,12 +84,12 @@ files:
|
|
84
84
|
- LICENSE.txt
|
85
85
|
- README.md
|
86
86
|
- Rakefile
|
87
|
-
- algorithms/bubblesort.rb
|
88
|
-
- algorithms/insertionsort.rb
|
89
|
-
- algorithms/selectionsort.rb
|
90
87
|
- bin/console
|
91
88
|
- bin/setup
|
92
89
|
- exe/sortviz
|
90
|
+
- lib/algorithms/bubblesort.rb
|
91
|
+
- lib/algorithms/insertionsort.rb
|
92
|
+
- lib/algorithms/selectionsort.rb
|
93
93
|
- lib/sortviz.rb
|
94
94
|
- lib/sortviz/canvas.rb
|
95
95
|
- lib/sortviz/cursor.rb
|
@@ -98,7 +98,7 @@ files:
|
|
98
98
|
- lib/sortviz/visualizer.rb
|
99
99
|
- screenshot.png
|
100
100
|
- sortviz.gemspec
|
101
|
-
homepage: http://hadyahmed.com
|
101
|
+
homepage: http://hadyahmed.com
|
102
102
|
licenses:
|
103
103
|
- MIT
|
104
104
|
metadata: {}
|