rubrowser 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,13 +8,14 @@ $(document).on('click', '.panel .title', function(){
8
8
  $(document).on('graph-rendered', function(){
9
9
  rubrowser.node.on('click', function(d){
10
10
  var namespace = d.id;
11
+ var lines = d.lines;
11
12
  var dependents = rubrowser.relations.filter(function(i){ return i.target.id == namespace; });
12
13
  var dependencies = rubrowser.relations.filter(function(i){ return i.source.id == namespace; });
13
14
  var definitions = rubrowser.data.definitions.filter(function(i){ return i.namespace == namespace; });
14
15
  var relations = rubrowser.data.relations.filter(function(i){ return i.resolved_namespace == namespace || i.caller == namespace; });
15
16
 
16
17
  var content = $('<div>');
17
- content.append('<label><strong>'+namespace+'</strong></label>');
18
+ content.append('<label><strong>'+namespace+' ('+d.lines+' Lines)</strong></label>');
18
19
 
19
20
  content.append('<strong>Defined in:</strong>');
20
21
  var definitions_ol = $("<ol>");
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubrowser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emad Elsaid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -76,13 +76,13 @@ files:
76
76
  - lib/rubrowser.rb
77
77
  - lib/rubrowser/data.rb
78
78
  - lib/rubrowser/formatter/json.rb
79
- - lib/rubrowser/parser/builder.rb
80
79
  - lib/rubrowser/parser/definition/base.rb
81
80
  - lib/rubrowser/parser/definition/class.rb
82
81
  - lib/rubrowser/parser/definition/module.rb
83
82
  - lib/rubrowser/parser/directory.rb
84
83
  - lib/rubrowser/parser/factory.rb
85
84
  - lib/rubrowser/parser/file.rb
85
+ - lib/rubrowser/parser/file/builder.rb
86
86
  - lib/rubrowser/parser/relation/base.rb
87
87
  - lib/rubrowser/server.rb
88
88
  - lib/rubrowser/version.rb
@@ -1,13 +0,0 @@
1
- module Rubrowser
2
- module Parser
3
- # This class is a workaround for this behaviour
4
- # https://github.com/whitequark/parser/commit/95401a20e8f4532e32f6361da3918ac8e4bd18c7
5
- # the snippet that is using this class in File is copied from:
6
- # https://github.com/eapache/starscope/pull/166/files
7
- class Builder < ::Parser::Builders::Default
8
- def string_value(token)
9
- value(token)
10
- end
11
- end
12
- end
13
- end