govuk_frontend_toolkit 4.7.0 → 4.8.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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bf84ca5f409edb14c30de9f164e2a882020cfe6
|
|
4
|
+
data.tar.gz: e5bb03235b7a6cd7a694094e99e8f1abf61ec2ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e529cdabcb19a17969515e8e259b61ff061987c1bfe7c30f8b68212bd563a5b44cd13f278828f656aa01fbf1a5d6f8ba5933c25c1cf2bb2abd6329c2c0d07bc7
|
|
7
|
+
data.tar.gz: 374dd5938b13d38ca5ca6fbab70ed02818f9754062e2ff9d4f56712f4414face85a355e0db1df625d3c14696f89b739eff8d296aa56527f956d017d6cc7e9cfd
|
data/app/assets/CHANGELOG.md
CHANGED
data/app/assets/VERSION.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.
|
|
1
|
+
4.8.0
|
|
@@ -248,7 +248,7 @@ var test = new GOVUK.MultivariateTest({
|
|
|
248
248
|
});
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
-
`customDimensionIndex` is the index of the custom variable in Google Analytics. GA only gives 50 integer slots to each account, and it is important that a unique integer is assigned to each test. Current contact for assigning a custom var slot for GOV.UK is:
|
|
251
|
+
`customDimensionIndex` is the index of the custom variable in Google Analytics. GA only gives 50 integer slots to each account, and it is important that a unique integer is assigned to each test. Current contact for assigning a custom var slot for GOV.UK is: Tim Leighton-Boyce <tim.leighton-boyce@digital.cabinet-office.gov.uk>
|
|
252
252
|
|
|
253
253
|
## Primary Links
|
|
254
254
|
|
|
@@ -47,7 +47,7 @@ describe("MultivariateTest", function() {
|
|
|
47
47
|
expect(fooSpy).toHaveBeenCalled();
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
it("should set a custom var if one is defined", function() {
|
|
50
|
+
it("should set a custom var with the name and cohort if one is defined", function() {
|
|
51
51
|
GOVUK.cookie.and.returnValue('foo');
|
|
52
52
|
var test = new GOVUK.MultivariateTest({
|
|
53
53
|
name: 'stuff',
|
|
@@ -59,10 +59,19 @@ describe("MultivariateTest", function() {
|
|
|
59
59
|
});
|
|
60
60
|
expect(GOVUK.analytics.setDimension).toHaveBeenCalledWith(
|
|
61
61
|
2,
|
|
62
|
-
'
|
|
63
|
-
'foo',
|
|
64
|
-
2
|
|
62
|
+
'multivariatetest_cohort_stuff__foo'
|
|
65
63
|
);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it("should trigger an event to track that the test has been run", function() {
|
|
67
|
+
GOVUK.cookie.and.returnValue('foo');
|
|
68
|
+
var test = new GOVUK.MultivariateTest({
|
|
69
|
+
name: 'stuff',
|
|
70
|
+
cohorts: {
|
|
71
|
+
foo: {},
|
|
72
|
+
bar: {}
|
|
73
|
+
},
|
|
74
|
+
});
|
|
66
75
|
expect(GOVUK.analytics.trackEvent).toHaveBeenCalledWith(
|
|
67
76
|
'multivariatetest_cohort_stuff',
|
|
68
77
|
'run',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_frontend_toolkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bradley Wright
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|