gameplan 0.0.1 → 0.0.2
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.
- data/.gitignore +2 -1
- data/lib/gameplan/frontend/public/js/Curry-1.0.1.js +29 -0
- data/lib/gameplan/frontend/public/js/app.js +112 -0
- data/lib/gameplan/frontend/public/js/dracula_algorithms.js +616 -0
- data/lib/gameplan/frontend/public/js/dracula_graffle.js +127 -0
- data/lib/gameplan/frontend/public/js/dracula_graph.js +667 -0
- data/lib/gameplan/frontend/public/js/jquery.js +4 -0
- data/lib/gameplan/frontend/public/js/raphael-min.js +10 -0
- data/lib/gameplan/frontend/public/js/raphael.js +10 -0
- data/lib/gameplan/frontend/public/js/seedrandom.js +266 -0
- data/lib/gameplan/frontend/public/js/underscore.js +999 -0
- data/lib/gameplan/frontend/views/app.erb +20 -0
- data/lib/gameplan/frontend/views/layout/application.erb +8 -4
- data/lib/gameplan/frontend/views/state.erb +1 -1
- metadata +14 -4
@@ -3,4 +3,24 @@
|
|
3
3
|
<% @app.states.values.each do |state| %>
|
4
4
|
<li><a href="app-<%= @app.name %>-state-<%= state.name %>.html"><%= state.pretty_name %></a> - <%= state.description %></li>
|
5
5
|
<% end %>
|
6
|
+
<div id="canvas" style='height: 1000, width: 1000'></div>
|
7
|
+
<script>
|
8
|
+
var g = new Graph();
|
9
|
+
|
10
|
+
<% @app.states.values.each do |v| %>
|
11
|
+
<% v.endpoints.each do |e| %>
|
12
|
+
g.addEdge("<%=v.name%>", "<%=e.state%>")
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
|
17
|
+
var layouter = new Graph.Layout.Spring(g);
|
18
|
+
layouter.layout();
|
19
|
+
|
20
|
+
var renderer = new Graph.Renderer.Raphael('canvas', g, 1000, 1000);
|
21
|
+
renderer.draw();
|
22
|
+
</script>
|
23
|
+
Looks ugly? Hit <button id="redraw" onclick="redraw();">redraw</button>!<br>
|
24
|
+
</html>
|
25
|
+
|
6
26
|
</ul>
|
@@ -51,10 +51,6 @@
|
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
|
54
|
-
<div class="container">
|
55
|
-
<%=@page%>
|
56
|
-
</div> <!-- /container -->
|
57
|
-
|
58
54
|
<!-- Le javascript
|
59
55
|
================================================== -->
|
60
56
|
<!-- Placed at the end of the document so the pages load faster -->
|
@@ -72,5 +68,13 @@
|
|
72
68
|
<script src="js/bootstrap-carousel.js"></script>
|
73
69
|
<script src="js/bootstrap-typeahead.js"></script>
|
74
70
|
|
71
|
+
<script src="js/raphael.js"></script>
|
72
|
+
<script src="js/dracula_graffle.js"></script>
|
73
|
+
<script src="js/dracula_graph.js"></script>
|
74
|
+
<script src="js/dracula_algorithms.js"></script>
|
75
|
+
<div class="container">
|
76
|
+
<%=@page%>
|
77
|
+
</div> <!-- /container -->
|
78
|
+
|
75
79
|
</body>
|
76
80
|
</html>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h1>Application <a href="app-<%=@app.name%>.html"><%=@app.pretty_name%></a></h1>
|
2
2
|
<h2><%= @state.pretty_name %> (<%= @state.name %>)</h2>
|
3
|
-
|
3
|
+
<%= @state.description_list.map { |d| "<p>#{d}</p>" }.join %>
|
4
4
|
<ul>
|
5
5
|
<% @state.endpoints.each do |endpoint| %>
|
6
6
|
<li>Goto <a href="app-<%=@app.name%>-state-<%= endpoint.state %>.html"><%= endpoint.state %></a> <%= endpoint.description %></li>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameplan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|
16
|
-
requirement: &
|
16
|
+
requirement: &70143351072200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70143351072200
|
25
25
|
description: Gotta plan your game dog.
|
26
26
|
email:
|
27
27
|
- joshbuddy@gmail.com
|
@@ -50,8 +50,18 @@ files:
|
|
50
50
|
- lib/gameplan/frontend/public/css/bootstrap.min.css
|
51
51
|
- lib/gameplan/frontend/public/img/glyphicons-halflings-white.png
|
52
52
|
- lib/gameplan/frontend/public/img/glyphicons-halflings.png
|
53
|
+
- lib/gameplan/frontend/public/js/Curry-1.0.1.js
|
54
|
+
- lib/gameplan/frontend/public/js/app.js
|
53
55
|
- lib/gameplan/frontend/public/js/bootstrap.js
|
54
56
|
- lib/gameplan/frontend/public/js/bootstrap.min.js
|
57
|
+
- lib/gameplan/frontend/public/js/dracula_algorithms.js
|
58
|
+
- lib/gameplan/frontend/public/js/dracula_graffle.js
|
59
|
+
- lib/gameplan/frontend/public/js/dracula_graph.js
|
60
|
+
- lib/gameplan/frontend/public/js/jquery.js
|
61
|
+
- lib/gameplan/frontend/public/js/raphael-min.js
|
62
|
+
- lib/gameplan/frontend/public/js/raphael.js
|
63
|
+
- lib/gameplan/frontend/public/js/seedrandom.js
|
64
|
+
- lib/gameplan/frontend/public/js/underscore.js
|
55
65
|
- lib/gameplan/frontend/views/app.erb
|
56
66
|
- lib/gameplan/frontend/views/home.erb
|
57
67
|
- lib/gameplan/frontend/views/layout/application.erb
|