code_poetry-html 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +5 -0
- data/Rakefile +14 -0
- data/assets/javascripts/application.js +31 -0
- data/assets/javascripts/libraries/jquery-2.0.3.min.js +6 -0
- data/assets/javascripts/plugins/highlight.pack.js +1 -0
- data/assets/javascripts/plugins/jquery.dataTables.min.js +155 -0
- data/assets/javascripts/plugins/jquery.fancybox.pack.js +46 -0
- data/assets/javascripts/plugins/jquery.timeago.js +193 -0
- data/assets/stylesheets/application.css +3 -0
- data/assets/stylesheets/plugins/docco.css +132 -0
- data/assets/stylesheets/plugins/jquery.fancybox.css +274 -0
- data/assets/stylesheets/pure-min.css +11 -0
- data/assets/stylesheets/screen.css.scss +128 -0
- data/code_poetry-html.gemspec +24 -0
- data/lib/code_poetry-html/version.rb +7 -0
- data/lib/code_poetry-html.rb +87 -0
- data/public/application.css +529 -0
- data/public/application.js +436 -0
- data/public/blank.gif +0 -0
- data/public/fancybox_loading.gif +0 -0
- data/public/fancybox_loading@2x.gif +0 -0
- data/public/fancybox_overlay.png +0 -0
- data/public/fancybox_sprite.png +0 -0
- data/public/fancybox_sprite@2x.png +0 -0
- data/public/magnify.png +0 -0
- data/views/file_list.erb +30 -0
- data/views/layout.erb +33 -0
- data/views/source_file.erb +16 -0
- metadata +132 -0
data/public/blank.gif
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/magnify.png
ADDED
Binary file
|
data/views/file_list.erb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="file_list_container">
|
2
|
+
<table class="file_list pure-table">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th>File</th>
|
6
|
+
<th>Lines</th>
|
7
|
+
<th>Lines of Code</th>
|
8
|
+
<th>Churns</th>
|
9
|
+
<th>Complexity</th>
|
10
|
+
<th>Complexity/Method</th>
|
11
|
+
</tr>
|
12
|
+
</thead>
|
13
|
+
<tbody>
|
14
|
+
<% stats.each do |stat| %>
|
15
|
+
<tr>
|
16
|
+
<td><%= link_to_source_file(stat) %></td>
|
17
|
+
<td><%= stat.lines.count %></td>
|
18
|
+
<td><%= stat.lines_of_code %></td>
|
19
|
+
<td><%= stat.churns %></td>
|
20
|
+
<td class="<%= class_complexity_css_class(stat.complexity) %>">
|
21
|
+
<%= stat.complexity %>
|
22
|
+
</td>
|
23
|
+
<td class="<%= method_complexity_css_class(stat.complexity_per_method) %>">
|
24
|
+
<%= stat.complexity_per_method %>
|
25
|
+
</td>
|
26
|
+
</tr>
|
27
|
+
<% end %>
|
28
|
+
</tbody>
|
29
|
+
</table>
|
30
|
+
</div>
|
data/views/layout.erb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<title>Code Metrics for <%= CodePoetry.project_name %></title>
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
|
7
|
+
<script src='assets/application.js' type='text/javascript'></script>
|
8
|
+
<link href='assets/application.css' rel='stylesheet' type='text/css'>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<div id="wrapper">
|
13
|
+
<div class="header">
|
14
|
+
<h1>Code Metrics for <%= CodePoetry.project_name %></h1>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div id="content">
|
18
|
+
<%= formatted_file_list(stats) %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div id="footer">
|
22
|
+
Generated <%= timeago(Time.now) %> by <a href="http://github.com/coding-chimp/code_poetry">code_poetry</a> v<%= CodePoetry::VERSION %>
|
23
|
+
and code_poetry-html v<%= CodePoetry::Formatter::HTMLFormatter::VERSION %>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="source_files">
|
27
|
+
<% stats.each do |stat| %>
|
28
|
+
<%= formatted_source_file(stat) %>
|
29
|
+
<% end %>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="source_table" id="<%= id(stat) %>">
|
2
|
+
<div class="header">
|
3
|
+
<h2 class="subhead"><%= stat.name %></h2>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<pre>
|
7
|
+
<p><%= stat.file %></p>
|
8
|
+
<ol>
|
9
|
+
<% stat.lines.each do |number, line| %>
|
10
|
+
<li class="<%= line_status(stat, number) %>" data-linenumber="<%= number %>">
|
11
|
+
<code class="ruby"><%= CGI.escapeHTML(line.chomp) %></code>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
</ol>
|
15
|
+
</pre>
|
16
|
+
</div>
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: code_poetry-html
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bastian Bartmann
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sprockets
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sass
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Default HTML formatter for CodePoetry
|
70
|
+
email:
|
71
|
+
- babartmann@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- assets/javascripts/application.js
|
82
|
+
- assets/javascripts/libraries/jquery-2.0.3.min.js
|
83
|
+
- assets/javascripts/plugins/highlight.pack.js
|
84
|
+
- assets/javascripts/plugins/jquery.dataTables.min.js
|
85
|
+
- assets/javascripts/plugins/jquery.fancybox.pack.js
|
86
|
+
- assets/javascripts/plugins/jquery.timeago.js
|
87
|
+
- assets/stylesheets/application.css
|
88
|
+
- assets/stylesheets/plugins/docco.css
|
89
|
+
- assets/stylesheets/plugins/jquery.fancybox.css
|
90
|
+
- assets/stylesheets/pure-min.css
|
91
|
+
- assets/stylesheets/screen.css.scss
|
92
|
+
- code_poetry-html.gemspec
|
93
|
+
- lib/code_poetry-html.rb
|
94
|
+
- lib/code_poetry-html/version.rb
|
95
|
+
- public/application.css
|
96
|
+
- public/application.js
|
97
|
+
- public/blank.gif
|
98
|
+
- public/fancybox_loading.gif
|
99
|
+
- public/fancybox_loading@2x.gif
|
100
|
+
- public/fancybox_overlay.png
|
101
|
+
- public/fancybox_sprite.png
|
102
|
+
- public/fancybox_sprite@2x.png
|
103
|
+
- public/magnify.png
|
104
|
+
- views/file_list.erb
|
105
|
+
- views/layout.erb
|
106
|
+
- views/source_file.erb
|
107
|
+
homepage: https://github.com/coding-chimp/code_poetry-html
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata: {}
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.0.3
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: Default HTML formatter for CodePoetry
|
131
|
+
test_files: []
|
132
|
+
has_rdoc:
|