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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 023f0944331b5b023b4dbe243e3d22de5f1b3da3b98862dd9e037c570106fd6e
4
- data.tar.gz: b733b63462a0cd702303730b9211d886acf662d96d5de19ae0cbfb74318e45c7
3
+ metadata.gz: 742a1530b45eaca262ba37280f346065e5d56e5ca514fceb5fa64c1bee6b731f
4
+ data.tar.gz: c325342f0774b9d3ab8ab6365816a07d1b81aa3d8a673ad6a8f030810f87bd82
5
5
  SHA512:
6
- metadata.gz: c97a65a391fabb9a134dcd2078cc86d47b3fa81082b65fc85e0251d13074e1f481a3ed23f1471aee5c5189d683dd43d1c1e179d88b7b75cb2a5d2b54df9d8ec4
7
- data.tar.gz: 9ef26af07a6bf57fbc67f9267c9cb8e31323794d98a2dbde064fea259a82ba623d9e6efc6152ace851f9c4ea5ed752fda6e2d330df7e7e4e716c62026c8b55c3
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|
@@ -74,7 +74,7 @@ module Optic
74
74
  begin
75
75
  worker.join
76
76
  rescue => e
77
- logger.error "Worker thread died with error", e
77
+ logger.error "Worker thread died with error: #{e}"
78
78
  end
79
79
 
80
80
  logger.warn "Supervisor thread detected dead worker, sleeping"
@@ -1,5 +1,5 @@
1
1
  module Optic
2
2
  module Rails
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optic-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Vaynshtok