spree_analytics_trackers 1.1.0 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +30 -36
- data/Appraisals +3 -16
- data/LICENSE +1 -1
- data/README.md +7 -3
- data/app/assets/javascripts/spree/frontend/add_to_cart_analytics.js +46 -0
- data/app/controllers/spree_analytics_trackers/store_controller_decorator.rb +6 -3
- data/app/helpers/spree/trackers_helper.rb +58 -20
- data/app/overrides/add_cart_viewed_to_orders_edit.rb +1 -1
- data/app/overrides/add_checkout_step_viewed_to_checkout_edit.rb +11 -3
- data/app/overrides/add_google_analytics_page_view_to_spree_application.rb +18 -0
- data/app/overrides/add_google_analytics_to_spree_application.rb +11 -3
- data/app/overrides/add_google_purchase_to_orders_show.rb +1 -1
- data/app/overrides/add_product_list_filtered_to_taxons_show.rb +1 -1
- data/app/overrides/add_product_list_viewed_to_products_list.rb +1 -1
- data/app/overrides/add_product_viewed_to_products_show.rb +2 -2
- data/app/overrides/add_products_searched_to_products_list.rb +2 -2
- data/app/overrides/add_segment_initializer_to_layout.rb +10 -2
- data/app/overrides/add_segment_page_viewed_to_layout.rb +18 -0
- data/app/presenters/spree_analytics_trackers/base_presenter.rb +14 -0
- data/app/presenters/spree_analytics_trackers/segment/order_presenter.rb +32 -0
- data/app/presenters/spree_analytics_trackers/segment/product_presenter.rb +40 -0
- data/app/views/spree/shared/trackers/google_analytics/_checkout_step_viewed.js.erb +21 -0
- data/app/views/spree/shared/trackers/google_analytics/_initializer.js.erb +11 -0
- data/app/views/spree/shared/trackers/google_analytics/_page_viewed.js.erb +13 -0
- data/app/views/spree/shared/trackers/google_analytics/_purchase.js.erb +19 -0
- data/app/views/spree/shared/trackers/segment/_cart_viewed.js.erb +21 -21
- data/app/views/spree/shared/trackers/segment/_checkout_step_viewed.js.erb +14 -12
- data/app/views/spree/shared/trackers/segment/_initializer.js.erb +1 -2
- data/app/views/spree/shared/trackers/segment/_order_complete.js.erb +3 -43
- data/app/views/spree/shared/trackers/segment/_page_viewed.js.erb +7 -0
- data/app/views/spree/shared/trackers/segment/_product_list_filtered.js.erb +7 -18
- data/app/views/spree/shared/trackers/segment/_product_list_viewed.js.erb +16 -21
- data/app/views/spree/shared/trackers/segment/_product_viewed.js.erb +10 -6
- data/app/views/spree/shared/trackers/segment/_products_searched.js.erb +1 -1
- data/config/locales/en.yml +0 -2
- data/config/locales/zh-TW.yml +19 -0
- data/gemfiles/{spree_3_5.gemfile → spree_4_1.gemfile} +2 -2
- data/gemfiles/spree_master.gemfile +0 -1
- data/lib/generators/spree_analytics_trackers/install/install_generator.rb +7 -0
- data/lib/spree_analytics_trackers.rb +1 -0
- data/lib/spree_analytics_trackers/version.rb +4 -3
- data/spec/features/admin/configuration/analytics_tracker_spec.rb +3 -1
- data/spec/features/products_spec.rb +315 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb +34 -0
- data/spec/spec_helper.rb +7 -82
- data/spec/support/custom_products.rb +26 -0
- data/spree_analytics_trackers.gemspec +3 -17
- metadata +36 -220
- data/app/overrides/add_google_checkout_to_checkout_edit.rb +0 -9
- data/app/overrides/add_product_added_to_orders_edit.rb +0 -10
- data/app/views/spree/shared/_google_add_items.html.erb +0 -13
- data/app/views/spree/shared/_google_analytics.html.erb +0 -18
- data/app/views/spree/shared/_google_checkout.html.erb +0 -14
- data/app/views/spree/shared/_google_purchase.html.erb +0 -19
- data/app/views/spree/shared/trackers/segment/_product_added.js.erb +0 -9
- data/gemfiles/spree_3_7.gemfile +0 -10
- data/gemfiles/spree_4_0.gemfile +0 -9
data/spec/spec_helper.rb
CHANGED
@@ -1,93 +1,18 @@
|
|
1
|
-
# Run Coverage report
|
2
|
-
require 'simplecov'
|
3
|
-
SimpleCov.start do
|
4
|
-
add_filter 'spec/dummy'
|
5
|
-
add_group 'Controllers', 'app/controllers'
|
6
|
-
add_group 'Helpers', 'app/helpers'
|
7
|
-
add_group 'Mailers', 'app/mailers'
|
8
|
-
add_group 'Models', 'app/models'
|
9
|
-
add_group 'Views', 'app/views'
|
10
|
-
add_group 'Libraries', 'lib'
|
11
|
-
end
|
12
|
-
|
13
1
|
# Configure Rails Environment
|
14
2
|
ENV['RAILS_ENV'] = 'test'
|
15
3
|
|
16
|
-
require File.expand_path('../dummy/config/environment.rb',
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
17
5
|
|
18
|
-
require 'rspec/
|
19
|
-
require 'database_cleaner'
|
20
|
-
require 'ffaker'
|
6
|
+
require 'spree_dev_tools/rspec/spec_helper'
|
21
7
|
|
22
8
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
23
9
|
# in spec/support/ and its subdirectories.
|
24
|
-
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
25
|
-
|
26
|
-
# Requires factories and other useful helpers defined in spree_core.
|
27
|
-
require 'spree/testing_support/authorization_helpers'
|
28
|
-
require 'spree/testing_support/capybara_ext'
|
29
|
-
require 'spree/testing_support/controller_requests'
|
30
|
-
require 'spree/testing_support/factories'
|
31
|
-
require 'spree/testing_support/url_helpers'
|
10
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].sort.each { |f| require f }
|
32
11
|
|
33
|
-
# Requires factories defined in lib/spree_analytics_trackers/factories.rb
|
34
12
|
require 'spree_analytics_trackers/factories'
|
35
13
|
|
36
|
-
|
37
|
-
config.include FactoryBot::Syntax::Methods
|
38
|
-
|
39
|
-
# Infer an example group's spec type from the file location.
|
40
|
-
config.infer_spec_type_from_file_location!
|
41
|
-
|
42
|
-
# == URL Helpers
|
43
|
-
#
|
44
|
-
# Allows access to Spree's routes in specs:
|
45
|
-
#
|
46
|
-
# visit spree.admin_path
|
47
|
-
# current_path.should eql(spree.products_path)
|
48
|
-
config.include Spree::TestingSupport::UrlHelpers
|
49
|
-
|
50
|
-
# == Requests support
|
51
|
-
#
|
52
|
-
# Adds convenient methods to request Spree's controllers
|
53
|
-
# spree_get :index
|
54
|
-
config.include Spree::TestingSupport::ControllerRequests, type: :controller
|
55
|
-
|
56
|
-
# == Mock Framework
|
57
|
-
#
|
58
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
59
|
-
#
|
60
|
-
# config.mock_with :mocha
|
61
|
-
# config.mock_with :flexmock
|
62
|
-
# config.mock_with :rr
|
63
|
-
config.mock_with :rspec
|
64
|
-
config.color = true
|
14
|
+
require 'spree/testing_support/image_helpers'
|
65
15
|
|
66
|
-
|
67
|
-
config.
|
68
|
-
|
69
|
-
# Capybara javascript drivers require transactional fixtures set to false, and we use DatabaseCleaner
|
70
|
-
# to cleanup after each test instead. Without transactional fixtures set to false the records created
|
71
|
-
# to setup a test will be unavailable to the browser, which runs under a separate server instance.
|
72
|
-
config.use_transactional_fixtures = false
|
73
|
-
|
74
|
-
# Ensure Suite is set to use transactions for speed.
|
75
|
-
config.before :suite do
|
76
|
-
DatabaseCleaner.strategy = :transaction
|
77
|
-
DatabaseCleaner.clean_with :truncation
|
78
|
-
end
|
79
|
-
|
80
|
-
# Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
|
81
|
-
config.before :each do
|
82
|
-
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
83
|
-
DatabaseCleaner.start
|
84
|
-
end
|
85
|
-
|
86
|
-
# After each spec clean the database.
|
87
|
-
config.after :each do
|
88
|
-
DatabaseCleaner.clean
|
89
|
-
end
|
90
|
-
|
91
|
-
config.fail_fast = ENV['FAIL_FAST'] || false
|
92
|
-
config.order = "random"
|
93
|
-
end
|
16
|
+
RSpec.configure do |config|
|
17
|
+
config.include Spree::TestingSupport::ImageHelpers
|
18
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
shared_context 'custom products' do
|
2
|
+
before do
|
3
|
+
taxonomy = FactoryBot.create(:taxonomy, name: 'Categories')
|
4
|
+
root = taxonomy.root
|
5
|
+
clothing_taxon = FactoryBot.create(:taxon, name: 'Clothing', parent_id: root.id)
|
6
|
+
trending_taxon = FactoryBot.create(:taxon, name: 'Trending')
|
7
|
+
bags_taxon = FactoryBot.create(:taxon, name: 'Bags', parent_id: root.id)
|
8
|
+
mugs_taxon = FactoryBot.create(:taxon, name: 'Mugs', parent_id: root.id)
|
9
|
+
|
10
|
+
taxonomy = FactoryBot.create(:taxonomy, name: 'Brands')
|
11
|
+
root = taxonomy.root
|
12
|
+
apache_taxon = FactoryBot.create(:taxon, name: 'Apache', parent_id: root.id)
|
13
|
+
rails_taxon = FactoryBot.create(:taxon, name: 'Ruby on Rails', parent_id: root.id)
|
14
|
+
ruby_taxon = FactoryBot.create(:taxon, name: 'Ruby', parent_id: root.id)
|
15
|
+
|
16
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Ringer T-Shirt', price: '159.99', taxons: [rails_taxon, clothing_taxon])
|
17
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Mug', price: '55.99', taxons: [rails_taxon, mugs_taxon, trending_taxon])
|
18
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Tote', price: '55.99', taxons: [rails_taxon, bags_taxon, trending_taxon])
|
19
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Bag', price: '102.99', taxons: [rails_taxon, bags_taxon])
|
20
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Baseball Jersey', price: '190.99', taxons: [rails_taxon, clothing_taxon])
|
21
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Stein', price: '156.99', taxons: [rails_taxon, mugs_taxon])
|
22
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Jr. Spaghetti', price: '190.99', taxons: [rails_taxon, clothing_taxon])
|
23
|
+
FactoryBot.create(:custom_product, name: 'Ruby Baseball Jersey', price: '250.99', taxons: [ruby_taxon, clothing_taxon])
|
24
|
+
FactoryBot.create(:custom_product, name: 'Apache Baseball Jersey', price: '250.99', taxons: [apache_taxon, clothing_taxon])
|
25
|
+
end
|
26
|
+
end
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.version = SpreeAnalyticsTrackers.version
|
10
10
|
s.summary = 'Adds analytics trackers functionality to Spree'
|
11
11
|
s.description = 'Supports Google Analytics '
|
12
|
-
s.required_ruby_version = '>= 2.
|
12
|
+
s.required_ruby_version = '>= 2.5.0'
|
13
13
|
|
14
14
|
s.author = 'Spark Solutions'
|
15
15
|
s.email = 'we@sparksolutions.co'
|
@@ -21,25 +21,11 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.require_path = 'lib'
|
22
22
|
s.requirements << 'none'
|
23
23
|
|
24
|
-
spree_version = '>=
|
24
|
+
spree_version = '>= 4.1.0', '< 5.0'
|
25
25
|
s.add_dependency 'spree_core', spree_version
|
26
26
|
s.add_dependency 'spree_backend', spree_version
|
27
27
|
s.add_dependency 'spree_extension'
|
28
28
|
s.add_dependency 'deface', '~> 1.0'
|
29
29
|
|
30
|
-
s.add_development_dependency '
|
31
|
-
s.add_development_dependency 'capybara'
|
32
|
-
s.add_development_dependency 'capybara-screenshot'
|
33
|
-
s.add_development_dependency 'chromedriver-helper'
|
34
|
-
s.add_development_dependency 'coffee-rails'
|
35
|
-
s.add_development_dependency 'database_cleaner'
|
36
|
-
s.add_development_dependency 'factory_bot', '~> 4.7'
|
37
|
-
s.add_development_dependency 'ffaker'
|
38
|
-
s.add_development_dependency 'mysql2'
|
39
|
-
s.add_development_dependency 'pg'
|
40
|
-
s.add_development_dependency 'rspec-rails'
|
41
|
-
s.add_development_dependency 'sass-rails'
|
42
|
-
s.add_development_dependency 'selenium-webdriver'
|
43
|
-
s.add_development_dependency 'simplecov'
|
44
|
-
s.add_development_dependency 'sqlite3'
|
30
|
+
s.add_development_dependency 'spree_dev_tools'
|
45
31
|
end
|
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:
|
4
|
+
version: 2.0.0.rc1
|
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:
|
11
|
+
date: 2020-07-21 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:
|
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:
|
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:
|
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:
|
49
|
+
version: 4.1.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '5.0'
|
@@ -79,203 +79,7 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '1.0'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
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
|
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: capybara-screenshot
|
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: chromedriver-helper
|
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: coffee-rails
|
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: database_cleaner
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - ">="
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
|
-
type: :development
|
159
|
-
prerelease: false
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - ">="
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '0'
|
165
|
-
- !ruby/object:Gem::Dependency
|
166
|
-
name: factory_bot
|
167
|
-
requirement: !ruby/object:Gem::Requirement
|
168
|
-
requirements:
|
169
|
-
- - "~>"
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version: '4.7'
|
172
|
-
type: :development
|
173
|
-
prerelease: false
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '4.7'
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
name: ffaker
|
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: mysql2
|
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: pg
|
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: rspec-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: sass-rails
|
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: selenium-webdriver
|
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'
|
263
|
-
- !ruby/object:Gem::Dependency
|
264
|
-
name: simplecov
|
265
|
-
requirement: !ruby/object:Gem::Requirement
|
266
|
-
requirements:
|
267
|
-
- - ">="
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
version: '0'
|
270
|
-
type: :development
|
271
|
-
prerelease: false
|
272
|
-
version_requirements: !ruby/object:Gem::Requirement
|
273
|
-
requirements:
|
274
|
-
- - ">="
|
275
|
-
- !ruby/object:Gem::Version
|
276
|
-
version: '0'
|
277
|
-
- !ruby/object:Gem::Dependency
|
278
|
-
name: sqlite3
|
82
|
+
name: spree_dev_tools
|
279
83
|
requirement: !ruby/object:Gem::Requirement
|
280
84
|
requirements:
|
281
85
|
- - ">="
|
@@ -296,12 +100,14 @@ extra_rdoc_files: []
|
|
296
100
|
files:
|
297
101
|
- ".gitignore"
|
298
102
|
- ".rspec"
|
103
|
+
- ".rubocop.yml"
|
299
104
|
- ".travis.yml"
|
300
105
|
- Appraisals
|
301
106
|
- Gemfile
|
302
107
|
- LICENSE
|
303
108
|
- README.md
|
304
109
|
- Rakefile
|
110
|
+
- app/assets/javascripts/spree/frontend/add_to_cart_analytics.js
|
305
111
|
- app/controllers/spree/admin/trackers_controller.rb
|
306
112
|
- app/controllers/spree_analytics_trackers/store_controller_decorator.rb
|
307
113
|
- app/helpers/spree/trackers_helper.rb
|
@@ -310,42 +116,44 @@ files:
|
|
310
116
|
- app/overrides/add_analytics_to_admin_sidebar.rb
|
311
117
|
- app/overrides/add_cart_viewed_to_orders_edit.rb
|
312
118
|
- app/overrides/add_checkout_step_viewed_to_checkout_edit.rb
|
119
|
+
- app/overrides/add_google_analytics_page_view_to_spree_application.rb
|
313
120
|
- app/overrides/add_google_analytics_to_spree_application.rb
|
314
|
-
- app/overrides/add_google_checkout_to_checkout_edit.rb
|
315
121
|
- app/overrides/add_google_purchase_to_orders_show.rb
|
316
122
|
- app/overrides/add_order_complete_to_orders_show.rb
|
317
|
-
- app/overrides/add_product_added_to_orders_edit.rb
|
318
123
|
- app/overrides/add_product_list_filtered_to_taxons_show.rb
|
319
124
|
- app/overrides/add_product_list_viewed_to_products_list.rb
|
320
125
|
- app/overrides/add_product_viewed_to_products_show.rb
|
321
126
|
- app/overrides/add_products_searched_to_products_list.rb
|
322
127
|
- app/overrides/add_segment_initializer_to_layout.rb
|
128
|
+
- app/overrides/add_segment_page_viewed_to_layout.rb
|
129
|
+
- app/presenters/spree_analytics_trackers/base_presenter.rb
|
130
|
+
- app/presenters/spree_analytics_trackers/segment/order_presenter.rb
|
131
|
+
- app/presenters/spree_analytics_trackers/segment/product_presenter.rb
|
323
132
|
- app/views/spree/admin/shared/_analytics_sidebar_menu.html.erb
|
324
133
|
- app/views/spree/admin/trackers/_form.html.erb
|
325
134
|
- app/views/spree/admin/trackers/edit.html.erb
|
326
135
|
- app/views/spree/admin/trackers/index.html.erb
|
327
136
|
- app/views/spree/admin/trackers/new.html.erb
|
328
|
-
- app/views/spree/shared/
|
329
|
-
- app/views/spree/shared/
|
330
|
-
- app/views/spree/shared/
|
331
|
-
- app/views/spree/shared/
|
137
|
+
- app/views/spree/shared/trackers/google_analytics/_checkout_step_viewed.js.erb
|
138
|
+
- app/views/spree/shared/trackers/google_analytics/_initializer.js.erb
|
139
|
+
- app/views/spree/shared/trackers/google_analytics/_page_viewed.js.erb
|
140
|
+
- app/views/spree/shared/trackers/google_analytics/_purchase.js.erb
|
332
141
|
- app/views/spree/shared/trackers/segment/_cart_viewed.js.erb
|
333
142
|
- app/views/spree/shared/trackers/segment/_checkout_step_viewed.js.erb
|
334
143
|
- app/views/spree/shared/trackers/segment/_initializer.js.erb
|
335
144
|
- app/views/spree/shared/trackers/segment/_order_complete.js.erb
|
336
|
-
- app/views/spree/shared/trackers/segment/
|
145
|
+
- app/views/spree/shared/trackers/segment/_page_viewed.js.erb
|
337
146
|
- app/views/spree/shared/trackers/segment/_product_list_filtered.js.erb
|
338
147
|
- app/views/spree/shared/trackers/segment/_product_list_viewed.js.erb
|
339
148
|
- app/views/spree/shared/trackers/segment/_product_viewed.js.erb
|
340
149
|
- app/views/spree/shared/trackers/segment/_products_searched.js.erb
|
341
150
|
- bin/rails
|
342
151
|
- config/locales/en.yml
|
152
|
+
- config/locales/zh-TW.yml
|
343
153
|
- config/routes.rb
|
344
154
|
- db/migrate/20171013160337_create_spree_trackers.rb
|
345
155
|
- gemfiles/.bundle/config
|
346
|
-
- gemfiles/
|
347
|
-
- gemfiles/spree_3_7.gemfile
|
348
|
-
- gemfiles/spree_4_0.gemfile
|
156
|
+
- gemfiles/spree_4_1.gemfile
|
349
157
|
- gemfiles/spree_master.gemfile
|
350
158
|
- lib/generators/spree_analytics_trackers/install/install_generator.rb
|
351
159
|
- lib/spree_analytics_trackers.rb
|
@@ -353,14 +161,18 @@ files:
|
|
353
161
|
- lib/spree_analytics_trackers/factories.rb
|
354
162
|
- lib/spree_analytics_trackers/version.rb
|
355
163
|
- spec/features/admin/configuration/analytics_tracker_spec.rb
|
164
|
+
- spec/features/products_spec.rb
|
165
|
+
- spec/fixtures/thinking-cat.jpg
|
356
166
|
- spec/models/spree/tracker_spec.rb
|
167
|
+
- spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb
|
357
168
|
- spec/spec_helper.rb
|
169
|
+
- spec/support/custom_products.rb
|
358
170
|
- spree_analytics_trackers.gemspec
|
359
171
|
homepage: https://github.com/spree-contrib/spree_analytics_trackers
|
360
172
|
licenses:
|
361
173
|
- BSD-3-Clause
|
362
174
|
metadata: {}
|
363
|
-
post_install_message:
|
175
|
+
post_install_message:
|
364
176
|
rdoc_options: []
|
365
177
|
require_paths:
|
366
178
|
- lib
|
@@ -368,19 +180,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
368
180
|
requirements:
|
369
181
|
- - ">="
|
370
182
|
- !ruby/object:Gem::Version
|
371
|
-
version: 2.
|
183
|
+
version: 2.5.0
|
372
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
373
185
|
requirements:
|
374
|
-
- - "
|
186
|
+
- - ">"
|
375
187
|
- !ruby/object:Gem::Version
|
376
|
-
version:
|
188
|
+
version: 1.3.1
|
377
189
|
requirements:
|
378
190
|
- none
|
379
|
-
rubygems_version: 3.
|
380
|
-
signing_key:
|
191
|
+
rubygems_version: 3.1.2
|
192
|
+
signing_key:
|
381
193
|
specification_version: 4
|
382
194
|
summary: Adds analytics trackers functionality to Spree
|
383
195
|
test_files:
|
384
196
|
- spec/features/admin/configuration/analytics_tracker_spec.rb
|
197
|
+
- spec/features/products_spec.rb
|
198
|
+
- spec/fixtures/thinking-cat.jpg
|
385
199
|
- spec/models/spree/tracker_spec.rb
|
200
|
+
- spec/presenters/spree_analytics_trackers/segment/order_presenter_spec.rb
|
386
201
|
- spec/spec_helper.rb
|
202
|
+
- spec/support/custom_products.rb
|