rubrowser 2.2.0 → 2.3.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
- SHA1:
3
- metadata.gz: 6b289faa595ba604fd4a512f0b92ed805b514499
4
- data.tar.gz: c98570f4f2365a8d670967941f4e5638789211bc
2
+ SHA256:
3
+ metadata.gz: 8002d005fb557db7ff8facd9628eb9e2f372fe95c7f1249545fb26c0d799cb2e
4
+ data.tar.gz: b873c80165e6451aeacf02f7f4dee5ddfee53484ba817bc68e8f93311e82cfc2
5
5
  SHA512:
6
- metadata.gz: b49456ac5b7772bfd815658587e740422f02e10193bece15133984d374e65a58f95a5edfc16a1a8154601f056c2c75fb4f2976ebc3617cd46cfa334a727d28f4
7
- data.tar.gz: a1804ef9b1bf354a290159f8d99332baac4723e4eff65af626dd69d7e1e2c67c3907db6bfcd0c8603eeef9f28333ca6d779bbccdc775ab1d197fc8b911dcc9af
6
+ metadata.gz: e9b9ae14d515ce39948d9f5b6c4142a6fcf00177470c8147df5dce6561789c66b77dab9d8c642ace9c7e3c999ad4c2ea78d365910455908063840fb643b14829
7
+ data.tar.gz: dec79a4c9cd503c355264f0bfbd38d3f230c5fe36053e4cb936fcd0567eaf493acf5d4c36cef48f075a71015eeceae942be5e2d6158a9e970a0671ac77aa4993
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubrowser (2.2.0)
4
+ rubrowser (2.3.0)
5
5
  parser (~> 2.3, >= 2.3.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Rubrowser
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
@@ -3,7 +3,7 @@ html, body, .dependency_graph, .dependency_graph svg{
3
3
  height: 100%;
4
4
  padding: 0px;
5
5
  margin: 0px;
6
- font: 10px sans-serif;
6
+ font-size: 13px;
7
7
  }
8
8
 
9
9
  .link {
@@ -65,63 +65,15 @@ text.type{
65
65
  top: 0px;
66
66
  left: 0px;
67
67
  max-height: 100%;
68
- width: 200px;
68
+ width: 250px;
69
69
  background: white;
70
- border-right: 1px solid #ddd;
71
70
  overflow: auto;
72
71
  }
73
72
 
74
- .panel .title{
75
- padding: 10px;
76
- font-weight: bold;
77
- text-transform: uppercase;
78
- cursor: pointer;
79
- border-bottom: 1px solid #ddd;
80
- -moz-user-select: none;
81
- -khtml-user-select: none;
82
- -webkit-user-select: none;
83
- -ms-user-select: none;
84
- user-select: none;
85
- background: #eee;
86
- }
87
-
88
- .panel .title:hover{
89
- background: #ddd;
90
- }
91
-
92
- .panel .content{
93
- border-bottom: 1px solid #ddd;
94
- padding: 5px;
95
- }
96
-
97
- .panel label{
98
- display: block;
99
- margin-top: 10px;
100
- margin-bottom: 5px;
101
- }
102
-
103
- .panel textarea{
104
- display: block;
105
- width: 100%;
106
- max-width: 100%;
107
- height: 100px;
108
- padding: 0px;
109
- border: 1px solid #ddd
110
- }
111
-
112
- .panel input[type=button],
113
- .panel input[type=range],
114
- .panel button{
115
- width: 100%;
116
- max-width: 100%;
117
- display: block;
118
- }
119
-
120
73
  ul, ol{
121
74
  list-style-position: inside;
122
75
  white-space: nowrap;
123
76
  margin: 0px;
124
77
  padding-left: 0px;
125
- max-width: 100%;
126
78
  overflow: auto;
127
79
  }
@@ -1,4 +1,4 @@
1
- $(document).on('click', '.panel .title', function(){
1
+ $(document).on('click', '.card-header', function(){
2
2
  $(this).siblings().toggle();
3
3
  });
4
4
 
data/views/index.erb CHANGED
@@ -4,15 +4,18 @@
4
4
  <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
5
5
  <title>Rubrowser</title>
6
6
  <link media='all' rel='stylesheet'>
7
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
7
8
  <style><%= file('css/application.css') %></style>
8
9
  </head>
9
10
  <body>
10
11
  <div class='dependency_graph'>
11
12
  <svg></svg>
12
13
  </div>
14
+ <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
15
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
16
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
13
17
  <script src='https://unpkg.com/lodash@4.17.4/lodash.min.js' type='text/javascript'></script>
14
18
  <script src='https://unpkg.com/d3@4.13.0/build/d3.min.js' type='text/javascript'></script>
15
- <script src='https://unpkg.com/jquery@3.3.1/dist/jquery.min.js' type='text/javascript'></script>
16
19
  <script type='text/javascript'>
17
20
  var data = <%= data %>
18
21
  </script>
data/views/toolbox.erb CHANGED
@@ -1,36 +1,60 @@
1
1
  <div class="toolbox">
2
- <div class="panel">
3
- <div class="title"> Node Details </div>
4
- <div class="content" id="information_panel">
2
+ <div class="card mt-2">
3
+ <div class="card-header">Node Details</div>
4
+ <div class="card-body" id="information_panel">
5
5
  Please click on any node.
6
6
  </div>
7
7
  </div>
8
- <div class="panel">
9
- <div class="title"> Search </div>
10
- <div class="content">
11
- <label>Namespace</label>
12
- <textarea id="highlight_by_namespace"></textarea>
13
- <label><input type="checkbox" id="highlight_modules"/> Modules</label>
14
- <label><input type="checkbox" id="highlight_classes"/> Classes</label>
8
+ <div class="card mt-2">
9
+ <div class="card-header">Search</div>
10
+ <div class="card-body">
11
+ <label class="form-label">Namespace</label>
12
+ <textarea id="highlight_by_namespace" class="form-control" rows="5"></textarea>
13
+ </div>
14
+ <div class="card-body">
15
+ <div class="form-check">
16
+ <input type="checkbox" class="form-check-input" id="highlight_modules"/>
17
+ <label class="form-check-label">Modules</label>
18
+ </div>
19
+ <div class="form-check">
20
+ <input type="checkbox" class="form-check-input" id="highlight_classes"/>
21
+ <label class="form-check-label">Classes</label>
22
+ </div>
15
23
  </div>
16
24
  </div>
17
- <div class="panel">
18
- <div class="title"> Ignore </div>
19
- <div class="content">
25
+ <div class="card mt-2">
26
+ <div class="card-header">Ignore</div>
27
+ <div class="card-body">
20
28
  <label>Namespace</label>
21
- <textarea id="ignore_by_namespace"></textarea>
22
- <label><input type="checkbox" id="ignore_modules"/> Modules</label>
23
- <label><input type="checkbox" id="ignore_classes"/> Classes</label>
29
+ <textarea id="ignore_by_namespace" class="form-control" rows="5"></textarea>
30
+ </div>
31
+ <div class="card-body">
32
+ <div class="form-check">
33
+ <input type="checkbox" class="form-check-input" id="ignore_modules"/>
34
+ <label class="form-check-label">Modules</label>
35
+ </div>
36
+ <div class="form-check">
37
+ <input type="checkbox" class="form-check-input" id="ignore_classes"/>
38
+ <label class="form-check-label">Classes</label>
39
+ </div>
24
40
  </div>
25
41
  </div>
26
- <div class="panel">
27
- <div class="title"> Display </div>
28
- <div class="content">
29
- <input type="button" id="pause_simulation" value="Pause animation"/>
30
- <label>Force Collide</label>
31
- <input id="force_collide" type="range" value="80" min="0" max="500"/>
32
- <label><input type="checkbox" id="hide_namespaces"/> Hide namespaces</label>
33
- <label><input type="checkbox" id="hide_relations"/> Hide relations</label>
42
+ <div class="card mt-2">
43
+ <div class="card-header">Display</div>
44
+ <div class="card-body">
45
+ <input type="button" id="pause_simulation" class="btn btn-secondary btn-block" value="Pause animation"/>
46
+ </div>
47
+ <div class="card-body">
48
+ <label class="form-label">Force Collide</label>
49
+ <input id="force_collide" class="form-control" type="range" value="80" min="0" max="500"/>
50
+ <div class="form-check">
51
+ <input type="checkbox" class="form-check-input" id="hide_namespaces"/>
52
+ <label class="form-check-label">Hide namespaces</label>
53
+ </div>
54
+ <div class="form-check">
55
+ <input type="checkbox" class="form-check-input" id="hide_relations"/>
56
+ <label class="form-check-label">Hide relations</label>
57
+ </div>
34
58
  </div>
35
59
  </div>
36
60
  </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.2.0
4
+ version: 2.3.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-01 00:00:00.000000000 Z
11
+ date: 2018-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.6.10
162
+ rubygems_version: 2.7.3
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: A ruby interactive dependency graph visualizer