vignette 0.0.3 → 0.0.4pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vignette/version.rb +1 -1
- data/lib/vignette.rb +4 -2
- metadata +5 -5
data/lib/vignette/version.rb
CHANGED
data/lib/vignette.rb
CHANGED
@@ -13,13 +13,13 @@ module Vignette
|
|
13
13
|
# Defaults
|
14
14
|
Vignette.store = :session
|
15
15
|
Vignette.logging = false
|
16
|
-
|
16
|
+
|
17
17
|
# We're going to include ArrayExtensions
|
18
18
|
ActionController::Base.send(:include, ObjectExtensions::ActionControllerExtensions)
|
19
19
|
Array.send(:include, ObjectExtensions::ArrayExtensions)
|
20
20
|
|
21
21
|
# Member Functions
|
22
|
-
|
22
|
+
|
23
23
|
def self.init(opts={})
|
24
24
|
opts = {
|
25
25
|
store: nil,
|
@@ -41,6 +41,8 @@ module Vignette
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.tests
|
44
|
+
return {} if Vignette.request.nil? # Can't return tests outside of yield
|
45
|
+
|
44
46
|
Vignette.request[:vignette] ||= {}
|
45
47
|
Vignette.request[:vignette][:tests] ||= {}
|
46
48
|
Vignette.request[:vignette][:tests]
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vignette
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4pre1
|
5
|
+
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Geoff Hayes
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simple, effective A/b testing made easy.
|
15
15
|
email:
|
@@ -44,9 +44,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
45
|
none: false
|
46
46
|
requirements:
|
47
|
-
- - ! '
|
47
|
+
- - ! '>'
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 1.3.1
|
50
50
|
requirements: []
|
51
51
|
rubyforge_project:
|
52
52
|
rubygems_version: 1.8.25
|