Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (28 sloc) 0.721 kB
086e7e5 @andersjanmyr initial
andersjanmyr authored
1 $LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
5ac4787 @andersjanmyr Tried to add view to load path
andersjanmyr authored
2 $LOAD_PATH.unshift File.dirname(__FILE__) + '/views'
086e7e5 @andersjanmyr initial
andersjanmyr authored
3
3e50494 @andreashallberg Using sprockets to bundle our javascripts, so we get rid of the async…
andreashallberg authored
4 require 'sprockets'
fa4b22a @andersjanmyr renamed files to match gem
andersjanmyr authored
5 require 'neo-viz'
2d66ae5 @andreashallberg mapping all dirs under public to assets. Moved coffeescript from view…
andreashallberg authored
6 require 'find'
086e7e5 @andersjanmyr initial
andersjanmyr authored
7
3e50494 @andreashallberg Using sprockets to bundle our javascripts, so we get rid of the async…
andreashallberg authored
8 map '/' do
9 run Neo::Viz::App
10 end
11
12 map '/assets' do
13 environment = Sprockets::Environment.new
2d66ae5 @andreashallberg mapping all dirs under public to assets. Moved coffeescript from view…
andreashallberg authored
14
15 # map all dirs under /public to /assets
16 Find.find(File.join(Neo::Viz.install_path, "public")) do |path|
17 environment.append_path(path) if FileTest.directory?(path)
18 end
ff87291 @andreashallberg separating sprockets bundle into own js file solves problem with runn…
andreashallberg authored
19
20 environment.instance_eval do
21 @context_class.instance_eval do
22 define_method :root_url do
8447d05 @andreashallberg refactoring
andreashallberg authored
23 '.'
ff87291 @andreashallberg separating sprockets bundle into own js file solves problem with runn…
andreashallberg authored
24 end
25 end
26 end
27
3e50494 @andreashallberg Using sprockets to bundle our javascripts, so we get rid of the async…
andreashallberg authored
28 run environment
2ab7b41 @andreashallberg setting up static Jasmine test page
andreashallberg authored
29 end
30
31 map '/specs' do
32 environment = Sprockets::Environment.new
33 environment.append_path 'spec/coffeescripts'
34 run environment
3e50494 @andreashallberg Using sprockets to bundle our javascripts, so we get rid of the async…
andreashallberg authored
35 end
Something went wrong with that request. Please try again.