vanity 1.5.0 → 1.5.1

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/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.5.1 (2010-12-20)
2
+
3
+ Fixes some minor bugs in RoR when including the Dashboard (netguru)
4
+
5
+
1
6
  == 1.5.0 (2010-10-23)
2
7
 
3
8
  Note: MongoDB URI scheme changed from mongo: to mongodb: to be consistent with
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org/"
1
+ source :rubygems
2
2
  gemspec
3
3
 
4
4
  group :development do
@@ -154,8 +154,8 @@ module Vanity
154
154
  end
155
155
 
156
156
  def vanity_html_safe(text)
157
- if text.respond_to?(:html_safe!)
158
- text.html_safe!
157
+ if text.respond_to?(:html_safe)
158
+ text.html_safe
159
159
  else
160
160
  text
161
161
  end
@@ -1,5 +1,5 @@
1
1
  <h3><%=vanity_h experiment.name %> <span class="type">(<%= experiment.class.friendly_name %>)</span></h3>
2
2
  <%= experiment.description.to_s.split(/\n\s*\n/).map { |para| vanity_html_safe(%{<p class="description">#{vanity_h para}</p>}) }.join %>
3
- <%= render Vanity.template(experiment.type), :experiment=>experiment %>
3
+ <%= render :file => Vanity.template("_" + experiment.type), :locals => {:experiment => experiment} %>
4
4
  <p class="meta">Started <%= experiment.created_at.strftime("%a, %b %d") %>
5
5
  <%= " | Completed #{experiment.completed_at.strftime("%a, %b %d")}" unless experiment.active? %></p>
@@ -1,7 +1,7 @@
1
1
  <ul class="experiments">
2
2
  <% experiments.sort_by { |id, experiment| experiment.created_at }.reverse.each do |id, experiment| %>
3
3
  <li class="experiment <%= experiment.type %>" id="experiment_<%=vanity_h id.to_s %>">
4
- <%= render Vanity.template("experiment"), :id=>id, :experiment=>experiment %>
4
+ <%= render :file => Vanity.template("_experiment"), :locals => { :id => id, :experiment => experiment } %>
5
5
  </li>
6
6
  <% end %>
7
7
  </ul>
@@ -2,7 +2,6 @@
2
2
  <% metrics.sort_by { |id, metric| metric.name }.each do |id, metric| %>
3
3
  <li class="metric" id="metric_<%= id %>">
4
4
  <%= render :file=>Vanity.template("_metric"), :locals=>{:id=>id, :metric=>metric} %>
5
- <%= render :file=>Vanity.template("_metric"), :locals=>{:id=>id, :metric=>metric} %>
6
5
  </li>
7
6
  <% end %>
8
7
  </ul>
@@ -1,5 +1,5 @@
1
1
  module Vanity
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
 
4
4
  module Version
5
5
  version = VERSION.to_s.split(".").map { |i| i.to_i }
@@ -3029,3 +3029,28 @@ Completed in 7ms (View: 1 | 200 OK [http://:? ]
3029
3029
  Processing MainController#index (for at 2010-10-23 17:57:55) [GET]
3030
3030
  Parameters: {" "=>nil}
3031
3031
  Completed in 5ms (View: 1 | 200 OK [http://:? ]
3032
+
3033
+
3034
+ Processing MainController#index (for at 2010-12-20 16:44:54) [GET]
3035
+ Parameters: {" "=>nil}
3036
+ Completed in 180ms (View: 0 | 200 OK [http://:? ]
3037
+
3038
+
3039
+ Processing MainController#index (for at 2010-12-20 16:48:42) [GET]
3040
+ Parameters: {" "=>nil}
3041
+ Completed in 3ms (View: 1 | 200 OK [http://:? ]
3042
+
3043
+
3044
+ Processing MainController#index (for at 2010-12-20 16:49:26) [GET]
3045
+ Parameters: {" "=>nil}
3046
+ Completed in 3ms (View: 1 | 200 OK [http://:? ]
3047
+
3048
+
3049
+ Processing MainController#index (for at 2010-12-20 16:51:06) [GET]
3050
+ Parameters: {" "=>nil}
3051
+ Completed in 5ms (View: 1 | 200 OK [http://:? ]
3052
+
3053
+
3054
+ Processing MainController#index (for at 2010-12-20 16:51:45) [GET]
3055
+ Parameters: {" "=>nil}
3056
+ Completed in 6ms (View: 1 | 200 OK [http://:? ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanity
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 0
10
- version: 1.5.0
9
+ - 1
10
+ version: 1.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Assaf Arkin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-23 00:00:00 -07:00
18
+ date: 2010-12-20 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -133,7 +133,7 @@ licenses: []
133
133
  post_install_message: To get started run vanity --help
134
134
  rdoc_options:
135
135
  - --title
136
- - Vanity 1.5.0
136
+ - Vanity 1.5.1
137
137
  - --main
138
138
  - README.rdoc
139
139
  - --webcvs