test_track_rails_client 4.0.0.alpha17 → 4.0.0.alpha18

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: 46907fdf0df60fb05138a94757074c54fdcc7324
4
- data.tar.gz: 7241eecbaf9dce098707a84f7b9229386c687a2c
3
+ metadata.gz: 6575966b336fbeb1e629c106c617da678c5c5748
4
+ data.tar.gz: 5094cc3db273abac8c895cfea170ebea07ecb09a
5
5
  SHA512:
6
- metadata.gz: 1c1dd00f5f3971019d721a3d88338edd42042a789f26d1348c68d51fc3397d0a43d36691386b51803155a96be78b76910ed94fbc14b4d4589dd0a708e55487d8
7
- data.tar.gz: 17d7376c576bcfea746eecb912ac723b87fa3dd59eca69b0d9478baad4455e868fc2b22b290a943b85be433328c4b22d6657c829bbb8948d1d88f34085aaa1fd
6
+ metadata.gz: b4234462a6cdd16f2045a5f20c36be3b754aadbd6f60aa34e7eba6866320822630cfa48c518b0ed704dda24ad705ba02af6f709a4665f461a4ad906cba3ac48d
7
+ data.tar.gz: 8473ab0407dabbcb0f8dc8a766f3923607f9362c00737f5d9def6408325079be8b512ec31d143fa9495182a41de2fcdee457e6ea378cea3dccc2c76be9b765b3
@@ -17,6 +17,7 @@ class TestTrack::Visitor
17
17
 
18
18
  def vary(split_name, opts = {})
19
19
  opts = opts.dup
20
+ split_name = maybe_prefix(split_name)
20
21
  split_name = split_name.to_s
21
22
  context = require_option!(opts, :context)
22
23
  raise "unknown opts: #{opts.keys.to_sentence}" if opts.present?
@@ -29,7 +30,7 @@ class TestTrack::Visitor
29
30
 
30
31
  def ab(split_name, opts = {}) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
31
32
  opts = opts.dup
32
- split_name = split_name.to_s
33
+ split_name = maybe_prefix(split_name)
33
34
  true_variant = opts.delete(:true_variant)
34
35
  context = require_option!(opts, :context)
35
36
  raise "unknown opts: #{opts.keys.to_sentence}" if opts.present?
@@ -148,4 +149,11 @@ class TestTrack::Visitor
148
149
  def generate_assignment_for(split_name)
149
150
  assignment_registry[split_name] = TestTrack::Assignment.new(visitor: self, split_name: split_name)
150
151
  end
152
+
153
+ def maybe_prefix(split_name)
154
+ app_name = URI.parse(TestTrack.private_url).user
155
+ split_name = split_name.to_s
156
+ prefixed = "#{app_name}.#{split_name}"
157
+ split_registry.key?(prefixed) ? prefixed : split_name
158
+ end
151
159
  end
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "4.0.0.alpha17" # rubocop:disable Style/MutableConstant
2
+ VERSION = "4.0.0.alpha18" # rubocop:disable Style/MutableConstant
3
3
  end
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.alpha17
4
+ version: 4.0.0.alpha18
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-03-14 00:00:00.000000000 Z
16
+ date: 2019-05-04 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: airbrake
@@ -310,12 +310,10 @@ files:
310
310
  - lib/test_track_rails_client/engine.rb
311
311
  - lib/test_track_rails_client/rspec_helpers.rb
312
312
  - lib/test_track_rails_client/version.rb
313
- - vendor/Gemfile.lock
314
313
  - vendor/gems/fakeable_her/fakeable_her.gemspec
315
314
  - vendor/gems/fakeable_her/lib/fakeable_her.rb
316
315
  - vendor/gems/fakeable_her/lib/fakeable_her/model.rb
317
316
  - vendor/gems/fakeable_her/lib/fakeable_her/version.rb
318
- - vendor/gems/her/Gemfile.lock
319
317
  - vendor/gems/her/LICENSE
320
318
  - vendor/gems/her/her.gemspec
321
319
  - vendor/gems/her/lib/her.rb
