File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ This tool is inspired by a number of projects [rubrowser](http://www.emadelsaid.
21
21
22
22
The pretty ` d3 ` visualisations are directly copied from ` objc-dependency-visualiser ` .
23
23
24
- A huge shout out to the poeple behind these projects.
24
+ A huge shout out to the people behind these projects.
25
25
26
26
## Usage
27
27
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ def generate_html_file(deps, file)
39
39
json_connections = JSON . pretty_generate ( connections )
40
40
# File.write(file, json_nodes + json_connections)
41
41
42
- template = File . read ( 'views/index.html.template' )
42
+ template_file = resolve_file_path ( 'views/index.html.template' )
43
+ template = File . read ( template_file )
43
44
contents = template % { dependency_links : json_connections }
44
45
File . write ( file , contents )
45
46
end
@@ -51,4 +52,8 @@ def create_node(name)
51
52
node . attributes [ :shape ] = 'box3d'
52
53
node
53
54
end
55
+
56
+ def resolve_file_path ( path )
57
+ File . expand_path ( "../../../#{ path } " , __FILE__ )
58
+ end
54
59
end
You can’t perform that action at this time.
0 commit comments