spree_analytics_trackers 1.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.bundle/config +2 -0
  3. data/.gitignore +21 -0
  4. data/.rspec +3 -0
  5. data/.rubocop.yml +2 -0
  6. data/.travis.yml +44 -0
  7. data/Appraisals +11 -0
  8. data/Gemfile +7 -0
  9. data/LICENSE +26 -0
  10. data/README.md +77 -0
  11. data/Rakefile +21 -0
  12. data/app/assets/javascripts/spree/frontend/add_to_cart_analytics.js +50 -0
  13. data/app/assets/javascripts/spree/frontend/remove_from_cart_analytics.js +34 -0
  14. data/app/controllers/spree/admin/trackers_controller.rb +14 -0
  15. data/app/controllers/spree_analytics_trackers/store_controller_decorator.rb +14 -0
  16. data/app/helpers/spree/trackers_helper.rb +86 -0
  17. data/app/models/spree/tracker.rb +31 -0
  18. data/app/models/spree_analytics_trackers/user_decorator.rb +9 -0
  19. data/app/overrides/add_analytics_to_admin_sidebar.rb +8 -0
  20. data/app/overrides/add_cart_viewed_to_orders_edit.rb +10 -0
  21. data/app/overrides/add_checkout_step_viewed_to_checkout_edit.rb +18 -0
  22. data/app/overrides/add_google_analytics_page_view_to_spree_application.rb +10 -0
  23. data/app/overrides/add_google_analytics_to_spree_application.rb +9 -0
  24. data/app/overrides/add_google_purchase_to_orders_show.rb +9 -0
  25. data/app/overrides/add_order_complete_to_orders_show.rb +10 -0
  26. data/app/overrides/add_product_list_filtered_to_taxons_show.rb +10 -0
  27. data/app/overrides/add_product_list_viewed_to_products_list.rb +10 -0
  28. data/app/overrides/add_product_viewed_to_products_show.rb +10 -0
  29. data/app/overrides/add_products_searched_to_products_list.rb +10 -0
  30. data/app/overrides/add_segment_initializer_to_layout.rb +10 -0
  31. data/app/overrides/add_segment_page_viewed_to_layout.rb +10 -0
  32. data/app/presenters/spree_analytics_trackers/base_presenter.rb +14 -0
  33. data/app/presenters/spree_analytics_trackers/segment/order_presenter.rb +32 -0
  34. data/app/presenters/spree_analytics_trackers/segment/product_presenter.rb +40 -0
  35. data/app/views/spree/admin/shared/_analytics_sidebar_menu.html.erb +3 -0
  36. data/app/views/spree/admin/trackers/_form.html.erb +42 -0
  37. data/app/views/spree/admin/trackers/edit.html.erb +13 -0
  38. data/app/views/spree/admin/trackers/index.html.erb +42 -0
  39. data/app/views/spree/admin/trackers/new.html.erb +13 -0
  40. data/app/views/spree/shared/trackers/google_analytics/_checkout_step_viewed.js.erb +19 -0
  41. data/app/views/spree/shared/trackers/google_analytics/_initializer.js.erb +25 -0
  42. data/app/views/spree/shared/trackers/google_analytics/_page_viewed.js.erb +13 -0
  43. data/app/views/spree/shared/trackers/google_analytics/_purchase.js.erb +22 -0
  44. data/app/views/spree/shared/trackers/segment/_cart_viewed.js.erb +27 -0
  45. data/app/views/spree/shared/trackers/segment/_checkout_step_viewed.js.erb +21 -0
  46. data/app/views/spree/shared/trackers/segment/_initializer.js.erb +7 -0
  47. data/app/views/spree/shared/trackers/segment/_order_complete.js.erb +11 -0
  48. data/app/views/spree/shared/trackers/segment/_page_viewed.js.erb +7 -0
  49. data/app/views/spree/shared/trackers/segment/_product_list_filtered.js.erb +23 -0
  50. data/app/views/spree/shared/trackers/segment/_product_list_viewed.js.erb +19 -0
  51. data/app/views/spree/shared/trackers/segment/_product_viewed.js.erb +12 -0
  52. data/app/views/spree/shared/trackers/segment/_products_searched.js.erb +10 -0
  53. data/bin/rails +7 -0
  54. data/config/locales/en.yml +18 -0
  55. data/config/locales/zh-TW.yml +19 -0
  56. data/config/routes.rb +5 -0
  57. data/db/migrate/20171013160337_create_spree_trackers.rb +20 -0
  58. data/db/migrate/20200721163729_add_store_id_to_spree_trackers.rb +14 -0
  59. data/gemfiles/.bundle/config +2 -0
  60. data/gemfiles/spree_4_1.gemfile +9 -0
  61. data/gemfiles/spree_master.gemfile +9 -0
  62. data/lib/generators/spree_analytics_trackers/install/install_generator.rb +28 -0
  63. data/lib/spree_analytics_trackers.rb +5 -0
  64. data/lib/spree_analytics_trackers/engine.rb +20 -0
  65. data/lib/spree_analytics_trackers/factories.rb +10 -0
  66. data/lib/spree_analytics_trackers/version.rb +17 -0
  67. data/spec/features/admin/configuration/analytics_tracker_spec.rb +61 -0
  68. data/spec/features/products_spec.rb +315 -0
  69. data/spec/fixtures/thinking-cat.jpg +0 -0
  70. data/spec/models/spree/tracker_spec.rb +32 -0
  71. data/spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb +34 -0
  72. data/spec/spec_helper.rb +18 -0
  73. data/spec/support/custom_products.rb +26 -0
  74. data/spree_analytics_trackers.gemspec +31 -0
  75. metadata +98 -200
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_analytics_trackers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.0
19
+ version: 4.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 3.1.0
29
+ version: 4.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.1.0
39
+ version: 4.1.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '5.0'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 3.1.0
49
+ version: 4.1.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '5.0'
@@ -65,203 +65,21 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  - !ruby/object:Gem::Dependency
68
- name: appraisal
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- - !ruby/object:Gem::Dependency
82
- name: capybara
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- - !ruby/object:Gem::Dependency
96
- name: capybara-screenshot
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: '0'
109
- - !ruby/object:Gem::Dependency
110
- name: chromedriver-helper
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- version: '0'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: '0'
123
- - !ruby/object:Gem::Dependency
124
- name: coffee-rails
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: '0'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: '0'
137
- - !ruby/object:Gem::Dependency
138
- name: database_cleaner
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: '0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
- - !ruby/object:Gem::Dependency
152
- name: factory_bot
68
+ name: deface
153
69
  requirement: !ruby/object:Gem::Requirement
154
70
  requirements:
155
71
  - - "~>"
156
72
  - !ruby/object:Gem::Version
157
- version: '4.7'
158
- type: :development
73
+ version: '1.0'
74
+ type: :runtime
159
75
  prerelease: false
160
76
  version_requirements: !ruby/object:Gem::Requirement
161
77
  requirements:
162
78
  - - "~>"
163
79
  - !ruby/object:Gem::Version
164
- version: '4.7'
165
- - !ruby/object:Gem::Dependency
166
- name: ffaker
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- version: '0'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: '0'
179
- - !ruby/object:Gem::Dependency
180
- name: mysql2
181
- requirement: !ruby/object:Gem::Requirement
182
- requirements:
183
- - - ">="
184
- - !ruby/object:Gem::Version
185
- version: '0'
186
- type: :development
187
- prerelease: false
188
- version_requirements: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: '0'
193
- - !ruby/object:Gem::Dependency
194
- name: pg
195
- requirement: !ruby/object:Gem::Requirement
196
- requirements:
197
- - - ">="
198
- - !ruby/object:Gem::Version
199
- version: '0'
200
- type: :development
201
- prerelease: false
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: '0'
207
- - !ruby/object:Gem::Dependency
208
- name: rspec-rails
209
- requirement: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: '0'
214
- type: :development
215
- prerelease: false
216
- version_requirements: !ruby/object:Gem::Requirement
217
- requirements:
218
- - - ">="
219
- - !ruby/object:Gem::Version
220
- version: '0'
221
- - !ruby/object:Gem::Dependency
222
- name: sass-rails
223
- requirement: !ruby/object:Gem::Requirement
224
- requirements:
225
- - - ">="
226
- - !ruby/object:Gem::Version
227
- version: '0'
228
- type: :development
229
- prerelease: false
230
- version_requirements: !ruby/object:Gem::Requirement
231
- requirements:
232
- - - ">="
233
- - !ruby/object:Gem::Version
234
- version: '0'
235
- - !ruby/object:Gem::Dependency
236
- name: selenium-webdriver
237
- requirement: !ruby/object:Gem::Requirement
238
- requirements:
239
- - - ">="
240
- - !ruby/object:Gem::Version
241
- version: '0'
242
- type: :development
243
- prerelease: false
244
- version_requirements: !ruby/object:Gem::Requirement
245
- requirements:
246
- - - ">="
247
- - !ruby/object:Gem::Version
248
- version: '0'
249
- - !ruby/object:Gem::Dependency
250
- name: simplecov
251
- requirement: !ruby/object:Gem::Requirement
252
- requirements:
253
- - - ">="
254
- - !ruby/object:Gem::Version
255
- version: '0'
256
- type: :development
257
- prerelease: false
258
- version_requirements: !ruby/object:Gem::Requirement
259
- requirements:
260
- - - ">="
261
- - !ruby/object:Gem::Version
262
- version: '0'
80
+ version: '1.0'
263
81
  - !ruby/object:Gem::Dependency
264
- name: sqlite3
82
+ name: spree_dev_tools
265
83
  requirement: !ruby/object:Gem::Requirement
266
84
  requirements:
267
85
  - - ">="
@@ -279,12 +97,85 @@ email: we@sparksolutions.co
279
97
  executables: []
280
98
  extensions: []
281
99
  extra_rdoc_files: []
282
- files: []
100
+ files:
101
+ - ".bundle/config"
102
+ - ".gitignore"
103
+ - ".rspec"
104
+ - ".rubocop.yml"
105
+ - ".travis.yml"
106
+ - Appraisals
107
+ - Gemfile
108
+ - LICENSE
109
+ - README.md
110
+ - Rakefile
111
+ - app/assets/javascripts/spree/frontend/add_to_cart_analytics.js
112
+ - app/assets/javascripts/spree/frontend/remove_from_cart_analytics.js
113
+ - app/controllers/spree/admin/trackers_controller.rb
114
+ - app/controllers/spree_analytics_trackers/store_controller_decorator.rb
115
+ - app/helpers/spree/trackers_helper.rb
116
+ - app/models/spree/tracker.rb
117
+ - app/models/spree_analytics_trackers/user_decorator.rb
118
+ - app/overrides/add_analytics_to_admin_sidebar.rb
119
+ - app/overrides/add_cart_viewed_to_orders_edit.rb
120
+ - app/overrides/add_checkout_step_viewed_to_checkout_edit.rb
121
+ - app/overrides/add_google_analytics_page_view_to_spree_application.rb
122
+ - app/overrides/add_google_analytics_to_spree_application.rb
123
+ - app/overrides/add_google_purchase_to_orders_show.rb
124
+ - app/overrides/add_order_complete_to_orders_show.rb
125
+ - app/overrides/add_product_list_filtered_to_taxons_show.rb
126
+ - app/overrides/add_product_list_viewed_to_products_list.rb
127
+ - app/overrides/add_product_viewed_to_products_show.rb
128
+ - app/overrides/add_products_searched_to_products_list.rb
129
+ - app/overrides/add_segment_initializer_to_layout.rb
130
+ - app/overrides/add_segment_page_viewed_to_layout.rb
131
+ - app/presenters/spree_analytics_trackers/base_presenter.rb
132
+ - app/presenters/spree_analytics_trackers/segment/order_presenter.rb
133
+ - app/presenters/spree_analytics_trackers/segment/product_presenter.rb
134
+ - app/views/spree/admin/shared/_analytics_sidebar_menu.html.erb
135
+ - app/views/spree/admin/trackers/_form.html.erb
136
+ - app/views/spree/admin/trackers/edit.html.erb
137
+ - app/views/spree/admin/trackers/index.html.erb
138
+ - app/views/spree/admin/trackers/new.html.erb
139
+ - app/views/spree/shared/trackers/google_analytics/_checkout_step_viewed.js.erb
140
+ - app/views/spree/shared/trackers/google_analytics/_initializer.js.erb
141
+ - app/views/spree/shared/trackers/google_analytics/_page_viewed.js.erb
142
+ - app/views/spree/shared/trackers/google_analytics/_purchase.js.erb
143
+ - app/views/spree/shared/trackers/segment/_cart_viewed.js.erb
144
+ - app/views/spree/shared/trackers/segment/_checkout_step_viewed.js.erb
145
+ - app/views/spree/shared/trackers/segment/_initializer.js.erb
146
+ - app/views/spree/shared/trackers/segment/_order_complete.js.erb
147
+ - app/views/spree/shared/trackers/segment/_page_viewed.js.erb
148
+ - app/views/spree/shared/trackers/segment/_product_list_filtered.js.erb
149
+ - app/views/spree/shared/trackers/segment/_product_list_viewed.js.erb
150
+ - app/views/spree/shared/trackers/segment/_product_viewed.js.erb
151
+ - app/views/spree/shared/trackers/segment/_products_searched.js.erb
152
+ - bin/rails
153
+ - config/locales/en.yml
154
+ - config/locales/zh-TW.yml
155
+ - config/routes.rb
156
+ - db/migrate/20171013160337_create_spree_trackers.rb
157
+ - db/migrate/20200721163729_add_store_id_to_spree_trackers.rb
158
+ - gemfiles/.bundle/config
159
+ - gemfiles/spree_4_1.gemfile
160
+ - gemfiles/spree_master.gemfile
161
+ - lib/generators/spree_analytics_trackers/install/install_generator.rb
162
+ - lib/spree_analytics_trackers.rb
163
+ - lib/spree_analytics_trackers/engine.rb
164
+ - lib/spree_analytics_trackers/factories.rb
165
+ - lib/spree_analytics_trackers/version.rb
166
+ - spec/features/admin/configuration/analytics_tracker_spec.rb
167
+ - spec/features/products_spec.rb
168
+ - spec/fixtures/thinking-cat.jpg
169
+ - spec/models/spree/tracker_spec.rb
170
+ - spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb
171
+ - spec/spec_helper.rb
172
+ - spec/support/custom_products.rb
173
+ - spree_analytics_trackers.gemspec
283
174
  homepage: https://github.com/spree-contrib/spree_analytics_trackers
284
175
  licenses:
285
176
  - BSD-3-Clause
286
177
  metadata: {}
287
- post_install_message:
178
+ post_install_message:
288
179
  rdoc_options: []
289
180
  require_paths:
290
181
  - lib
@@ -292,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
183
  requirements:
293
184
  - - ">="
294
185
  - !ruby/object:Gem::Version
295
- version: 2.2.7
186
+ version: 2.5.0
296
187
  required_rubygems_version: !ruby/object:Gem::Requirement
297
188
  requirements:
298
189
  - - ">="
@@ -300,8 +191,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
191
  version: '0'
301
192
  requirements:
302
193
  - none
303
- rubygems_version: 3.0.2
304
- signing_key:
194
+ rubygems_version: 3.1.4
195
+ signing_key:
305
196
  specification_version: 4
306
197
  summary: Adds analytics trackers functionality to Spree
307
- test_files: []
198
+ test_files:
199
+ - spec/features/admin/configuration/analytics_tracker_spec.rb
200
+ - spec/features/products_spec.rb
201
+ - spec/fixtures/thinking-cat.jpg
202
+ - spec/models/spree/tracker_spec.rb
203
+ - spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb
204
+ - spec/spec_helper.rb
205
+ - spec/support/custom_products.rb