test_track_rails_client 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7155e55ee2ec7d9ced95f7de4faa03feec95bfe1fb9830dfb2a012b7cd11b34b
4
- data.tar.gz: 1a1c8a21189a7b4d238044e84f054b750d844332d054228f052298c7c214bc39
3
+ metadata.gz: a4d5895595350677642d26ace2a1bae5949b0b5a7cf1d07071f097bedc51f13e
4
+ data.tar.gz: b445d7da4c79cafcd9643e105ba5592ed235b3e6983a7a0d55a3f36974961202
5
5
  SHA512:
6
- metadata.gz: 5ea097e9c30b36f6404549bc28f63450a107bbdb3ae453c08b06145f663acae6ecd150b67b93b97cca081f89bb67c47e7cd5bd83a90cc60a9eed73dcc9f40c2e
7
- data.tar.gz: 4ef7dbe0e61497b894314e0e95cc5e85ac4941bfd7cba278e823d3862800dae86a393d2f4dbfea20230c88722f83db8c218174c16d763f58085f458844a5d792
6
+ metadata.gz: 1391242eac53c1aa8f8d8c7d8e4f7e2078f20b08ef91aa598e8581b6f27a14d8eacb923e1a313608c5436771c648b3a5bf1149db2a89c9085b4e08081f66c90d
7
+ data.tar.gz: a3a600c71c9417ead13fefc11949a6d56129b265c3e182b2fa97aae0790f48b2bab24e9c60669371293a64dd53ffe8932fd3ec2c0aab5c3103502d8138bbf085
@@ -37,16 +37,26 @@ class TestTrack::Fake::SplitRegistry
37
37
  end
38
38
 
39
39
  def _schema_registry
40
- file = File.exist?(schema_yml_path) &&
41
- YAML.load_file(schema_yml_path)
40
+ file =
41
+ if File.exist?(schema_json_path)
42
+ JSON.parse(File.read(schema_json_path))
43
+ elsif File.exist?(schema_yml_path)
44
+ YAML.load_file(schema_yml_path)
45
+ end
46
+
42
47
  file && file['splits'].each_with_object(ActiveSupport::HashWithIndifferentAccess.new) do |split, h|
43
48
  h[split['name']] = split['weights']
44
49
  end
45
50
  end
46
51
 
52
+ def schema_json_path
53
+ base = ENV['TEST_TRACK_SCHEMA_ROOT'] || Rails.root
54
+ File.join(base, 'testtrack/schema.json')
55
+ end
56
+
47
57
  def schema_yml_path
48
58
  base = ENV['TEST_TRACK_SCHEMA_ROOT'] || Rails.root
49
- File.join(base, 'testtrack', 'schema.yml')
59
+ File.join(base, 'testtrack/schema.yml')
50
60
  end
51
61
 
52
62
  def legacy_test_track_schema_yml
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "8.3.0".freeze
2
+ VERSION = "8.4.0".freeze
3
3
  end
data/lib/testtrack_cli.rb CHANGED
@@ -9,7 +9,7 @@ class TesttrackCli
9
9
  end
10
10
 
11
11
  def project_initialized?
12
- File.exist?(File.join('testtrack', 'schema.yml'))
12
+ File.exist?('testtrack/schema.json') || File.exist?('testtrack/schema.yml')
13
13
  end
14
14
 
15
15
  def call(*args)
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: 8.3.0
4
+ version: 8.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan O'Neill
@@ -10,9 +10,10 @@ authors:
10
10
  - John Mileham
11
11
  - Alan Norton
12
12
  - Sam Moore
13
+ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 1980-01-02 00:00:00.000000000 Z
16
+ date: 2026-01-21 00:00:00.000000000 Z
16
17
  dependencies:
17
18
  - !ruby/object:Gem::Dependency
18
19
  name: activejob
@@ -441,6 +442,7 @@ homepage: https://github.com/Betterment
441
442
  licenses:
442
443
  - MIT
443
444
  metadata: {}
445
+ post_install_message:
444
446
  rdoc_options: []
445
447
  require_paths:
446
448
  - lib
@@ -455,7 +457,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
455
457
  - !ruby/object:Gem::Version
456
458
  version: '0'
457
459
  requirements: []
458
- rubygems_version: 3.6.8
460
+ rubygems_version: 3.4.10
461
+ signing_key:
459
462
  specification_version: 4
460
463
  summary: Rails client for TestTrack
461
464
  test_files: []