test_track_rails_client 4.0.0.alpha22 → 4.0.0.alpha23
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa99a6380a919dfd903ab199a396011ceaad5aa
|
4
|
+
data.tar.gz: ab34fad82d0c67e28152cd96c103d9b5f2dc184c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 213cb4c0bd274d577a745b4ae9da6e57ffa843ee81939bebba5b4fd3a982e3a2a6aeeb23a9b69ada611adc5d141aa842cb95022f061257b431f766a2607bb751
|
7
|
+
data.tar.gz: f6f355680560349991d3b8fb50b59b778f5cd42d17223f345a1f9e4959d528f32d26749feba2bf3a1bba78a29b2fc14df0dc238d38cd46eef0588695663e4519
|
@@ -33,7 +33,8 @@ class TestTrack::Fake::SplitRegistry
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def _schema_registry
|
36
|
-
file =
|
36
|
+
file = File.exist?(schema_yml_path) &&
|
37
|
+
YAML.load_file(schema_yml_path)
|
37
38
|
file && file['splits'].each_with_object(ActiveSupport::HashWithIndifferentAccess.new) do |split, h|
|
38
39
|
h[split['name']] = split['weights']
|
39
40
|
end
|
@@ -52,13 +53,14 @@ class TestTrack::Fake::SplitRegistry
|
|
52
53
|
end
|
53
54
|
|
54
55
|
def _legacy_test_track_schema_yml
|
55
|
-
|
56
|
+
File.exist?(legacy_test_track_schema_yml_path) &&
|
57
|
+
YAML.load_file(legacy_test_track_schema_yml_path).with_indifferent_access
|
56
58
|
rescue
|
57
59
|
nil
|
58
60
|
end
|
59
61
|
|
60
62
|
def legacy_test_track_schema_yml_path
|
61
|
-
ENV["TEST_TRACK_SCHEMA_FILE_PATH"] || Rails.root.join('db', 'test_track_schema.yml')
|
63
|
+
ENV["TEST_TRACK_SCHEMA_FILE_PATH"] || Rails.root.join('db', 'test_track_schema.yml').to_s
|
62
64
|
end
|
63
65
|
|
64
66
|
def splits_with_deterministic_weights
|
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: 4.0.0.
|
4
|
+
version: 4.0.0.alpha23
|
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: 2019-05-
|
16
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: airbrake
|