mountain-goat 0.0.20 → 0.1.0
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/README.md +25 -0
- data/lib/mountain-goat/metric_tracking.rb +0 -1
- data/lib/mountain-goat/version.rb +1 -1
- metadata +4 -8
- data/lib/mountain-goat/views/mountain_goat/layouts/.tmp_mountain_goat.html.erb.47598~ +0 -63
- data/lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp__rallies.html.erb.83814~ +0 -9
- data/lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp__rally.html.erb.62757~ +0 -9
- data/lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp_index.html.erb.1823~ +0 -22
data/README.md
CHANGED
@@ -140,6 +140,31 @@ Mountain goat will automatically break those down into three cases (:ten_percent
|
|
140
140
|
You may want to test certain items with a lower serve rate (bold new slogans). You can assign priorities to any metric variant. The change of a given metric variant being shown is
|
141
141
|
|
142
142
|
my priority / sum(all priorities for this metric)
|
143
|
+
|
144
|
+
## Technical
|
145
|
+
|
146
|
+
As mountain goat is a suite that is added into your project dynamically, the following routes and tables are added during setup:
|
147
|
+
|
148
|
+
- Tables
|
149
|
+
* ci_metas (indexes: ci_metas_cmt_data_index, ci_metas_cmt_index, ci_metas_rally_index)
|
150
|
+
* convert_meta_types
|
151
|
+
* converts
|
152
|
+
* cs_metas (indexes: cs_metas_cmt_data_index, cs_metas_cmt_index, cs_metas_rally_index)
|
153
|
+
* metric_variants
|
154
|
+
* metrics
|
155
|
+
* rallies
|
156
|
+
|
157
|
+
- Routes
|
158
|
+
* map.mg '/mg', :controller => :mountain_goat_converts, :action => :index
|
159
|
+
* map.mg_login '/mg/login', :controller => :mountain_goat, :action => :login
|
160
|
+
* map.mg_login_create '/mg/login/create', :controller => :mountain_goat, :action => :login_create
|
161
|
+
* map.resources :mountain_goat_metric_variants
|
162
|
+
* map.resources :mountain_goat_converts, :has_many => [ :mountain_goat_metrics, :mountain_goat_rallies ]
|
163
|
+
* map.resources :mountain_goat_metrics, :has_many => :mountain_goat_metric_variants
|
164
|
+
* map.resources :mountain_goat_rallies
|
165
|
+
* map.new_rallies '/mg/rallies/new', :controller => :mountain_goat_rallies, :action => :new_rallies
|
166
|
+
* map.fresh_metrics '/fresh-metrics', :controller => :mountain_goat_metrics, :action => :fresh_metrics
|
167
|
+
* map.connect '/mg/public/:file', :controller => :mountain_goat, :action => :fetch
|
143
168
|
|
144
169
|
## TODO
|
145
170
|
- Better documentation (rdocs)
|
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: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.20
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Geoffrey Hayes
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-07-
|
19
|
+
date: 2011-07-18 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -101,7 +101,6 @@ files:
|
|
101
101
|
- lib/mountain-goat/public/raster.png
|
102
102
|
- lib/mountain-goat/switch_variant.rb
|
103
103
|
- lib/mountain-goat/version.rb
|
104
|
-
- lib/mountain-goat/views/mountain_goat/layouts/.tmp_mountain_goat.html.erb.47598~
|
105
104
|
- lib/mountain-goat/views/mountain_goat/layouts/mountain_goat.html.erb
|
106
105
|
- lib/mountain-goat/views/mountain_goat/mountain_goat/login.html.erb
|
107
106
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_converts/_convert_form.html.erb
|
@@ -120,9 +119,6 @@ files:
|
|
120
119
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/index.html.erb
|
121
120
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/new.html.erb
|
122
121
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_metrics/show.html.erb
|
123
|
-
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp__rallies.html.erb.83814~
|
124
|
-
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp__rally.html.erb.62757~
|
125
|
-
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/.tmp_index.html.erb.1823~
|
126
122
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/_rallies.html.erb
|
127
123
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/_rally.html.erb
|
128
124
|
- lib/mountain-goat/views/mountain_goat/mountain_goat_rallies/index.html.erb
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
|
3
|
-
<% is_mobile = false if local_assigns[:is_mobile].nil? %>
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
|
7
|
-
<head>
|
8
|
-
<title>Mountain Goat <% if @title %> - <%=h @title %><% end %></title>
|
9
|
-
|
10
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
11
|
-
|
12
|
-
<%# These are mobile specific settings. We are disabling zooming and fixing the width. %>
|
13
|
-
<meta content='True' name='HandheldFriendly' />
|
14
|
-
<!--<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />-->
|
15
|
-
<meta name="viewport" content="width=device-width" />
|
16
|
-
|
17
|
-
<link rel="stylesheet" href="/mg/public/mg_css" type="text/css" />
|
18
|
-
|
19
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
|
20
|
-
<script src="/mg/public/jquery_flot_js" type="text/javascript"></script>
|
21
|
-
<script src="/mg/public/mg_js" type="text/javascript"></script>
|
22
|
-
|
23
|
-
</head>
|
24
|
-
|
25
|
-
<body>
|
26
|
-
|
27
|
-
<div class="header">
|
28
|
-
<div class="head">
|
29
|
-
<a href="/mg" class="logo">
|
30
|
-
<img src="/mg/public/mg_png" />
|
31
|
-
</a>
|
32
|
-
<ul class="nav">
|
33
|
-
<li><a href="<%= mountain_goat_converts_url %>">Goals</a></li>
|
34
|
-
<li><a href="<%= mountain_goat_metrics_url %>">Metrics</a></li>
|
35
|
-
<li><a href="<%= mountain_goat_rallies_url %>">Rallies</a></li>
|
36
|
-
<li><a href="/">Exit</a></li>
|
37
|
-
</ul>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="content">
|
42
|
-
<div class="content-inner">
|
43
|
-
<% if !flash[:notice].blank? || !flash[:error].blank? %>
|
44
|
-
<div class="flash">
|
45
|
-
<% if !flash[:error].blank? %>
|
46
|
-
<div class="error"><%= flash[:error] %></div>
|
47
|
-
<% end %>
|
48
|
-
<% if !flash[:notice].blank? %>
|
49
|
-
<div class="notice"><%= flash[:notice] %></div>
|
50
|
-
<% end %>
|
51
|
-
</div>
|
52
|
-
<% end %>
|
53
|
-
<%= yield %>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="container-footer">
|
58
|
-
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
</body>
|
62
|
-
|
63
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<div id="container-main" class="mt-rallies">
|
4
|
-
<div class="mountain-goat-panel">
|
5
|
-
<h1>Rallies <% if @convert %>for <%=h @convert.name %><% else %>for all Goals<% end %></h1>
|
6
|
-
|
7
|
-
<% if @rallies.count > 0 %>
|
8
|
-
<ul>
|
9
|
-
<% @rallies.each do |rally| %>
|
10
|
-
<li><%= rally.convert.name %> at <%= rally.created_at.to_s %></li>
|
11
|
-
(
|
12
|
-
<% rally.all_metas.each do |k,v| %>
|
13
|
-
<%= k %>: <%= v %>
|
14
|
-
<% end %>
|
15
|
-
)
|
16
|
-
<% end %>
|
17
|
-
</ul>
|
18
|
-
<% else %>
|
19
|
-
<h2>No rallies for yet this goal.</h2>
|
20
|
-
<% end %>
|
21
|
-
</div>
|
22
|
-
</div>
|