minimum_viable_product 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a24efded4681fd02438a92030a745da9e8e412
|
4
|
+
data.tar.gz: 2133f9e77957a69ed4bef270c209d540bc390da9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70da08e88f77fb7c2080271a9855e9d70072b2accbaab5416e8084d6c83180924311b56fb2d223febfc0725a90feb8077f104692456efc9fe967c60f6fc531f0
|
7
|
+
data.tar.gz: a9e9e3daabdc845055a6dec4249e8833097f1c2fcc636fe55ad77d0d5567185fccb1fc1b618749b044c2a80fabbd5e19b16c115c2aae12de964b58383871ac9f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.6
|
@@ -14,16 +14,19 @@ module MinimumViableProduct
|
|
14
14
|
def identify!(id, properties={})
|
15
15
|
return if session[INVISIBLE_SESSION_COOKIE].to_b == true
|
16
16
|
|
17
|
-
|
17
|
+
events = flash['__analytics_identify_events'] ||= []
|
18
|
+
events << {
|
18
19
|
'id': id,
|
19
20
|
'properties': properties
|
20
21
|
}
|
22
|
+
flash['__analytics_identify_events'] = events
|
21
23
|
end
|
22
24
|
|
23
25
|
def track!(event, properties={})
|
24
26
|
return if session[INVISIBLE_SESSION_COOKIE].to_b == true
|
25
27
|
|
26
|
-
|
28
|
+
events = flash['__analytics_track_events'] ||= []
|
29
|
+
events << {
|
27
30
|
'name': event,
|
28
31
|
'properties': properties.reverse_merge({
|
29
32
|
iteration: MVP::Iteration.version,
|
@@ -31,6 +34,7 @@ module MinimumViableProduct
|
|
31
34
|
url: request.fullpath
|
32
35
|
})
|
33
36
|
}
|
37
|
+
flash['__analytics_track_events'] = events
|
34
38
|
end
|
35
39
|
|
36
40
|
def slack!(message, properties=nil)
|
@@ -47,13 +51,13 @@ module MinimumViableProduct
|
|
47
51
|
end
|
48
52
|
|
49
53
|
def analytics_identify_events
|
50
|
-
|
51
|
-
|
54
|
+
flash['__analytics_identify_events'] ||= []
|
55
|
+
flash['__analytics_identify_events']
|
52
56
|
end
|
53
57
|
|
54
58
|
def analytics_track_events
|
55
|
-
|
56
|
-
|
59
|
+
flash['__analytics_track_events'] ||= []
|
60
|
+
flash['__analytics_track_events']
|
57
61
|
end
|
58
62
|
|
59
63
|
private
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: minimum_viable_product 0.7.
|
5
|
+
# stub: minimum_viable_product 0.7.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "minimum_viable_product"
|
9
|
-
s.version = "0.7.
|
9
|
+
s.version = "0.7.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|