workarea-google_analytics 2.1.5 → 2.1.6

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: 0c4f250208db326405bce7938e7d906908f98a66fdf33c0dc6ef9db3c6dbb43f
4
- data.tar.gz: c4217dd32dfe0e486eea6c2351b702d7638ab63545ac1aee9b364c5d5586b84f
3
+ metadata.gz: 9ca843aa749daf4ee89e4cc4584e0439f5928e1577d27c64ed72eba13f48caa5
4
+ data.tar.gz: 99ec473ad9acfd98becfed72f6af78495df7342f847b4b6340808fceebd4df90
5
5
  SHA512:
6
- metadata.gz: d6ed90500cc674786541834e78b2212b8ba253d905bebd6a3d62cd52f093cd0626cebcbb01f617c3583c84c5ad5a0b8f8fb7816202691695d4990c3bfe661794
7
- data.tar.gz: 9ed033f73b2db2d50a23b6f831ca947822b76f623da5555d7bc6a869bd4febf44935b8f4b660215d425bffd129077be9fc3f9d5279afbbbd12ec79db9a77f78e
6
+ metadata.gz: d10d98ad3456003e96aee4906b9e7fd4ba0b5a0da2bebc6912081adae4f8f31529dea145ea5d94ce71fdfb5436705aa48797771c85bf89428ab3c461b7975909
7
+ data.tar.gz: 1cec12e197be3021adb2c95c336f3079438886b50ee5aa83748868f20f826a674ad38d009f94396a54846f758b49524fce8fc4cd283314076b09944219b56a11
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ node_modules
13
13
  test/reports
14
14
  package.json
15
15
  yarn.lock
16
+ .rubocop-http*
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ Workarea Google Analytics 2.1.6 (2020-02-04)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Don't Call Google Analytics Until It's Defined
5
+
6
+ Instead of seeing whether the app is in the test environment, check
7
+ whether the `ga()` function is present before sending any calls to it.
8
+ This prevents a JS error that occurs when the
9
+ `config.google_analytics_tracking_id` is missing.
10
+
11
+ GOOGLEANALYTICS-4
12
+ Tom Scott
13
+
14
+
15
+
1
16
  Workarea Google Analytics 2.1.5 (2019-08-21)
2
17
  --------------------------------------------------------------------------------
3
18
 
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ git_source(:github) { |repo| "git@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.1.5'.freeze
3
+ VERSION = '2.1.6'.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.1.5
4
+ version: 2.1.6
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-08-21 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
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.0.4
128
+ rubygems_version: 3.0.6
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Google Analytics integration for the Workarea Commerce Platform