data/vendor/Gemfile.lock DELETED
@@ -1,82 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- her (0.8.6)
5
- activemodel (>= 3.0.0, <= 6.0.0)
6
- activesupport (>= 3.0.0, <= 6.0.0)
7
- faraday (>= 0.8, < 1.0)
8
- multi_json (~> 1.7)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- activemodel (5.1.2)
14
- activesupport (= 5.1.2)
15
- activesupport (5.1.2)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (~> 0.7)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- appraisal (2.2.0)
21
- bundler
22
- rake
23
- thor (>= 0.14.0)
24
- coderay (1.1.2)
25
- concurrent-ruby (1.0.5)
26
- concurrent-ruby (1.0.5-java)
27
- diff-lcs (1.3)
28
- faraday (0.14.0)
29
- multipart-post (>= 1.2, < 3)
30
- ffi (1.9.23-java)
31
- i18n (0.8.6)
32
- json (1.8.6)
33
- json (1.8.6-java)
34
- method_source (0.9.0)
35
- minitest (5.10.3)
36
- multi_json (1.13.1)
37
- multipart-post (2.0.0)
38
- pry (0.11.3)
39
- coderay (~> 1.1.0)
40
- method_source (~> 0.9.0)
41
- pry (0.11.3-java)
42
- coderay (~> 1.1.0)
43
- method_source (~> 0.9.0)
44
- spoon (~> 0.0)
45
- rake (10.5.0)
46
- rspec (3.6.0)
47
- rspec-core (~> 3.6.0)
48
- rspec-expectations (~> 3.6.0)
49
- rspec-mocks (~> 3.6.0)
50
- rspec-core (3.6.0)
51
- rspec-support (~> 3.6.0)
52
- rspec-expectations (3.6.0)
53
- diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.6.0)
55
- rspec-mocks (3.6.0)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.6.0)
58
- rspec-support (3.6.0)
59
- spoon (0.0.6)
60
- ffi
61
- thor (0.20.0)
62
- thread_safe (0.3.6)
63
- thread_safe (0.3.6-java)
64
- tzinfo (1.2.3)
65
- thread_safe (~> 0.1)
66
-
67
- PLATFORMS
68
- java
69
- ruby
70
-
71
- DEPENDENCIES
72
- activemodel (>= 3.2.0)
73
- activesupport (>= 3.2.0)
74
- appraisal (~> 2.2.0)
75
- her!
76
- json (~> 1.8)
77
- pry
78
- rake (~> 10.0)
79
- rspec (~> 3.5)
80
-
81
- BUNDLED WITH
82
- 1.16.1
@@ -1,81 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- her (1.0.3)
5
- activemodel (>= 4.2.1)
6
- faraday (>= 0.8, < 1.0)
7
- multi_json (~> 1.7)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (5.2.1)
13
- activesupport (= 5.2.1)
14
- activesupport (5.2.1)
15
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- ast (2.4.0)
20
- coderay (1.1.2)
21
- concurrent-ruby (1.0.5)
22
- diff-lcs (1.3)
23
- faraday (0.15.3)
24
- multipart-post (>= 1.2, < 3)
25
- i18n (1.1.1)
26
- concurrent-ruby (~> 1.0)
27
- json (1.8.6)
28
- method_source (0.9.0)
29
- minitest (5.11.3)
30
- multi_json (1.13.1)
31
- multipart-post (2.0.0)
32
- parallel (1.12.1)
33
- parser (2.5.3.0)
34
- ast (~> 2.4.0)
35
- powerpack (0.1.2)
36
- pry (0.11.3)
37
- coderay (~> 1.1.0)
38
- method_source (~> 0.9.0)
39
- rainbow (3.0.0)
40
- rake (10.5.0)
41
- rspec (3.8.0)
42
- rspec-core (~> 3.8.0)
43
- rspec-expectations (~> 3.8.0)
44
- rspec-mocks (~> 3.8.0)
45
- rspec-core (3.8.0)
46
- rspec-support (~> 3.8.0)
47
- rspec-expectations (3.8.2)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-mocks (3.8.0)
51
- diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-support (3.8.0)
54
- rubocop (0.54.0)
55
- parallel (~> 1.10)
56
- parser (>= 2.5)
57
- powerpack (~> 0.1)
58
- rainbow (>= 2.2.2, < 4.0)
59
- ruby-progressbar (~> 1.7)
60
- unicode-display_width (~> 1.0, >= 1.0.1)
61
- ruby-progressbar (1.10.0)
62
- thread_safe (0.3.6)
63
- tzinfo (1.2.5)
64
- thread_safe (~> 0.1)
65
- unicode-display_width (1.4.0)
66
-
67
- PLATFORMS
68
- ruby
69
-
70
- DEPENDENCIES
71
- activemodel (>= 3.2.0)
72
- activesupport (>= 3.2.0)
73
- her!
74
- json (~> 1.8)
75
- pry
76
- rake (~> 10.0)
77
- rspec (~> 3.5)
78
- rubocop (= 0.54.0)
79
-
80
- BUNDLED WITH
81
- 1.17.1