metry 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.5 / 2009-08-09
2
+
3
+ * Added missed files.
4
+
1
5
  === 2.0.4 / 2009-08-09
2
6
 
3
7
  * Improved goal display.
data/Manifest.txt CHANGED
@@ -19,6 +19,8 @@ lib/metry.rb
19
19
  lib/metry/experiment.rb
20
20
  lib/metry/psycho.rb
21
21
  lib/metry/psycho/dashboard.erb
22
+ lib/metry/psycho/edit_goal.erb
23
+ lib/metry/psycho/goal.erb
22
24
  lib/metry/psycho/layout.erb
23
25
  lib/metry/psycho/new_goal.erb
24
26
  lib/metry/psycho/visitor.erb
data/lib/metry.rb CHANGED
@@ -6,7 +6,7 @@ require 'metry/experiment'
6
6
  require 'metry/psycho'
7
7
 
8
8
  module Metry
9
- VERSION = '2.0.4'
9
+ VERSION = '2.0.5'
10
10
 
11
11
  def self.init(dbname)
12
12
  @storage = Storage.new(dbname)
@@ -0,0 +1,9 @@
1
+ <h1>Edit Goal</h1>
2
+
3
+ <form action="<%= url "/goals/#{@goal.id}" %>" method="post">
4
+ <fieldset>
5
+ <p><label for="name">Name</label> <input type="text" name="name" value="<%= @goal.name %>"/></p>
6
+ <p><label for="path">Path</label> <input type="text" name="path" value="<%= @goal.path %>"/></p>
7
+ <p><input type="submit" value="Save" /></p>
8
+ </fieldset>
9
+ </form>
@@ -0,0 +1,9 @@
1
+ <h1>Goal <%= @goal.name %></h1>
2
+
3
+ <p>Path: <%=h @goal.path %></p>
4
+ <p><a href="<%= url "/goals/#{@goal.id}/edit" %>">Edit</a></p>
5
+ <ol>
6
+ <% @goal.visitors.each do |visitor| %>
7
+ <li><a href="<%= url "/visitors/#{visitor.id}" %>">Visitor <%= visitor.id %></a></li>
8
+ <% end %>
9
+ </ol>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metry
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Talbott
@@ -56,6 +56,8 @@ files:
56
56
  - lib/metry/experiment.rb
57
57
  - lib/metry/psycho.rb
58
58
  - lib/metry/psycho/dashboard.erb
59
+ - lib/metry/psycho/edit_goal.erb
60
+ - lib/metry/psycho/goal.erb
59
61
  - lib/metry/psycho/layout.erb
60
62
  - lib/metry/psycho/new_goal.erb
61
63
  - lib/metry/psycho/visitor.erb