workarea-google_analytics 2.2.0 → 2.2.1

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: b3b2732c59098561a87d64fcaa5b282c327e729c3bf26f64ff8ba0d252b6e286
4
- data.tar.gz: 7274c3cc842cf545257bfce7fbbd012559b6c0dffaa515e83e079e2dbbda6f37
3
+ metadata.gz: 4609eaf725ff587a4e4c0a8481d1227c96ae7b26a2d3b237217a23628a2f4ddc
4
+ data.tar.gz: eee55d2bc3ec24b730a70a46a8c517633eb668d57608cceb78cafb0d1ab3709e
5
5
  SHA512:
6
- metadata.gz: e9a26aa2b74b54a05541671fcc8cd7dd48d5763013d78008cf32d19e6aff4d7602f539c6b08ca36edbc022f550235d34d90d1fa67a6af743cd2188c881649ca6
7
- data.tar.gz: f8e156793f7fa1a48c41e766f70d7cd2022d8f8f7ab6db78eaccf0ea29e81750b8fdc1e776d35fdb7a19b021e780e9c0739948c33711d6d75fdc1f07a4bf6bcc
6
+ metadata.gz: 28a883cab3b944f40ad231b266c490f555525e9a553d98cfcf42663607fdb4b7fa46df0594bf45bc03daf7fb4035672ce05a5fc6baf86a7265d9b70a0a7641bc
7
+ data.tar.gz: 0ad705bcfad465438240d10d20f03c7b4a090a2f51ff5a29654c2f611062ef98ccf785151b75b6e80f609d0f1199411f1bfc0981a414db61d5b3181bdbf1becb
@@ -1,3 +1,35 @@
1
+ Workarea Google Analytics 2.2.1 (2020-02-04)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Prevent Loading Script When Credentials Not Set
5
+
6
+ Only load the `<script>` needed to pull in GA when your tracking ID is
7
+ actually set up in configuration.
8
+
9
+ GOOGLEANALYTICS-2
10
+ Tom Scott
11
+
12
+ * Make google_analytics_tracking_id an administrable field (#1)
13
+
14
+ Matt Duffy
15
+
16
+
17
+
18
+ Workarea Google Analytics 2.1.6 (2020-02-04)
19
+ --------------------------------------------------------------------------------
20
+
21
+ * Don't Call Google Analytics Until It's Defined
22
+
23
+ Instead of seeing whether the app is in the test environment, check
24
+ whether the `ga()` function is present before sending any calls to it.
25
+ This prevents a JS error that occurs when the
26
+ `config.google_analytics_tracking_id` is missing.
27
+
28
+ GOOGLEANALYTICS-4
29
+ Tom Scott
30
+
31
+
32
+
1
33
  Workarea Google Analytics 2.1.5 (2019-08-21)
2
34
  --------------------------------------------------------------------------------
3
35
 
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
4
  gemspec
5
5
 
6
- gem 'workarea', github: 'workarea-commerce/workarea'
6
+ gem 'workarea', github: 'workarea-commerce/workarea', branch: 'v3.5-stable'
data/Rakefile CHANGED
@@ -16,13 +16,12 @@ desc "Release version #{Workarea::GoogleAnalytics::VERSION} of the gem"
16
16
  task :release do
17
17
  host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
18
18
 
19
- #Rake::Task['workarea:changelog'].execute
20
- #system 'git add CHANGELOG.md'
21
- #system 'git commit -m "Update CHANGELOG"'
22
- #system 'git push origin HEAD'
19
+ Rake::Task['workarea:changelog'].execute
20
+ system 'git add CHANGELOG.md'
21
+ system 'git commit -m "Update CHANGELOG"'
23
22
 
24
23
  system "git tag -a v#{Workarea::GoogleAnalytics::VERSION} -m 'Tagging #{Workarea::GoogleAnalytics::VERSION}'"
25
- system 'git push --tags'
24
+ system 'git push origin HEAD --follow-tags'
26
25
 
27
26
  system 'gem build workarea-google_analytics.gemspec'
28
27
  system "gem push workarea-google_analytics-#{Workarea::GoogleAnalytics::VERSION}.gem"
@@ -13,7 +13,7 @@ WORKAREA.analytics.registerAdapter('googleAnalytics', function () {
13
13
  console.log(arguments);
14
14
  }
15
15
 
16
- if (!WORKAREA.environment.isTest) {
16
+ if (!WORKAREA.environment.isTest && !_.isUndefined(window.ga)) {
17
17
  ga.apply(ga, arguments);
18
18
  }
19
19
  };
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module GoogleAnalytics
3
- VERSION = '2.2.0'.freeze
3
+ VERSION = '2.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-26 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea