test_track_rails_client 5.0.0 → 6.0.0

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: '0667053993d876c5694d5211c1204251ec5cf56436d037e83e9baa32896753d1'
4
- data.tar.gz: 1fac803ce98a9182211fb91e19c8ab6ec08d7c151ff7937427daf24e6239fac2
3
+ metadata.gz: 435ccd01e25d78c6a1198b18fcc898a34b76ba6949173672f65f801408dbe789
4
+ data.tar.gz: 87de3abad19abb1a7691959c09597ac2c4133b310c2d70397bbda07526b51649
5
5
  SHA512:
6
- metadata.gz: 57f91d6a7003b43b3cac7adfee73ad7fb904730a220af65f552e5875331fc7622d2cc68ba9d654d0843e511aa74741d5ceec5d93823f45378c058e26558087f6
7
- data.tar.gz: c23ebed46c96893e5f487b409d9550587c4355c3536d5cc9cc51d2ea229c08fa1dbf1d7b35e9979e2728e214367682367c73700ecef38cebf912cff5e3f0e434
6
+ metadata.gz: 727ec20876be5bfc7447ea1bf04db3cc1ad88460bf9fac72a7656f41b2481689b3c936713e2196bd5ec807aabbd9084c313470abb94687eab94f43bbe862b6fe
7
+ data.tar.gz: 1fbd5e5b9afea8b03b2ae1664098bbfcc528af98d3c785cfbc4a66c80a4535f6debe35e1a3d1f7b2815f3943fc7a63f1c574c9749fedd4fac6c03e7f37720548
data/README.md CHANGED
@@ -390,6 +390,27 @@ def notify(message)
390
390
 
391
391
  ## Upgrading
392
392
 
393
+ ### From 5.0 to 6.0
394
+
395
+ * The offline split registry (used in tests, etc) will now favor variants with
396
+ weights of 100% when generating deterministic weightings. If no variant has a
397
+ weight of 100%, then it will fall back on the previous behavior of favoring
398
+ the variant with the lowest alphanumerically-sorted name (conventionally
399
+ "false" and "control").
400
+
401
+ This means that, when deciding a split via a migration (and/or updating a new
402
+ variant to 100% in the schema), tests that assumed the previous variant may
403
+ begin to fail and will require additional code cleanup (or must be explicitly
404
+ stubbed to use the previous variant).
405
+
406
+ ### From 4.0 to 5.0
407
+
408
+ * The direct dependency on the `delayed_job_active_record` gem has been removed,
409
+ and background jobs now depend on the `ActiveJob` framework. When upgrading,
410
+ ensure that your application [specifies a
411
+ backend](https://guides.rubyonrails.org/active_job_basics.html#setting-the-backend)
412
+ (e.g. `config.active_job.queue_adapter = :delayed_job`).
413
+
393
414
  ### From 3.0 to 4.0
394
415
 
395
416
  * The contract of custom analytics plugins has changed. Instead of
@@ -67,7 +67,7 @@ class TestTrack::Fake::SplitRegistry
67
67
 
68
68
  def split_registry_with_deterministic_weights
69
69
  splits = split_hash.each_with_object({}) do |(split_name, weighting_registry), result|
70
- default_variant = weighting_registry.keys.min
70
+ default_variant = weighting_registry.invert[100] || weighting_registry.keys.min
71
71
 
72
72
  adjusted_weights = { default_variant => 100 }
73
73
  weighting_registry.except(default_variant).each_key do |variant|
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "5.0.0" # rubocop:disable Style/MutableConstant
2
+ VERSION = "6.0.0" # rubocop:disable Style/MutableConstant
3
3
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 2.6'
22
+
21
23
  s.add_development_dependency "json", "~> 1.8"
22
24
  s.add_development_dependency "pry"
23
25
  s.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_track_rails_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan O'Neill
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-05-18 00:00:00.000000000 Z
16
+ date: 2023-01-12 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activejob
@@ -106,9 +106,6 @@ dependencies:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: 2.0.0
109
- - - "<="
110
- - !ruby/object:Gem::Version
111
- version: 3.0.0
112
109
  type: :runtime
113
110
  prerelease: false
114
111
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,9 +113,6 @@ dependencies:
116
113
  - - ">="
117
114
  - !ruby/object:Gem::Version
118
115
  version: 2.0.0
119
- - - "<="
120
- - !ruby/object:Gem::Version
121
- version: 3.0.0
122
116
  - !ruby/object:Gem::Dependency
123
117
  name: railties
124
118
  requirement: !ruby/object:Gem::Requirement
@@ -460,7 +454,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
460
454
  - !ruby/object:Gem::Version
461
455
  version: '0'
462
456
  requirements: []
463
- rubygems_version: 3.2.17
457
+ rubygems_version: 3.3.7
464
458
  signing_key:
465
459
  specification_version: 4
466
460
  summary: Rails client for TestTrack