preston/bittorious

View on GitHub
doc/controllers_complete.svg

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.38.0 (20140413.2041)
 -->
<!-- Title: controllers_diagram Pages: 1 -->
<svg width="694pt" height="636pt"
 viewBox="0.00 0.00 693.99 636.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(242.266 360.5)">
<title>controllers_diagram</title>
<polygon fill="none" stroke="none" points="-242.266,275.5 -242.266,-360.5 451.72,-360.5 451.72,275.5 -242.266,275.5"/>
<!-- _diagram_info -->
<g id="node1" class="node"><title>_diagram_info</title>
<text text-anchor="start" x="280.28" y="212.9" font-family="Times,serif" font-size="13.00">Controllers diagram</text>
<text text-anchor="start" x="280.28" y="225.9" font-family="Times,serif" font-size="13.00">Date: Sep 22 2016 &#45; 16:27</text>
<text text-anchor="start" x="280.28" y="238.9" font-family="Times,serif" font-size="13.00">Migration version: 1</text>
<text text-anchor="start" x="280.28" y="251.9" font-family="Times,serif" font-size="13.00">Generated by RailRoady 1.5.2</text>
<text text-anchor="start" x="280.28" y="264.9" font-family="Times,serif" font-size="13.00">http://railroady.prestonlee.com</text>
</g>
<!-- ApplicationController -->
<g id="node2" class="node"><title>ApplicationController</title>
<path fill="none" stroke="black" d="M130.534,-120C130.534,-120 297.466,-120 297.466,-120 303.466,-120 309.466,-126 309.466,-132 309.466,-132 309.466,-240 309.466,-240 309.466,-246 303.466,-252 297.466,-252 297.466,-252 130.534,-252 130.534,-252 124.534,-252 118.534,-246 118.534,-240 118.534,-240 118.534,-132 118.534,-132 118.534,-126 124.534,-120 130.534,-120"/>
<text text-anchor="middle" x="214" y="-236.8" font-family="Times,serif" font-size="14.00">ApplicationController</text>
<polyline fill="none" stroke="black" points="118.534,-230 309.466,-230 "/>
<text text-anchor="start" x="126.534" y="-214.8" font-family="Times,serif" font-size="14.00">get_remote_ip</text>
<polyline fill="none" stroke="black" points="118.534,-208 309.466,-208 "/>
<polyline fill="none" stroke="black" points="118.534,-184 309.466,-184 "/>
<text text-anchor="start" x="126.534" y="-168.8" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="126.534" y="-154.8" font-family="Times,serif" font-size="14.00">after_sign_in_path_for</text>
<text text-anchor="start" x="126.534" y="-140.8" font-family="Times,serif" font-size="14.00">allow_cors</text>
<text text-anchor="start" x="126.534" y="-126.8" font-family="Times,serif" font-size="14.00">authenticate_user_from_token!</text>
</g>
<!-- FeedsController -->
<g id="node3" class="node"><title>FeedsController</title>
<path fill="none" stroke="black" d="M-5.10352,-137C-5.10352,-137 77.1035,-137 77.1035,-137 83.1035,-137 89.1035,-143 89.1035,-149 89.1035,-149 89.1035,-313 89.1035,-313 89.1035,-319 83.1035,-325 77.1035,-325 77.1035,-325 -5.10352,-325 -5.10352,-325 -11.1035,-325 -17.1035,-319 -17.1035,-313 -17.1035,-313 -17.1035,-149 -17.1035,-149 -17.1035,-143 -11.1035,-137 -5.10352,-137"/>
<text text-anchor="middle" x="36" y="-309.8" font-family="Times,serif" font-size="14.00">FeedsController</text>
<polyline fill="none" stroke="black" points="-17.1035,-303 89.1035,-303 "/>
<text text-anchor="start" x="-9.10352" y="-287.8" font-family="Times,serif" font-size="14.00">create</text>
<text text-anchor="start" x="-9.10352" y="-273.8" font-family="Times,serif" font-size="14.00">destroy</text>
<text text-anchor="start" x="-9.10352" y="-259.8" font-family="Times,serif" font-size="14.00">index</text>
<text text-anchor="start" x="-9.10352" y="-245.8" font-family="Times,serif" font-size="14.00">show</text>
<text text-anchor="start" x="-9.10352" y="-231.8" font-family="Times,serif" font-size="14.00">update</text>
<polyline fill="none" stroke="black" points="-17.1035,-225 89.1035,-225 "/>
<polyline fill="none" stroke="black" points="-17.1035,-201 89.1035,-201 "/>
<text text-anchor="start" x="-9.10352" y="-185.8" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="-9.10352" y="-171.8" font-family="Times,serif" font-size="14.00">feed_params</text>
<text text-anchor="start" x="-9.10352" y="-157.8" font-family="Times,serif" font-size="14.00">set_abilities</text>
<text text-anchor="start" x="-9.10352" y="-143.8" font-family="Times,serif" font-size="14.00">set_feed</text>
</g>
<!-- PeersController -->
<g id="node4" class="node"><title>PeersController</title>
<path fill="none" stroke="black" d="M-55.9346,237C-55.9346,237 23.9346,237 23.9346,237 29.9346,237 35.9346,231 35.9346,225 35.9346,225 35.9346,159 35.9346,159 35.9346,153 29.9346,147 23.9346,147 23.9346,147 -55.9346,147 -55.9346,147 -61.9346,147 -67.9346,153 -67.9346,159 -67.9346,159 -67.9346,225 -67.9346,225 -67.9346,231 -61.9346,237 -55.9346,237"/>
<text text-anchor="middle" x="-16" y="162.2" font-family="Times,serif" font-size="14.00">PeersController</text>
<polyline fill="none" stroke="black" points="-67.9346,169 35.9346,169 "/>
<text text-anchor="start" x="-59.9346" y="184.2" font-family="Times,serif" font-size="14.00">index</text>
<polyline fill="none" stroke="black" points="-67.9346,191 35.9346,191 "/>
<polyline fill="none" stroke="black" points="-67.9346,215 35.9346,215 "/>
<text text-anchor="start" x="-59.9346" y="230.2" font-family="Times,serif" font-size="14.00">_layout</text>
</g>
<!-- PermissionsController -->
<g id="node5" class="node"><title>PermissionsController</title>
<path fill="none" stroke="black" d="M-225.61,33C-225.61,33 -108.39,33 -108.39,33 -102.39,33 -96.3896,27 -96.3896,21 -96.3896,21 -96.3896,-101 -96.3896,-101 -96.3896,-107 -102.39,-113 -108.39,-113 -108.39,-113 -225.61,-113 -225.61,-113 -231.61,-113 -237.61,-107 -237.61,-101 -237.61,-101 -237.61,21 -237.61,21 -237.61,27 -231.61,33 -225.61,33"/>
<text text-anchor="middle" x="-167" y="-97.8" font-family="Times,serif" font-size="14.00">PermissionsController</text>
<polyline fill="none" stroke="black" points="-237.61,-91 -96.3896,-91 "/>
<text text-anchor="start" x="-229.61" y="-75.8" font-family="Times,serif" font-size="14.00">create</text>
<text text-anchor="start" x="-229.61" y="-61.8" font-family="Times,serif" font-size="14.00">destroy</text>
<text text-anchor="start" x="-229.61" y="-47.8" font-family="Times,serif" font-size="14.00">index</text>
<text text-anchor="start" x="-229.61" y="-33.8" font-family="Times,serif" font-size="14.00">show</text>
<polyline fill="none" stroke="black" points="-237.61,-27 -96.3896,-27 "/>
<polyline fill="none" stroke="black" points="-237.61,-3 -96.3896,-3 "/>
<text text-anchor="start" x="-229.61" y="12.2" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="-229.61" y="26.2" font-family="Times,serif" font-size="14.00">permission_params</text>
</g>
<!-- RegistrationsController -->
<g id="node6" class="node"><title>RegistrationsController</title>
<path fill="none" stroke="black" d="M97.3618,237C97.3618,237 224.638,237 224.638,237 230.638,237 236.638,231 236.638,225 236.638,225 236.638,131 236.638,131 236.638,125 230.638,119 224.638,119 224.638,119 97.3618,119 97.3618,119 91.3618,119 85.3618,125 85.3618,131 85.3618,131 85.3618,225 85.3618,225 85.3618,231 91.3618,237 97.3618,237"/>
<text text-anchor="middle" x="161" y="134.2" font-family="Times,serif" font-size="14.00">RegistrationsController</text>
<polyline fill="none" stroke="black" points="85.3618,141 236.638,141 "/>
<text text-anchor="start" x="93.3618" y="156.2" font-family="Times,serif" font-size="14.00">destroy</text>
<polyline fill="none" stroke="black" points="85.3618,163 236.638,163 "/>
<polyline fill="none" stroke="black" points="85.3618,187 236.638,187 "/>
<text text-anchor="start" x="93.3618" y="202.2" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="93.3618" y="216.2" font-family="Times,serif" font-size="14.00">account_update_params</text>
<text text-anchor="start" x="93.3618" y="230.2" font-family="Times,serif" font-size="14.00">sign_up_params</text>
</g>
<!-- TorrentsController -->
<g id="node7" class="node"><title>TorrentsController</title>
<path fill="none" stroke="black" d="M97.2446,84C97.2446,84 230.755,84 230.755,84 236.755,84 242.755,78 242.755,72 242.755,72 242.755,-78 242.755,-78 242.755,-84 236.755,-90 230.755,-90 230.755,-90 97.2446,-90 97.2446,-90 91.2446,-90 85.2446,-84 85.2446,-78 85.2446,-78 85.2446,72 85.2446,72 85.2446,78 91.2446,84 97.2446,84"/>
<text text-anchor="middle" x="164" y="-74.8" font-family="Times,serif" font-size="14.00">TorrentsController</text>
<polyline fill="none" stroke="black" points="85.2446,-68 242.755,-68 "/>
<text text-anchor="start" x="93.2446" y="-52.8" font-family="Times,serif" font-size="14.00">create</text>
<text text-anchor="start" x="93.2446" y="-38.8" font-family="Times,serif" font-size="14.00">destroy</text>
<text text-anchor="start" x="93.2446" y="-24.8" font-family="Times,serif" font-size="14.00">index</text>
<text text-anchor="start" x="93.2446" y="-10.8" font-family="Times,serif" font-size="14.00">show</text>
<text text-anchor="start" x="93.2446" y="3.2" font-family="Times,serif" font-size="14.00">update</text>
<polyline fill="none" stroke="black" points="85.2446,10 242.755,10 "/>
<polyline fill="none" stroke="black" points="85.2446,34 242.755,34 "/>
<text text-anchor="start" x="93.2446" y="49.2" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="93.2446" y="63.2" font-family="Times,serif" font-size="14.00">set_params_from_torrent</text>
<text text-anchor="start" x="93.2446" y="77.2" font-family="Times,serif" font-size="14.00">torrent_params</text>
</g>
<!-- TrackerController -->
<g id="node8" class="node"><title>TrackerController</title>
<path fill="none" stroke="black" d="M-226.266,220C-226.266,220 -113.734,220 -113.734,220 -107.734,220 -101.734,214 -101.734,208 -101.734,208 -101.734,86 -101.734,86 -101.734,80 -107.734,74 -113.734,74 -113.734,74 -226.266,74 -226.266,74 -232.266,74 -238.266,80 -238.266,86 -238.266,86 -238.266,208 -238.266,208 -238.266,214 -232.266,220 -226.266,220"/>
<text text-anchor="middle" x="-170" y="89.2" font-family="Times,serif" font-size="14.00">TrackerController</text>
<polyline fill="none" stroke="black" points="-238.266,96 -101.734,96 "/>
<text text-anchor="start" x="-230.266" y="111.2" font-family="Times,serif" font-size="14.00">announce</text>
<text text-anchor="start" x="-230.266" y="125.2" font-family="Times,serif" font-size="14.00">scrape</text>
<polyline fill="none" stroke="black" points="-238.266,132 -101.734,132 "/>
<polyline fill="none" stroke="black" points="-238.266,156 -101.734,156 "/>
<text text-anchor="start" x="-230.266" y="171.2" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="-230.266" y="185.2" font-family="Times,serif" font-size="14.00">load_from_info_hash</text>
<text text-anchor="start" x="-230.266" y="199.2" font-family="Times,serif" font-size="14.00">peer_params</text>
<text text-anchor="start" x="-230.266" y="213.2" font-family="Times,serif" font-size="14.00">rsize</text>
</g>
<!-- UsersController -->
<g id="node9" class="node"><title>UsersController</title>
<path fill="none" stroke="black" d="M-140.714,-154C-140.714,-154 -59.2861,-154 -59.2861,-154 -53.2861,-154 -47.2861,-160 -47.2861,-166 -47.2861,-166 -47.2861,-344 -47.2861,-344 -47.2861,-350 -53.2861,-356 -59.2861,-356 -59.2861,-356 -140.714,-356 -140.714,-356 -146.714,-356 -152.714,-350 -152.714,-344 -152.714,-344 -152.714,-166 -152.714,-166 -152.714,-160 -146.714,-154 -140.714,-154"/>
<text text-anchor="middle" x="-100" y="-340.8" font-family="Times,serif" font-size="14.00">UsersController</text>
<polyline fill="none" stroke="black" points="-152.714,-334 -47.2861,-334 "/>
<text text-anchor="start" x="-144.714" y="-318.8" font-family="Times,serif" font-size="14.00">update</text>
<text text-anchor="start" x="-144.714" y="-304.8" font-family="Times,serif" font-size="14.00">deny</text>
<text text-anchor="start" x="-144.714" y="-290.8" font-family="Times,serif" font-size="14.00">destroy</text>
<text text-anchor="start" x="-144.714" y="-276.8" font-family="Times,serif" font-size="14.00">index</text>
<text text-anchor="start" x="-144.714" y="-262.8" font-family="Times,serif" font-size="14.00">manage</text>
<text text-anchor="start" x="-144.714" y="-248.8" font-family="Times,serif" font-size="14.00">show</text>
<text text-anchor="start" x="-144.714" y="-234.8" font-family="Times,serif" font-size="14.00">transfer</text>
<text text-anchor="start" x="-144.714" y="-220.8" font-family="Times,serif" font-size="14.00">approve</text>
<polyline fill="none" stroke="black" points="-152.714,-214 -47.2861,-214 "/>
<polyline fill="none" stroke="black" points="-152.714,-190 -47.2861,-190 "/>
<text text-anchor="start" x="-144.714" y="-174.8" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="-144.714" y="-160.8" font-family="Times,serif" font-size="14.00">user_params</text>
</g>
<!-- VolunteersController -->
<g id="node10" class="node"><title>VolunteersController</title>
<path fill="none" stroke="black" d="M284.416,169C284.416,169 393.584,169 393.584,169 399.584,169 405.584,163 405.584,157 405.584,157 405.584,91 405.584,91 405.584,85 399.584,79 393.584,79 393.584,79 284.416,79 284.416,79 278.416,79 272.416,85 272.416,91 272.416,91 272.416,157 272.416,157 272.416,163 278.416,169 284.416,169"/>
<text text-anchor="middle" x="339" y="94.2" font-family="Times,serif" font-size="14.00">VolunteersController</text>
<polyline fill="none" stroke="black" points="272.416,101 405.584,101 "/>
<text text-anchor="start" x="280.416" y="116.2" font-family="Times,serif" font-size="14.00">index</text>
<polyline fill="none" stroke="black" points="272.416,123 405.584,123 "/>
<polyline fill="none" stroke="black" points="272.416,147 405.584,147 "/>
<text text-anchor="start" x="280.416" y="162.2" font-family="Times,serif" font-size="14.00">_layout</text>
</g>
<!-- WelcomeController -->
<g id="node11" class="node"><title>WelcomeController</title>
<path fill="none" stroke="black" d="M-56.0327,118C-56.0327,118 46.0327,118 46.0327,118 52.0327,118 58.0327,112 58.0327,106 58.0327,106 58.0327,-86 58.0327,-86 58.0327,-92 52.0327,-98 46.0327,-98 46.0327,-98 -56.0327,-98 -56.0327,-98 -62.0327,-98 -68.0327,-92 -68.0327,-86 -68.0327,-86 -68.0327,106 -68.0327,106 -68.0327,112 -62.0327,118 -56.0327,118"/>
<text text-anchor="middle" x="-5" y="-82.8" font-family="Times,serif" font-size="14.00">WelcomeController</text>
<polyline fill="none" stroke="black" points="-68.0327,-76 58.0327,-76 "/>
<text text-anchor="start" x="-60.0327" y="-60.8" font-family="Times,serif" font-size="14.00">torrents</text>
<text text-anchor="start" x="-60.0327" y="-46.8" font-family="Times,serif" font-size="14.00">dashboard</text>
<text text-anchor="start" x="-60.0327" y="-32.8" font-family="Times,serif" font-size="14.00">faq</text>
<text text-anchor="start" x="-60.0327" y="-18.8" font-family="Times,serif" font-size="14.00">feeds</text>
<text text-anchor="start" x="-60.0327" y="-4.8" font-family="Times,serif" font-size="14.00">landing</text>
<text text-anchor="start" x="-60.0327" y="9.2" font-family="Times,serif" font-size="14.00">legal</text>
<text text-anchor="start" x="-60.0327" y="23.2" font-family="Times,serif" font-size="14.00">settings</text>
<text text-anchor="start" x="-60.0327" y="37.2" font-family="Times,serif" font-size="14.00">status</text>
<text text-anchor="start" x="-60.0327" y="51.2" font-family="Times,serif" font-size="14.00">concepts</text>
<polyline fill="none" stroke="black" points="-68.0327,58 58.0327,58 "/>
<polyline fill="none" stroke="black" points="-68.0327,82 58.0327,82 "/>
<text text-anchor="start" x="-60.0327" y="97.2" font-family="Times,serif" font-size="14.00">_layout</text>
<text text-anchor="start" x="-60.0327" y="111.2" font-family="Times,serif" font-size="14.00">set_selected_feed</text>
</g>
</g>
</svg>