mitlibraries-theme 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/_head.html.erb +14 -20
- data/lib/mitlibraries/theme/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecf72d8fc3f947feff484f614fbd78299b988b60f2917289b1166b8d8045eb33
|
4
|
+
data.tar.gz: cced976628bcad6adfd7ae13d7fec3238c9692aa8abb13575a56990882353c74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ec4af05c669a9f5335ab98bf8cfacaab6acdd2950145c0160aaeb4569a2d3b1b60071316439a7c29e53394130462049a8dda0de6af40b842fc6f2c9c1b9fa9
|
7
|
+
data.tar.gz: 514c0869fa969fa8c96bdf55e48b6312f5e612fdf806c856ac74335b5901fe46378d2507b75d5af045cd0a365df6601c42f9812f8e0e6ae0585ade814133ebc5
|
@@ -25,26 +25,20 @@
|
|
25
25
|
|
26
26
|
<%= yield :additional_js %>
|
27
27
|
|
28
|
-
<% if (ENV['
|
28
|
+
<% if (ENV['MATOMO_URL'].present? && ENV['MATOMO_SITE_ID'].present?) %>
|
29
|
+
<!-- Matomo -->
|
29
30
|
<script type="text/javascript">
|
30
|
-
|
31
|
-
|
32
|
-
(
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
a.src=g;
|
42
|
-
m.parentNode.insertBefore(a,m);
|
43
|
-
|
44
|
-
}(window,document,'script','https://www.google-analytics.com/analytics.js','ga'));
|
45
|
-
|
46
|
-
ga('create', '<%= ENV['GOOGLE_ANALYTICS'] %>', 'auto');
|
47
|
-
ga('send', 'pageview');
|
48
|
-
|
31
|
+
var _paq = window._paq || [];
|
32
|
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
33
|
+
_paq.push(['trackPageView']);
|
34
|
+
_paq.push(['enableLinkTracking']);
|
35
|
+
(function() {
|
36
|
+
var u='<%= ENV['MATOMO_URL'] %>';
|
37
|
+
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
38
|
+
_paq.push(['setSiteId', '<%= ENV['MATOMO_SITE_ID'] %>']);
|
39
|
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
40
|
+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
41
|
+
})();
|
49
42
|
</script>
|
43
|
+
<!-- End Matomo Code -->
|
50
44
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mitlibraries-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Prevost
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.7.6
|
167
|
+
rubygems_version: 3.1.2
|
169
168
|
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: General theme for MIT Libraries Rails apps
|