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: d9d6c6b6ddaae6219f54c78c303ce60a463a4371
4
- data.tar.gz: 0447c05ee3b39d093f768bc338391d2f3c2f66ff
3
+ metadata.gz: b1a24efded4681fd02438a92030a745da9e8e412
4
+ data.tar.gz: 2133f9e77957a69ed4bef270c209d540bc390da9
5
5
  SHA512:
6
- metadata.gz: 86b21758c3f6da1fe93436d76860f089daede0c15728a91d7d93becfcc00a56cd6fc870904fb9c2807c0a4572ba26203ec542b31d07e46b73868923a7694961a
7
- data.tar.gz: 0bf798597c026c38ab0c475a16627388f96f4c184651ab1d7cc4bb6048445c8bc2bfc3f299e588ea5a43fdafe4287a2f27dbd0a9ff734dc8cb730c6b3eb1e82e
6
+ metadata.gz: 70da08e88f77fb7c2080271a9855e9d70072b2accbaab5416e8084d6c83180924311b56fb2d223febfc0725a90feb8077f104692456efc9fe967c60f6fc531f0
7
+ data.tar.gz: a9e9e3daabdc845055a6dec4249e8833097f1c2fcc636fe55ad77d0d5567185fccb1fc1b618749b044c2a80fabbd5e19b16c115c2aae12de964b58383871ac9f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
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
- analytics_identify_events << {
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
- analytics_track_events << {
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
- @__analytics_identify_events ||= []
51
- @__analytics_identify_events
54
+ flash['__analytics_identify_events'] ||= []
55
+ flash['__analytics_identify_events']
52
56
  end
53
57
 
54
58
  def analytics_track_events
55
- @__analytics_track_events ||= []
56
- @__analytics_track_events
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 ruby lib
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.5"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter