card-mod-google_analytics 0.15 → 0.16

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: c957d1bd240ffbdb77a69deb65a4c19837bdf554fdf7aa2e9365405b4881558b
4
- data.tar.gz: bbd312be50e17bed094781042b2bd56a3f8e552a430c8cbae0ca52b7b853fa9f
3
+ metadata.gz: 0de74c365d5c25330e6b24b9454b9b580526aa77046ed0020499bbb50380b962
4
+ data.tar.gz: be2d96154864171ceb8dd23c56dfa48dbef15bc1a68f675dd87f7036e73f659a
5
5
  SHA512:
6
- metadata.gz: 0e2dd623747ace80b0149f8fc5ec399d843e16011ce35d17a50f2cfe8d5c9f66c44c4da1f976b0af606d3e62237004f016b6869ad2cbb1c2651d26bbf11afb0c
7
- data.tar.gz: e7a718192871a2cd1f5c1cbd092c789c594d7d5a0ffe05da9c04702d5f229ceaa1096114ce5ebd7babe82899962e220d2818453ff20bd64915c9e81cce37b4f1
6
+ metadata.gz: 28a8cde16ad4b5f22b881e6a74fb9433bcde714f93497eedae13953dcb5739ac070fc3962ac7bba1da9c9c84ab315bd350af1e9ef78d57e6b9eae4022dd1886a
7
+ data.tar.gz: 99c0997514c559e8c8825650cfa853fd133333aa44cc72a01ee5d21ead14fa5185e2b6c5338b0f16d83ebaa2e5e21264e3b766d95f761a13eff748c542a39337
@@ -0,0 +1,4 @@
1
+ Cardio::Railtie.config.tap do |config|
2
+ config.google_analytics_key = nil
3
+ config.google_analytics_tracker_key = nil
4
+ end
@@ -40,16 +40,14 @@ def track_page_from_server?
40
40
  end
41
41
 
42
42
  format :html do
43
+ basket[:head_views].unshift :google_analytics_snippets
44
+
43
45
  delegate :google_analytics_keys, to: :card
44
46
 
45
47
  def body_tag klasses=""
46
48
  super { "#{render(:google_analytics_noscript)}\n\n#{yield}" }
47
49
  end
48
50
 
49
- def views_in_head
50
- super.unshift :google_analytics_snippets
51
- end
52
-
53
51
  view :google_analytics_snippets, unknown: true, perms: :none do
54
52
  haml :google_analytics_snippets if google_analytics_keys.present?
55
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.15'
4
+ version: '0.16'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Kühl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-23 00:00:00.000000000 Z
12
+ date: 2023-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: card
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.2.15
74
+ rubygems_version: 3.2.33
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Google Analytics support for decko