test_track_rails_client 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDEwOTg0ZmI1MjZmMGU2MmU2M2QyYWZjY2NhZjY0NTc5ZDRmNmRiMw==
4
+ NDhiMWY5ZTA2YzhhMzgzZWRlNDU5ZDlkNGRkZTVlNWM3MDZlZDYzOQ==
5
5
  data.tar.gz: !binary |-
6
- YjE0MWY5MjY2ZGU4OWM2NzA4NmRiYzIwMGUyMDVkZTIwMTUzNDc2NA==
6
+ NzQwYThjMzUxZjllN2FiMjBiMTY4NzNiYjg0NTdlNGNjMzU5ZjdlOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTE3MTY0NjlhYTIyMjBkZDU5OGI4OWExNmVlNmY4YmY1N2I5YmUzOGNjYmFh
10
- ZmE4YmNkODAzMjg1YWI3YTUzOGZlZDMwNzQ5ZTA2MTgyMzFmODJlMWZkMjFj
11
- NjgzM2YzMDUyNGM5M2ZlOGY5MGUzM2RhNTFmYjdhNTZiMWJhMmM=
9
+ ZjMxNjM2YjBlZjcwMWRlMzE3YjhlOGRlZGY2YWEwODhmODg3ZDZjODU1OWI1
10
+ NmNjNGRjOGY2YzUwZDQxZDQ4YTI2NzAxZjU4N2I4MDVkYzc0OTYxYzYzYjBh
11
+ MDk0MDlhZGFlMDZlZjEzYjQwNjhmZjljNWFjMWNiOGNlZGI3MDA=
12
12
  data.tar.gz: !binary |-
13
- YWMxMDA2MDU2N2ZjYzQ3ZTg5NzY5NGQwOWY0NTg4NWNkMzI4ZWQ4NGZkMzYx
14
- MDQ5MTc1NmE1OGMxMzc3YTE4ODBjYTY0MzllZDQxMjBhYTU2OGIwOWNiYzQw
15
- NTdlYjAxYWNkYTYzYzE0ZWU4NGQwMjM4OWM0OGM0NDkzZDEwMjk=
13
+ N2JhMzE0Njk2YjI2NDU0M2YyYjJiZjM4NDhhMGI4NjhhM2VkZWI5NjI0NzY5
14
+ OTJhZTBmNTU0Y2JmYjU0YWJhM2RlNjQ5ZTBhZTkzYjM1YWY4YzMxMmU3MWI4
15
+ MWM2NjI5OWI4YmFiYjU1N2JhMDJjM2U2ZTc1YTEyNTdjY2QwZTM=
data/README.md CHANGED
@@ -1,7 +1,12 @@
1
- # test_track_rails_client
2
- Rails client for the test_track service
1
+ # TestTrack Rails Client
3
2
 
4
- [![Build Status](https://travis-ci.com/Betterment/test_track_rails_client.svg?token=6b6DErRMUHX47kEoBZ3t&branch=master)](https://travis-ci.com/Betterment/test_track_rails_client)
3
+ [![Build Status](https://travis-ci.org/Betterment/test_track_rails_client.svg?branch=master)](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#initialize).
49
+ 1. Then, follow the instructions for [configuring the JS client](https://github.com/Betterment/test_track_js_client#configuration).
51
50
 
52
- # Concepts
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`.
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "0.9.8" # rubocop:disable Style/MutableConstant
2
+ VERSION = "0.9.9" # rubocop:disable Style/MutableConstant
3
3
  end
@@ -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. See here for more info: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering'
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. See here for more info: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering'
5
+ MSG = 'Using raw 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 SafeConcat < Cop
5
- MSG = 'Using raw creates the potential for XSS attacks. See here for more info: https://betterconfluence.atlassian.net/wiki/display/BetterEng/Unsafe+HTML+rendering'
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
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: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan O'Neill