mountain-goat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/init.rb
CHANGED
@@ -3,5 +3,13 @@ class MountainGoatController < ActionController::Base
|
|
3
3
|
|
4
4
|
self.prepend_view_path File.join([File.dirname(__FILE__), '../../views/mountain_goat/'])
|
5
5
|
|
6
|
+
def fetch
|
7
|
+
Dir.open(File.join([File.dirname(__FILE__), '../../public/'])).each do |file|
|
8
|
+
render :file => File.join([File.dirname(__FILE__), '../../public/', file]) and return if file == params[:file].gsub('_','.')
|
9
|
+
end
|
10
|
+
|
11
|
+
render :file => "#{Rails.root}/public/404.html", :status => :not_found
|
12
|
+
end
|
13
|
+
|
6
14
|
layout 'mountain_goat'
|
7
15
|
end
|
@@ -14,7 +14,8 @@ module MetricTracking
|
|
14
14
|
map.resources :mountain_goat_converts, :has_many => :mountain_goat_metrics
|
15
15
|
map.resources :mountain_goat_metrics, :has_many => :mountain_goat_metric_variants
|
16
16
|
map.resources :mountain_goat_upgrade_orders
|
17
|
-
map.fresh_metrics '/fresh-metrics', :controller => :mountain_goat_metrics, :action => :fresh_metrics
|
17
|
+
map.fresh_metrics '/fresh-metrics', :controller => :mountain_goat_metrics, :action => :fresh_metrics
|
18
|
+
map.connect '/mg/public/:file', :controller => :mountain_goat, :action => :fetch
|
18
19
|
end
|
19
20
|
|
20
21
|
module Controller
|
@@ -14,6 +14,8 @@
|
|
14
14
|
<!--<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />-->
|
15
15
|
<meta name="viewport" content="width=device-width" />
|
16
16
|
|
17
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
|
18
|
+
<script src="/mg/public/jquery_flot_js" type="text/javascript"></script>
|
17
19
|
|
18
20
|
</head>
|
19
21
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mountain-goat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Geoffrey Hayes
|