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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d854bc8035b157fa401415ebfb21b89db4969e80898af1214ef8df27aeef1db
4
- data.tar.gz: caf249b190de4f5f9831fecaba75cee098760dcd334eb32979e673c1d141379e
3
+ metadata.gz: ecf72d8fc3f947feff484f614fbd78299b988b60f2917289b1166b8d8045eb33
4
+ data.tar.gz: cced976628bcad6adfd7ae13d7fec3238c9692aa8abb13575a56990882353c74
5
5
  SHA512:
6
- metadata.gz: f45618127822489a80912760ae58b5bfa2932c4661e0a32a7c53606938f2757a03f4666d1c0483b713d3d63323eb81baed02a83421d22f7309b6705e3d733314
7
- data.tar.gz: c5ad9362150f30b578d55907ccf42702a810c876bcf826a6276472cf03627928416ca8d68e320970800f3b88c1d12e13cd0e498ce4eda43d7a83f604c5fd89e7
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['GOOGLE_ANALYTICS']) %>
28
+ <% if (ENV['MATOMO_URL'].present? && ENV['MATOMO_SITE_ID'].present?) %>
29
+ <!-- Matomo -->
29
30
  <script type="text/javascript">
30
- // Google Analytics
31
-
32
- (function(i,s,o,g,r,a,m){
33
- i['GoogleAnalyticsObject']=r;
34
- i[r]=i[r]||function(){
35
- (i[r].q=i[r].q||[]).push(arguments)
36
- };
37
- i[r].l=1*new Date();
38
- a=s.createElement(o);
39
- m=s.getElementsByTagName(o)[0];
40
- a.async=1;
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 %>
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.3.2'.freeze
3
+ VERSION = '0.3.3'.freeze
4
4
  end
5
5
  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.2
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: 2019-01-28 00:00:00.000000000 Z
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
- rubyforge_project:
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