ab_panel 0.4.3 → 0.4.4

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
- SHA1:
3
- metadata.gz: bee6c6ac0cd8663789e6b383d94d6568859039cb
4
- data.tar.gz: e66beec839a63deb8cc957db3eb078056f75b3ef
2
+ SHA256:
3
+ metadata.gz: 37ee0a4c2ef876a4211289f684ba7db3d620d34bfdd2a54081bbc92c0b94240b
4
+ data.tar.gz: 47f71b412b1021c6b3f7034e209f4c80a490950b1ce1b92e68070b1d12ae84d8
5
5
  SHA512:
6
- metadata.gz: 8a7cf3617e32c4a810e2615902635f1910477ff0a0bc012d68e163ef6b1ad01fd816d12f52555b3bcdc66758caf0008a7beeda0b5bc6c9d9a388efa6a64655e2
7
- data.tar.gz: 8a3533b7462579acf8d499affe19c46a70e718007df1cb918a5df03ec25d0ac815dcbe74ca8d9d064dbcfd9abe641dc51ef479a8c53c136e8af45cfffd46f803
6
+ metadata.gz: becb21058455ab271a01771df8643c0002141d0f8836ae77503f516aaaeee2f187cc7d6965c6207cee572ef54413a186e230c6bc64fb72f1f89f0c7a0051fde6
7
+ data.tar.gz: cbb3437fd90843d080251acf50302be43abd2f12403129442f5d1c439789bdcf8061cd9861327b1b9c5b3df1dc0d91120fd0f9e885c4723a8b24877444d5cd31
data/ab_panel.gemspec CHANGED
@@ -6,8 +6,7 @@ require 'ab_panel/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ab_panel"
8
8
  spec.version = AbPanel::VERSION
9
- spec.authors = ["Wouter de Vos", "Mark Mulder", "Peter de Ruijter"]
10
- spec.email = ["wouter@springest.com", "markmulder@gmail.com", "hello@thisiswho.im"]
9
+ spec.authors = ["Dennis Paagman", "Eugene Pimenov", "Jordy van Gelder", "Mark Mulder", "Peter de Ruijter", "Tim Flapper", "Wouter de Vos"]
11
10
  spec.description = %q{Run A/B test experiments on your Rails 4+ site using Mixpanel as a backend.}
12
11
  spec.summary = %q{Run A/B test experiments on your Rails 4+ site using Mixpanel as a backend.}
13
12
  spec.homepage = "https://github.com/Springest/ab_panel"
data/lib/ab_panel.rb CHANGED
@@ -84,6 +84,17 @@ module AbPanel
84
84
  funnels.add(funnel) if funnel.present?
85
85
  end
86
86
 
87
+ def environment
88
+ props = { distinct_id: self.env["distinct_id"] }
89
+ props.merge!(self.properties) if self.properties
90
+
91
+ self.funnels.each { |f| props["funnel_#{f}"] = true }
92
+
93
+ self.experiments.each { |exp| props[exp] = self.conditions.send(exp).condition }
94
+
95
+ props
96
+ end
97
+
87
98
  private # ----------------------------------------------------------------------------
88
99
 
89
100
  def assign_conditions!(already_assigned=nil)
@@ -1,14 +1,8 @@
1
1
  module AbPanel
2
2
  class Javascript
3
3
  def self.environment
4
- props = { distinct_id: AbPanel.env["distinct_id"] }
5
- props.merge!(AbPanel.properties) if AbPanel.properties
6
-
7
- AbPanel.funnels.each { |f| props["funnel_#{f}"] = true }
8
-
9
- AbPanel.experiments.each { |exp| props[exp] = AbPanel.conditions.send(exp).condition }
10
-
11
- props.to_json
4
+ AbPanel.environment.to_json
12
5
  end
6
+
13
7
  end
14
8
  end
@@ -1,3 +1,3 @@
1
1
  module AbPanel
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,16 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ab_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
- - Wouter de Vos
7
+ - Dennis Paagman
8
+ - Eugene Pimenov
9
+ - Jordy van Gelder
8
10
  - Mark Mulder
9
11
  - Peter de Ruijter
10
- autorequire:
12
+ - Tim Flapper
13
+ - Wouter de Vos
14
+ autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2019-03-18 00:00:00.000000000 Z
17
+ date: 2021-07-01 00:00:00.000000000 Z
14
18
  dependencies:
15
19
  - !ruby/object:Gem::Dependency
16
20
  name: bundler
@@ -112,9 +116,6 @@ dependencies:
112
116
  version: '0'
113
117
  description: Run A/B test experiments on your Rails 4+ site using Mixpanel as a backend.
114
118
  email:
115
- - wouter@springest.com
116
- - markmulder@gmail.com
117
- - hello@thisiswho.im
118
119
  executables: []
119
120
  extensions: []
120
121
  extra_rdoc_files: []
@@ -212,7 +213,7 @@ homepage: https://github.com/Springest/ab_panel
212
213
  licenses:
213
214
  - MIT
214
215
  metadata: {}
215
- post_install_message:
216
+ post_install_message:
216
217
  rdoc_options: []
217
218
  require_paths:
218
219
  - lib
@@ -227,9 +228,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
228
  - !ruby/object:Gem::Version
228
229
  version: '0'
229
230
  requirements: []
230
- rubyforge_project:
231
- rubygems_version: 2.6.14.3
232
- signing_key:
231
+ rubygems_version: 3.0.3
232
+ signing_key:
233
233
  specification_version: 4
234
234
  summary: Run A/B test experiments on your Rails 4+ site using Mixpanel as a backend.
235
235
  test_files: