metry 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/TODO +8 -0
- data/lib/metry.rb +1 -1
- data/lib/metry/psycho.rb +1 -1
- data/lib/metry/rack/tracking.rb +1 -1
- data/lib/metry/storage.rb +5 -1
- data/test/test_storage.rb +6 -0
- metadata +1 -1
data/History.txt
CHANGED
data/TODO
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
+
Figure out why Psycho events are not being ignored in production
|
2
|
+
Allow goals to have N paths
|
3
|
+
Limit visitors on dashboard to 10 most recent
|
4
|
+
Add full listing of visitors
|
5
|
+
Show more details about visitors
|
6
|
+
Add referrer to event display on visitor pages
|
7
|
+
Add display of last 10 events to dashboard
|
1
8
|
Show goal conversion for each experiment
|
9
|
+
Allow manually viewing a particular alternatively
|
2
10
|
|
3
11
|
Switch to submodules for vendor'd libs
|
4
12
|
|
data/lib/metry.rb
CHANGED
data/lib/metry/psycho.rb
CHANGED
data/lib/metry/rack/tracking.rb
CHANGED
data/lib/metry/storage.rb
CHANGED
@@ -94,7 +94,11 @@ module Metry
|
|
94
94
|
elsif id = selector['_id']
|
95
95
|
case id
|
96
96
|
when String
|
97
|
-
|
97
|
+
begin
|
98
|
+
selector['_id'] = ObjectID.from_string(id)
|
99
|
+
rescue RuntimeError => e
|
100
|
+
raise unless e.message =~ /illegal objectid/i
|
101
|
+
end
|
98
102
|
end
|
99
103
|
end
|
100
104
|
selector
|
data/test/test_storage.rb
CHANGED
@@ -15,5 +15,11 @@ class TestTokyo < Test::Unit::TestCase
|
|
15
15
|
v = @storage.new_visitor
|
16
16
|
assert_equal v, @storage.visitor(v['_id'].to_s)
|
17
17
|
end
|
18
|
+
|
19
|
+
should "handle bad object ids" do
|
20
|
+
assert_nothing_raised do
|
21
|
+
assert_nil @storage.visitor('1')
|
22
|
+
end
|
23
|
+
end
|
18
24
|
end
|
19
25
|
end
|