optic-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/optic/rails.rb +1 -1
- data/lib/optic/rails/railtie.rb +1 -1
- data/lib/optic/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742a1530b45eaca262ba37280f346065e5d56e5ca514fceb5fa64c1bee6b731f
|
4
|
+
data.tar.gz: c325342f0774b9d3ab8ab6365816a07d1b81aa3d8a673ad6a8f030810f87bd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21fcbdc22b6edb52a4fb249afe3362479fe37e9771a7df4be3ece58b0764f4114e3ab343440dc7f26490f23a4feabde3dd7e3fbbcf59ed0bd662b0eb3ee0ae0
|
7
|
+
data.tar.gz: 9b9fff52ff66296abc2b9b79d964f24804c9dfec1431744939d339e8a01fe7de837ded9ddc739347fae107fa05a6011f1c516c84900f61f30af7e13065dda9d6
|
data/lib/optic/rails.rb
CHANGED
@@ -79,7 +79,7 @@ module Optic
|
|
79
79
|
|
80
80
|
# Run PageRank on the graph to order the vertices by interestingness
|
81
81
|
alpha = 0.5 # arbitrary! seems to work!
|
82
|
-
vertices = graph.vertices.sort_by(&:name)
|
82
|
+
vertices = graph.vertices.find_all { |name| name.present? }.sort_by(&:name) # TODO why are some of these unnamed?
|
83
83
|
|
84
84
|
adjacency_matrix = Array.new(vertices.size) do |i|
|
85
85
|
Array.new(vertices.size) do |j|
|
data/lib/optic/rails/railtie.rb
CHANGED
data/lib/optic/rails/version.rb
CHANGED