trailguide 0.3.4 → 0.3.5

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
  SHA256:
3
- metadata.gz: 908aa4aad8cd6a7db959531d36cbb45f8f9709a2ce7ce40c94b21049d2b488bc
4
- data.tar.gz: ce4178d1fc125ba4ccb1dc8319e4ce4256e1fb793a42b4e1a4921e42c6b72ae4
3
+ metadata.gz: 4fa50e5eb6f5104bd3191ede839bfc35ca31c6b45c4f87dec92d4fe1b52f0bfa
4
+ data.tar.gz: d35bfae1d46815c27fc05bdcce8d405cbdccf053c2e827f4aca9c504f14aec69
5
5
  SHA512:
6
- metadata.gz: 9c0380169c1db2c4878663b77a2548eb9cd69b91957d380edcdb7a9b2f931e8ea865f38b4d944bd672d0dbfe2d30d52904bd4a93aa2a501bbf1d0c2c0b44da8f
7
- data.tar.gz: 82a1a7c073a47d077b0eeb8bba4ccfb4945e8f8177f4251543c733ee623dc9cea790d9bc1bbb076873e16c6ac07d63abc8faede40bad259873d8116d8074ac22
6
+ metadata.gz: 5b8fd83c4334a54b7ff6afe5533906acf3075e90c2fa3b1121292374afbe1c30b161a2883c94351c6a9776790bdce25a6300352dc7ac4d8ca8f37b3f79de60f2
7
+ data.tar.gz: d7bcc56cf6a02a12ec3db7bafa7160299767610406d4ed1036442be6d3671cbeff74f71bf40d59b570c4d623b28c07fcd73cbbd606a660402b4edc93b3977314
@@ -141,8 +141,8 @@ module TrailGuide
141
141
  end
142
142
 
143
143
  def override_variant
144
- return unless context.respond_to?(:params, true)
145
- params = context.send(:params)
144
+ return unless context.respond_to?(:trailguide_params, true) || context.respond_to?(:params, true)
145
+ params = context.try(:trailguide_params) || context.try(:params)
146
146
  return unless params.key?(TrailGuide.configuration.override_parameter)
147
147
  experiment_params = params[TrailGuide.configuration.override_parameter]
148
148
  return unless experiment_params.key?(experiment.experiment_name.to_s)
@@ -2,7 +2,7 @@ module TrailGuide
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 4
5
+ PATCH = 5
6
6
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec