workarea-google_tag_manager 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rubocop.yml +37 -0
  4. data/CHANGELOG.md +100 -0
  5. data/Gemfile +14 -0
  6. data/README.md +339 -0
  7. data/Rakefile +65 -0
  8. data/app/assets/javascripts/workarea/storefront/google_tag_manager/modules/adapter.js +233 -0
  9. data/app/views/workarea/storefront/google_tag_manager/_no_script.html.haml +3 -0
  10. data/app/views/workarea/storefront/google_tag_manager/_script.html.haml +3 -0
  11. data/bin/rails +18 -0
  12. data/config/initializers/appends.rb +16 -0
  13. data/config/initializers/workarea.rb +3 -0
  14. data/lib/workarea/google_tag_manager.rb +60 -0
  15. data/lib/workarea/google_tag_manager/engine.rb +8 -0
  16. data/lib/workarea/google_tag_manager/version.rb +5 -0
  17. data/script/admin_ci +9 -0
  18. data/script/ci +11 -0
  19. data/script/core_ci +9 -0
  20. data/script/plugins_ci +9 -0
  21. data/script/storefront_ci +9 -0
  22. data/test/dummy/Rakefile +6 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/bin/setup +34 -0
  27. data/test/dummy/bin/update +29 -0
  28. data/test/dummy/config.ru +5 -0
  29. data/test/dummy/config/application.rb +28 -0
  30. data/test/dummy/config/boot.rb +5 -0
  31. data/test/dummy/config/cable.yml +9 -0
  32. data/test/dummy/config/environment.rb +5 -0
  33. data/test/dummy/config/environments/development.rb +54 -0
  34. data/test/dummy/config/environments/production.rb +86 -0
  35. data/test/dummy/config/environments/test.rb +43 -0
  36. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  37. data/test/dummy/config/initializers/assets.rb +11 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -0
  43. data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
  44. data/test/dummy/config/initializers/session_store.rb +3 -0
  45. data/test/dummy/config/initializers/workarea.rb +5 -0
  46. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/test/dummy/config/locales/en.yml +23 -0
  48. data/test/dummy/config/puma.rb +47 -0
  49. data/test/dummy/config/routes.rb +5 -0
  50. data/test/dummy/config/secrets.yml +22 -0
  51. data/test/dummy/config/spring.rb +6 -0
  52. data/test/dummy/lib/assets/.keep +0 -0
  53. data/test/dummy/log/.keep +0 -0
  54. data/test/javascripts/fixtures/payloads.js +231 -0
  55. data/test/javascripts/google_tag_manager_spec.js +382 -0
  56. data/test/javascripts/spec_helper.js +5 -0
  57. data/test/teaspoon_env.rb +10 -0
  58. data/test/test_helper.rb +10 -0
  59. data/workarea-google_tag_manager.gemspec +18 -0
  60. metadata +151 -0
@@ -0,0 +1,5 @@
1
+ //= require workarea/core/spec_helper
2
+ //= require workarea/storefront/spec_helper
3
+ //= require workarea/storefront/modules/analytics.js
4
+ //= require workarea/storefront/google_tag_manager/modules/adapter
5
+ //= require fixtures/payloads
@@ -0,0 +1,10 @@
1
+ require 'workarea/testing/teaspoon'
2
+
3
+ Teaspoon.configure do |config|
4
+ config.root = Workarea::GoogleTagManager::Engine.root
5
+ Workarea::Teaspoon.apply(config)
6
+
7
+ config.suite do |suite|
8
+ suite.stylesheets += ['workarea/storefront/application']
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../test/dummy/config/environment.rb', __dir__)
5
+ require 'rails/test_help'
6
+ require 'workarea/test_help'
7
+
8
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
9
+ # to be shown.
10
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
@@ -0,0 +1,18 @@
1
+ $:.push File.expand_path('lib', __dir__)
2
+
3
+ require 'workarea/google_tag_manager/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'workarea-google_tag_manager'
7
+ s.version = Workarea::GoogleTagManager::VERSION
8
+ s.authors = ['Jake Beresford']
9
+ s.email = ['jberesford@workarea.com']
10
+ s.homepage = 'http://www.workarea.com'
11
+ s.summary = 'Google Tag Manager for the Workarea Commerce Platform'
12
+ s.description = 'Provides Google Tag Manager integration for the Workarea Commerce Platform'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = Dir['test/**/*']
16
+
17
+ s.add_dependency 'workarea', '~> 3.x'
18
+ end
metadata ADDED
@@ -0,0 +1,151 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: workarea-google_tag_manager
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Jake Beresford
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: workarea
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.x
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.x
27
+ description: Provides Google Tag Manager integration for the Workarea Commerce Platform
28
+ email:
29
+ - jberesford@workarea.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - Gemfile
38
+ - README.md
39
+ - Rakefile
40
+ - app/assets/javascripts/workarea/storefront/google_tag_manager/modules/adapter.js
41
+ - app/views/workarea/storefront/google_tag_manager/_no_script.html.haml
42
+ - app/views/workarea/storefront/google_tag_manager/_script.html.haml
43
+ - bin/rails
44
+ - config/initializers/appends.rb
45
+ - config/initializers/workarea.rb
46
+ - lib/workarea/google_tag_manager.rb
47
+ - lib/workarea/google_tag_manager/engine.rb
48
+ - lib/workarea/google_tag_manager/version.rb
49
+ - script/admin_ci
50
+ - script/ci
51
+ - script/core_ci
52
+ - script/plugins_ci
53
+ - script/storefront_ci
54
+ - test/dummy/Rakefile
55
+ - test/dummy/bin/bundle
56
+ - test/dummy/bin/rails
57
+ - test/dummy/bin/rake
58
+ - test/dummy/bin/setup
59
+ - test/dummy/bin/update
60
+ - test/dummy/config.ru
61
+ - test/dummy/config/application.rb
62
+ - test/dummy/config/boot.rb
63
+ - test/dummy/config/cable.yml
64
+ - test/dummy/config/environment.rb
65
+ - test/dummy/config/environments/development.rb
66
+ - test/dummy/config/environments/production.rb
67
+ - test/dummy/config/environments/test.rb
68
+ - test/dummy/config/initializers/application_controller_renderer.rb
69
+ - test/dummy/config/initializers/assets.rb
70
+ - test/dummy/config/initializers/backtrace_silencers.rb
71
+ - test/dummy/config/initializers/cookies_serializer.rb
72
+ - test/dummy/config/initializers/filter_parameter_logging.rb
73
+ - test/dummy/config/initializers/inflections.rb
74
+ - test/dummy/config/initializers/mime_types.rb
75
+ - test/dummy/config/initializers/new_framework_defaults.rb
76
+ - test/dummy/config/initializers/session_store.rb
77
+ - test/dummy/config/initializers/workarea.rb
78
+ - test/dummy/config/initializers/wrap_parameters.rb
79
+ - test/dummy/config/locales/en.yml
80
+ - test/dummy/config/puma.rb
81
+ - test/dummy/config/routes.rb
82
+ - test/dummy/config/secrets.yml
83
+ - test/dummy/config/spring.rb
84
+ - test/dummy/lib/assets/.keep
85
+ - test/dummy/log/.keep
86
+ - test/dummy/log/sidekiq.log
87
+ - test/javascripts/fixtures/payloads.js
88
+ - test/javascripts/google_tag_manager_spec.js
89
+ - test/javascripts/spec_helper.js
90
+ - test/teaspoon_env.rb
91
+ - test/test_helper.rb
92
+ - workarea-google_tag_manager.gemspec
93
+ homepage: http://www.workarea.com
94
+ licenses: []
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubygems_version: 3.0.4
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Google Tag Manager for the Workarea Commerce Platform
115
+ test_files:
116
+ - test/test_helper.rb
117
+ - test/dummy/Rakefile
118
+ - test/dummy/config/initializers/workarea.rb
119
+ - test/dummy/config/initializers/assets.rb
120
+ - test/dummy/config/initializers/wrap_parameters.rb
121
+ - test/dummy/config/initializers/application_controller_renderer.rb
122
+ - test/dummy/config/initializers/new_framework_defaults.rb
123
+ - test/dummy/config/initializers/cookies_serializer.rb
124
+ - test/dummy/config/initializers/filter_parameter_logging.rb
125
+ - test/dummy/config/initializers/inflections.rb
126
+ - test/dummy/config/initializers/backtrace_silencers.rb
127
+ - test/dummy/config/initializers/session_store.rb
128
+ - test/dummy/config/initializers/mime_types.rb
129
+ - test/dummy/config/spring.rb
130
+ - test/dummy/config/locales/en.yml
131
+ - test/dummy/config/routes.rb
132
+ - test/dummy/config/cable.yml
133
+ - test/dummy/config/environment.rb
134
+ - test/dummy/config/boot.rb
135
+ - test/dummy/config/secrets.yml
136
+ - test/dummy/config/application.rb
137
+ - test/dummy/config/puma.rb
138
+ - test/dummy/config/environments/test.rb
139
+ - test/dummy/config/environments/development.rb
140
+ - test/dummy/config/environments/production.rb
141
+ - test/dummy/config.ru
142
+ - test/dummy/log/sidekiq.log
143
+ - test/dummy/bin/bundle
144
+ - test/dummy/bin/update
145
+ - test/dummy/bin/rails
146
+ - test/dummy/bin/rake
147
+ - test/dummy/bin/setup
148
+ - test/javascripts/google_tag_manager_spec.js
149
+ - test/javascripts/fixtures/payloads.js
150
+ - test/javascripts/spec_helper.js
151
+ - test/teaspoon_env.rb