vanity 0.2.2 → 0.3.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.
@@ -0,0 +1,3 @@
1
+ experiment "Age and Zipcode" do
2
+ description "Testing new registration form that asks for age and zipcode."
3
+ end
@@ -1,4 +1,4 @@
1
1
  experiment "Null/ABC" do
2
- description "Testing A, B, C alternatives against current feature (0)"
3
- alternatives 0, :a, :b, :c
2
+ description "Testing three alternatives"
3
+ alternatives nil, :red, :green, :blue
4
4
  end
data/test/test_helper.rb CHANGED
@@ -14,7 +14,6 @@ class MiniTest::Unit::TestCase
14
14
  def nuke_playground
15
15
  Vanity.playground.redis.flushdb
16
16
  new_playground
17
- self.identity = nil
18
17
  end
19
18
 
20
19
  # Call this if you need a new playground, e.g. to re-define the same experiment,
@@ -23,10 +22,9 @@ class MiniTest::Unit::TestCase
23
22
  Vanity.instance_variable_set :@playground, Vanity::Playground.new
24
23
  end
25
24
 
26
- attr_accessor :identity # pass identity to/from experiment/test case
27
-
28
25
  def teardown
29
26
  nuke_playground
27
+ Vanity.context = nil
30
28
  end
31
29
  end
32
30
 
data/vanity.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "vanity"
3
- spec.version = "0.2.2"
3
+ spec.version = "0.3.0"
4
4
  spec.author = "Assaf Arkin"
5
5
  spec.email = "assaf@labnotes.org"
6
- spec.homepage = "http://github.com/assaf/vanity"
6
+ spec.homepage = "http://assaf.github.com/vanity"
7
7
  spec.summary = "Experience Driven Development framework for Rails"
8
- spec.description = ""
9
- #spec.post_install_message = "To get started run vanity --help"
8
+ spec.description = "Mirror, mirror on the wall ..."
9
+ spec.post_install_message = "To get started run vanity --help"
10
10
 
11
- spec.files = Dir["{bin,lib,rails,test}/**/*", "CHANGELOG", "README.rdoc", "vanity.gemspec"]
11
+ spec.files = Dir["{bin,lib,rails,test}/**/*", "CHANGELOG", "MIT-LICENSE", "README.rdoc", "vanity.gemspec"]
12
12
  spec.executable = "vanity"
13
13
 
14
14
  spec.has_rdoc = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Assaf Arkin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-12 00:00:00 -08:00
12
+ date: 2009-11-13 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0.1"
24
24
  version:
25
- description: ""
25
+ description: Mirror, mirror on the wall ...
26
26
  email: assaf@labnotes.org
27
27
  executables:
28
28
  - vanity
@@ -38,28 +38,34 @@ files:
38
38
  - lib/vanity/experiment/ab_test.rb
39
39
  - lib/vanity/experiment/base.rb
40
40
  - lib/vanity/playground.rb
41
+ - lib/vanity/rails/console.rb
41
42
  - lib/vanity/rails/helpers.rb
42
43
  - lib/vanity/rails/testing.rb
43
44
  - lib/vanity/rails.rb
44
- - lib/vanity/report.erb
45
+ - lib/vanity/templates/_ab_test.erb
46
+ - lib/vanity/templates/_experiments.erb
47
+ - lib/vanity/templates/_report.erb
48
+ - lib/vanity/templates/_vanity.css
45
49
  - lib/vanity.rb
46
50
  - test/ab_test_test.rb
47
51
  - test/experiment_test.rb
52
+ - test/experiments/age_and_zipcode.rb
48
53
  - test/experiments/null_abc.rb
49
54
  - test/playground_test.rb
50
55
  - test/rails_test.rb
51
56
  - test/test_helper.rb
52
57
  - CHANGELOG
58
+ - MIT-LICENSE
53
59
  - README.rdoc
54
60
  - vanity.gemspec
55
61
  has_rdoc: true
56
- homepage: http://github.com/assaf/vanity
62
+ homepage: http://assaf.github.com/vanity
57
63
  licenses: []
58
64
 
59
- post_install_message:
65
+ post_install_message: To get started run vanity --help
60
66
  rdoc_options:
61
67
  - --title
62
- - Vanity 0.2.2
68
+ - Vanity 0.3.0
63
69
  - --main
64
70
  - README.rdoc
65
71
  - --webcvs
@@ -1,22 +0,0 @@
1
- <style>
2
- ol.experiments { list-style: none; margin: 1em 0; padding: 0; border-bottom: 1px solid #ccc }
3
- ol.experiments .hide { display: none }
4
- li.experiment h3 { margin: 0 }
5
- li.experiment blockquote { margin: 0 }
6
- li.experiment .meta { color: #444 }
7
- li.experiment .data dt { float: left }
8
- li.experiment .green { color: green }
9
- li.experiment .red { color: red }
10
- li.experiment .data dd { margin: 0 0 .3em 6em }
11
- </style>
12
- <h2>Experiments</h2>
13
- <ol class="experiments">
14
- <% experiments.sort_by(&:created_at).each do |exp| %>
15
- <li class="experiment" id="experiment_<%= CGI.escape exp.id.to_s %>">
16
- <h3><%= CGI.escape_html exp.name %></h3>
17
- <blockquote><%= CGI.escape_html exp.description.to_s %></blockquote>
18
- <%= exp.conclusion.join(" ") %>
19
- <p class="meta"><%= exp.humanize %> started <%= exp.created_at.strftime("%a, %b %-d %Y") %></p>
20
- </li>
21
- <% end %>
22
- </ol>