snuffle 0.10.1 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/snuffle/formatters/templates/index.html.haml +28 -8
- data/lib/snuffle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359a8cd686aa1220c2bc0851a36a70d656de0967
|
4
|
+
data.tar.gz: ac1f3a0a66b222abaec770b75e5257183f818a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f0c03e89a26fd323079a29ecfb6878735702f239e81b2df6f7db51822613b9f1590e4e7e5e96c6c97a5929ed01b5150bbf23333f562d897a042f25c626622f7
|
7
|
+
data.tar.gz: 0b5884a20d62760a6d595108e23d17fc0282d04eba3fc5fff7b711985190554ea65e9f8fa2f28821b6975986b0c668d152c6bf9b1e00492acd49d1d1b7479a73
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Snuffle
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/snuffle.svg)](http://badge.fury.io/rb/snuffle)
|
4
|
+
|
3
5
|
Snuffle analyzes source code to identify "data clumps", clusters of attributes
|
4
6
|
that are often used together. It uses this analysis to propose objects that
|
5
7
|
may be extracted from a given class. It also looks for objects that are hinted
|
@@ -4,6 +4,9 @@
|
|
4
4
|
%title
|
5
5
|
Snuffle
|
6
6
|
%link{href: "http://cdn.datatables.net/1.10.0/css/jquery.dataTables.css", rel: "stylesheet"}
|
7
|
+
%script{language: "javascript", src: "http://code.jquery.com/jquery-1.11.0.min.js", type: "text/javascript"}
|
8
|
+
%script{language: "javascript", src: "http://code.jquery.com/jquery-migrate-1.2.1.min.js", type: "text/javascript"}
|
9
|
+
%script{language: "javascript", src: "http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js", type: "text/javascript"}
|
7
10
|
|
8
11
|
:css
|
9
12
|
#{Rouge::Theme.find('thankful_eyes').render(scope: '.highlight')}
|
@@ -12,6 +15,10 @@
|
|
12
15
|
div.column { float: left; width: 45%; }
|
13
16
|
div.file_listing { padding: .1em; border-radius: 5px; background: #000; width: 100%; border: 1px solid #000;}
|
14
17
|
div.file_meta { padding: 1em; border-radius: 5px; background: #440013; width: 98%; border: .5em solid #000;}
|
18
|
+
div.dataTables_filter { margin-bottom: 2em !important; }
|
19
|
+
div.dataTables_filter label { color: #fff; }
|
20
|
+
div.dataTables_paginate { display: none !important; }
|
21
|
+
div.dataTables_info { display: none !important; }
|
15
22
|
h1 { color:#fff; font-size: 1.25em; margin-top: .25em; }
|
16
23
|
h2 { color:#fff; font-size: .75em; margin-top: -1em; }
|
17
24
|
h3 { color:#fff; font-size: 1.1em;margin-top: 1em; }
|
@@ -22,17 +29,21 @@
|
|
22
29
|
pre.lineno { margin-top: -1.4em !important;}
|
23
30
|
span.highlighted { padding-left: 1em; display: inline-block; position: absolute; left: 0px; padding-right: 90%}
|
24
31
|
table { width: 100%; box-shadow: 0 5px 0 rgba(0,0,0,.8); border-spacing: 0; border: 5px solid #000; border-radius: 5px; border-collapse: collapse; min-width: 50%; }
|
25
|
-
td { text-align: left; padding: .5em; padding-left: 1.25em !important;}
|
26
|
-
tfoot { background: #000; border-top: 10px solid #000; font-family: courier; margin-top: 4em; font-size: .75em; }
|
27
32
|
th { background: #000; text-align: left; padding: .5em; }
|
28
|
-
|
29
|
-
|
33
|
+
td { text-align: left; padding: .5em; padding-left: 1.25em !important;}
|
34
|
+
td.center { text-align: center; }
|
35
|
+
td.sorting_1 { background: none !important; padding-left: 1.25em !important; }
|
36
|
+
th.sorting_asc, th.sorting_desc { text-transform: uppercase !important; font-size: .8em !important; background-image: none !important; background: rgba(64, 41, 41, .5) !important;}
|
37
|
+
th.sorting { background-position: left !important; border-right: 1px solid #222; text-transform: uppercase !important; font-size: .8em !important}
|
30
38
|
tr.faint td { opacity: 0.5; font-style: italic; }
|
31
39
|
tr.header { background-color: #222; }
|
32
|
-
tr.header th:first-child { border-radius:
|
33
|
-
tr.header th:last-child { border-radius: 0
|
34
|
-
tr.header th:only-child { border-radius:
|
40
|
+
tr.header th:first-child { border-radius: 6px 0 0 0; }
|
41
|
+
tr.header th:last-child { border-radius: 0 6px 0 0; }
|
42
|
+
tr.header th:only-child { border-radius: 6px 6px 0 0; }
|
43
|
+
tr.header { background-color: #222; }
|
44
|
+
tr.even { background: rgba(128, 128, 128, 0.5) !important;}
|
35
45
|
tr.odd { background: rgba(128, 128, 128, 0.25) !important}
|
46
|
+
tr.even:hover, tr.odd:hover { background: rgba(128, 128, 128, 0.75) !important;}
|
36
47
|
.center { text-align: center; }
|
37
48
|
.clear { clear: both; }
|
38
49
|
.highlighted { background: rgba(170, 161, 57, .6); border-radius: 100px; }
|
@@ -81,7 +92,7 @@
|
|
81
92
|
Latent Objects
|
82
93
|
%tbody
|
83
94
|
- summaries.each_with_index do |summary, i|
|
84
|
-
%tr{class: "#{i % 2 == 1 ? 'odd' : 'even'} #{summary.has_results? ? '
|
95
|
+
%tr{class: "#{i % 2 == 1 ? 'odd' : 'even'} #{summary.has_results? ? '' : 'faint'}"}
|
85
96
|
%td
|
86
97
|
- if summary.has_results?
|
87
98
|
%a{href: "source/#{summary.class_filename}.htm"}
|
@@ -111,3 +122,12 @@
|
|
111
122
|
by
|
112
123
|
%a{href: "https://gitlab.com/coraline/snuffle", target: "_new"}
|
113
124
|
Snuffle
|
125
|
+
|
126
|
+
:javascript
|
127
|
+
$(document).ready(function(){
|
128
|
+
$('.output-table').dataTable({
|
129
|
+
bLengthChange: false,
|
130
|
+
iDisplayLength: 25000,
|
131
|
+
"order": [[2, "desc"]]
|
132
|
+
});
|
133
|
+
});
|
data/lib/snuffle/version.rb
CHANGED