test_track_rails_client 0.9.8 → 0.9.9
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 +8 -8
- data/README.md +10 -11
- data/lib/test_track_rails_client/version.rb +1 -1
- data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/html_safe.rb +1 -1
- data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/raw.rb +1 -1
- data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/safe_concat.rb +1 -1
- data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/shared_examples/betterment_application_examples.rb +0 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDhiMWY5ZTA2YzhhMzgzZWRlNDU5ZDlkNGRkZTVlNWM3MDZlZDYzOQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzQwYThjMzUxZjllN2FiMjBiMTY4NzNiYjg0NTdlNGNjMzU5ZjdlOA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjMxNjM2YjBlZjcwMWRlMzE3YjhlOGRlZGY2YWEwODhmODg3ZDZjODU1OWI1
|
|
10
|
+
NmNjNGRjOGY2YzUwZDQxZDQ4YTI2NzAxZjU4N2I4MDVkYzc0OTYxYzYzYjBh
|
|
11
|
+
MDk0MDlhZGFlMDZlZjEzYjQwNjhmZjljNWFjMWNiOGNlZGI3MDA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
N2JhMzE0Njk2YjI2NDU0M2YyYjJiZjM4NDhhMGI4NjhhM2VkZWI5NjI0NzY5
|
|
14
|
+
OTJhZTBmNTU0Y2JmYjU0YWJhM2RlNjQ5ZTBhZTkzYjM1YWY4YzMxMmU3MWI4
|
|
15
|
+
MWM2NjI5OWI4YmFiYjU1N2JhMDJjM2U2ZTc1YTEyNTdjY2QwZTM=
|
data/README.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
#
|
|
2
|
-
Rails client for the test_track service
|
|
1
|
+
# TestTrack Rails Client
|
|
3
2
|
|
|
4
|
-
[](https://travis-ci.com/Betterment/test_track_rails_client)
|
|
4
|
+
|
|
5
|
+
This is the Rails client library for the [TestTrack](https://github.com/Betterment/test_track) system.
|
|
6
|
+
|
|
7
|
+
It provides server-side split-testing and feature-toggling through a simple API.
|
|
8
|
+
|
|
9
|
+
If you're looking to do client-side assignment, then check out our [JS client](https://github.com/Betterment/test_track_js_client).
|
|
5
10
|
|
|
6
11
|
## Installation
|
|
7
12
|
|
|
@@ -24,12 +29,6 @@ Set up ENV vars in every environment:
|
|
|
24
29
|
* `MIXPANEL_TOKEN` - By default, TestTrack reports to Mixpanel. If you're using a [custom analytics provider](#custom-analytics) you can omit this.
|
|
25
30
|
* `TEST_TRACK_API_URL` - Set this to the URL of your TestTrack instance with your app credentials, e.g. `http://[myapp]:[your new app password]@testtrack.dev/`
|
|
26
31
|
|
|
27
|
-
Add find or create to `seeds.rb` in the test_track app
|
|
28
|
-
|
|
29
|
-
```ruby
|
|
30
|
-
App.find_or_create_by!(name: "[myapp]", auth_secret: "[your LOCAL app password]")
|
|
31
|
-
```
|
|
32
|
-
|
|
33
32
|
Mix `TestTrack::Controller` into any controllers needing access to TestTrack:
|
|
34
33
|
|
|
35
34
|
```ruby
|
|
@@ -47,9 +46,9 @@ If you'd like to be able to use the [TestTrack Chrome Extension](https://github.
|
|
|
47
46
|
//= require testTrack.bundle.min
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
1. Then, follow the instructions for [configuring the JS client](https://github.com/Betterment/test_track_js_client#
|
|
49
|
+
1. Then, follow the instructions for [configuring the JS client](https://github.com/Betterment/test_track_js_client#configuration).
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
## Concepts
|
|
53
52
|
|
|
54
53
|
* **Visitor** - a person using your application. `test_track_rails_client` manages visitors for you and ensures that `test_track_visitor` is available in any controller that mixes in `TestTrack::Controller`
|
|
55
54
|
* **Split** - A feature for which TestTrack will be assigning different behavior for different visitors. Split names must be strings and should be expressed in `snake_case`. E.g. `homepage_redesign_late_2015` or `signup_button_color`.
|
data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/html_safe.rb
CHANGED
|
@@ -2,7 +2,7 @@ module RuboCop
|
|
|
2
2
|
module Cop
|
|
3
3
|
module Betterment
|
|
4
4
|
class HTMLSafe < Cop
|
|
5
|
-
MSG = 'Using html_safe creates the potential for XSS attacks.
|
|
5
|
+
MSG = 'Using html_safe creates the potential for XSS attacks.'
|
|
6
6
|
|
|
7
7
|
def on_send(node)
|
|
8
8
|
_receiver, method_name = *node
|
|
@@ -2,7 +2,7 @@ module RuboCop
|
|
|
2
2
|
module Cop
|
|
3
3
|
module Betterment
|
|
4
4
|
class Raw < Cop
|
|
5
|
-
MSG = 'Using raw creates the potential for XSS attacks.
|
|
5
|
+
MSG = 'Using raw creates the potential for XSS attacks.'
|
|
6
6
|
|
|
7
7
|
def on_send(node)
|
|
8
8
|
_receiver, method_name = *node
|
data/vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rubocop/cop/betterment/safe_concat.rb
CHANGED
|
@@ -2,7 +2,7 @@ module RuboCop
|
|
|
2
2
|
module Cop
|
|
3
3
|
module Betterment
|
|
4
4
|
class SafeConcat < Cop
|
|
5
|
-
MSG = 'Using raw creates the potential for XSS attacks.
|
|
5
|
+
MSG = 'Using raw creates the potential for XSS attacks.'
|
|
6
6
|
|
|
7
7
|
def on_send(node)
|
|
8
8
|
_receiver, method_name = *node
|
|
@@ -5,7 +5,6 @@ RSpec.shared_examples "a Betterment application" do
|
|
|
5
5
|
fail <<-EOF unless result.blank?
|
|
6
6
|
`raw` was called in the following files.
|
|
7
7
|
Consider rewriting to avoid using `raw` or move into a view helper.
|
|
8
|
-
See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering
|
|
9
8
|
|
|
10
9
|
#{result}
|
|
11
10
|
EOF
|
|
@@ -16,7 +15,6 @@ See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEn
|
|
|
16
15
|
fail <<-EOF unless result.blank?
|
|
17
16
|
`html_safe` was called in the following files.
|
|
18
17
|
Consider rewriting to avoid using `html_safe` or move into a view helper.
|
|
19
|
-
See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering
|
|
20
18
|
|
|
21
19
|
#{result}
|
|
22
20
|
EOF
|
|
@@ -27,7 +25,6 @@ See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEn
|
|
|
27
25
|
fail <<-EOF unless result.blank?
|
|
28
26
|
`safe_concat` was called in the following files.
|
|
29
27
|
Consider rewriting to avoid using `safe_concat` or move into a view helper.
|
|
30
|
-
See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering
|
|
31
28
|
|
|
32
29
|
#{result}
|
|
33
30
|
EOF
|
|
@@ -38,7 +35,6 @@ See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEn
|
|
|
38
35
|
fail <<-EOF unless result.blank?
|
|
39
36
|
`<%==` was used in the following files:
|
|
40
37
|
Consider rewriting to avoid using `<%==`.
|
|
41
|
-
See more info here: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering
|
|
42
38
|
|
|
43
39
|
#{result}
|
|
44
40
|
EOF
|