rubrowser 2.5.0 → 2.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e67fd969c9155da49e88d2cc1fd703ac364064841a3800ad03c70bc7c922bfc7
4
- data.tar.gz: 478c3f44d920a685109f24630e17658f3854adc3db675596baa285e4ec8e4538
2
+ SHA1:
3
+ metadata.gz: 0105f708ea3b97b023bb2be41d2d86eb7144083e
4
+ data.tar.gz: a44cc7253f7e810a2994ae801a8e2940f379bd38
5
5
  SHA512:
6
- metadata.gz: 454bcb581e7fa255cce469d2b82f4321aa0d9f2cf127d2439a99ab437836028587d05a75214b224e1930c971c8b93739aa85838f1a3588658c3909c9d7c84d50
7
- data.tar.gz: 5281d603a1ab859d8609fb05a04ecb63b923beb65977e89ce628a8e6716d17c817eae2ec43e53496f377d348aced37f923374022cf9b5540191157a332bc0f25
6
+ metadata.gz: baa24df653d21ed1c87ad867934fe0cf619adec9fec72dcbec1d12ea88b1d5163a5a6a985773f65d13f577f8149f441145da2e71f05c65b94e00f7ceb447f82f
7
+ data.tar.gz: 4ee9e2d15638d6cb2c24f39673c5ff515f10a2d6d4da7f135592823d1c717af0cdb6d176f4a342760e01ec921ec5dda3e0b46f3a5b332fe8441024d39603550d
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubrowser (2.5.0)
4
+ rubrowser (2.6.0)
5
5
  parser (~> 2.3, >= 2.3.0)
6
6
 
7
7
  GEM
data/bin/rubrowser CHANGED
@@ -14,13 +14,17 @@ options = {
14
14
  OptionParser.new do |opts|
15
15
  opts.banner = "Usage: #{__FILE__} [options] [file] ..."
16
16
 
17
- opts.on('-oFILE', '--output=FILE', 'output file page, if not specified output will be written to stdout') do |output|
18
- options[:output] = output
19
- end
20
-
21
- opts.on('-lFILE', '--layout=FILE', 'layout file to apply on the resulting graph') do |layout|
22
- options[:layout] = layout
23
- end
17
+ opts.on(
18
+ '-oFILE',
19
+ '--output=FILE',
20
+ 'output file page, if not specified output will be written to stdout'
21
+ ) { |output| options[:output] = output }
22
+
23
+ opts.on(
24
+ '-lFILE',
25
+ '--layout=FILE',
26
+ 'layout file to apply on the resulting graph'
27
+ ) { |layout| options[:layout] = layout }
24
28
 
25
29
  opts.on('-T', '--no-toolbox', 'Don\'t display toolbox on the page') do
26
30
  options[:toolbox] = false
@@ -1,3 +1,3 @@
1
1
  module Rubrowser
2
- VERSION = '2.5.0'.freeze
2
+ VERSION = '2.6.0'.freeze
3
3
  end
@@ -4,18 +4,19 @@ html, body, .dependency_graph, .dependency_graph svg{
4
4
  padding: 0px;
5
5
  margin: 0px;
6
6
  font-size: 13px;
7
+ overflow: hidden;
7
8
  }
8
9
 
9
10
  .link {
10
- fill: none;
11
- stroke: #666;
12
- stroke-width: 1.5px;
11
+ fill: none;
12
+ stroke: #666;
13
+ stroke-width: 1.5px;
13
14
  }
14
15
 
15
16
  circle {
16
- fill: #fff;
17
- stroke: #333;
18
- stroke-width: 1.5px;
17
+ fill: #fff;
18
+ stroke: #333;
19
+ stroke-width: 1.5px;
19
20
  }
20
21
 
21
22
  .circular {
@@ -23,13 +24,13 @@ circle {
23
24
  }
24
25
 
25
26
  .fixed circle {
26
- stroke-width: 3px;
27
+ stroke-width: 3px;
27
28
  }
28
29
 
29
30
  text {
30
- font: 10px sans-serif;
31
- pointer-events: none;
32
- text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
31
+ font: 10px sans-serif;
32
+ pointer-events: none;
33
+ text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
33
34
  }
34
35
 
35
36
  text.type{
@@ -83,3 +84,24 @@ ul, ol{
83
84
  padding-left: 0px;
84
85
  overflow: auto;
85
86
  }
87
+
88
+ #information_panel{
89
+ position: fixed;
90
+ bottom: 0px;
91
+ left: 0px;
92
+ height: 5rem;
93
+ background: rgba(255,255,255,0.8);
94
+ width: 100%;
95
+ margin-left: 250px;
96
+ padding-right: 250px;
97
+ }
98
+
99
+ #information_panel div{
100
+ margin: 1rem;
101
+ display: inline-block;
102
+ }
103
+
104
+ #information_panel:hover{
105
+ height: 33%;
106
+ overflow: auto;
107
+ }
data/readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Rubrowser
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/rubrowser.svg)](https://badge.fury.io/rb/rubrowser)
4
-
4
+ [![Build Status](https://travis-ci.org/emad-elsaid/rubrowser.svg?branch=master)](https://travis-ci.org/emad-elsaid/rubrowser)
5
5
 
6
6
 
7
7
  a visualizer for ruby code (rails or otherwise), it analyze your code and
data/views/toolbox.erb CHANGED
@@ -1,10 +1,4 @@
1
1
  <div class="toolbox">
2
- <div class="card ml-2 mt-2">
3
- <div class="card-header">Node Details</div>
4
- <div class="card-body" id="information_panel">
5
- Please click on any node.
6
- </div>
7
- </div>
8
2
  <div class="card ml-2 mt-2">
9
3
  <div class="card-header">Search</div>
10
4
  <div class="card-body">
@@ -69,3 +63,5 @@
69
63
  </div>
70
64
  </div>
71
65
  </div>
66
+
67
+ <div id="information_panel" class="card"></div>
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: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emad Elsaid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-10 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -113,6 +113,7 @@ files:
113
113
  - ".rspec"
114
114
  - ".rubocop.yml"
115
115
  - ".rubrowser"
116
+ - ".travis.yml"
116
117
  - Gemfile
117
118
  - Gemfile.lock
118
119
  - MIT-LICENSE
@@ -160,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
161
  version: '0'
161
162
  requirements: []
162
163
  rubyforge_project:
163
- rubygems_version: 2.7.3
164
+ rubygems_version: 2.6.10
164
165
  signing_key:
165
166
  specification_version: 4
166
167
  summary: A ruby interactive dependency graph visualizer