spree_piwik 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +14 -0
  3. data/.hound.yml +2 -0
  4. data/.rspec +1 -0
  5. data/.travis.yml +4 -0
  6. data/Gemfile +7 -0
  7. data/README.md +41 -0
  8. data/Rakefile +21 -0
  9. data/app/assets/javascripts/spree/backend/spree_piwik.js +2 -0
  10. data/app/assets/javascripts/spree/frontend/spree_piwik.js +2 -0
  11. data/app/assets/stylesheets/spree/backend/spree_piwik.css +4 -0
  12. data/app/assets/stylesheets/spree/frontend/spree_piwik.css +4 -0
  13. data/app/helpers/spree/base_helper_decorator.rb +5 -0
  14. data/app/models/spree/piwik/client.rb +29 -0
  15. data/app/models/spree/piwik/line_item.rb +44 -0
  16. data/app/models/spree/piwik_configuration.rb +4 -0
  17. data/app/overrides/add_piwik_tracking_tag_to_layout.rb +5 -0
  18. data/app/views/spree/_ecommerce_item.html.erb +7 -0
  19. data/app/views/spree/_ecommerce_view.html.erb +6 -0
  20. data/app/views/spree/_piwik.html.erb +19 -0
  21. data/bin/rails +7 -0
  22. data/config/.jshint.json +3 -0
  23. data/config/locales/en.yml +5 -0
  24. data/config/routes.rb +3 -0
  25. data/config/spring.rb +1 -0
  26. data/lib/generators/spree_piwik/install/install_generator.rb +32 -0
  27. data/lib/spree/piwik/engine.rb +32 -0
  28. data/lib/spree_piwik.rb +2 -0
  29. data/spec/features/interact_with_cart_spec.rb +49 -0
  30. data/spec/features/visit_home_pages_spec.rb +21 -0
  31. data/spec/features/visit_product_page_spec.rb +45 -0
  32. data/spec/fixtures/empty_cart.js +9 -0
  33. data/spec/fixtures/index_example_com.js +8 -0
  34. data/spec/fixtures/multiple_products_in_cart.js +23 -0
  35. data/spec/fixtures/one_product_in_cart.js +16 -0
  36. data/spec/fixtures/product_example_com.js +14 -0
  37. data/spec/fixtures/product_with_categories.js +14 -0
  38. data/spec/helpers/spree/base_helper_decorator_spec.rb +35 -0
  39. data/spec/models/spree/piwik/client_spec.rb +71 -0
  40. data/spec/models/spree/piwik/line_item_spec.rb +59 -0
  41. data/spec/models/spree/piwik_configuration_spec.rb +11 -0
  42. data/spec/overrides/add_piwik_tracking_tag_to_layout_spec.rb +20 -0
  43. data/spec/spec_helper.rb +96 -0
  44. data/spec/support/components/piwig_tag_component.rb +37 -0
  45. data/spec/support/helpers/fixture_helpers.rb +11 -0
  46. data/spree_piwik.gemspec +35 -0
  47. metadata +370 -0
metadata ADDED
@@ -0,0 +1,370 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_piwik
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Bèr Kessels
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: spree_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 2.3.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 2.3.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: therubyracer
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coffee-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: database_cleaner
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_girl
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '4.5'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '4.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: ffaker
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '3.1'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '3.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: spring-commands-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rkelly-remix
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: launchy
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sass-rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 4.0.2
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: 4.0.2
181
+ - !ruby/object:Gem::Dependency
182
+ name: selenium-webdriver
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: simplecov
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ! '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sqlite3
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ! '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: ! 'SpreePiwik
224
+
225
+ ==========
226
+
227
+
228
+ Adds piwik tracking with Ecommerce tracking
229
+
230
+
231
+ Status
232
+
233
+ ------
234
+
235
+
236
+ [![Build Status](https://travis-ci.org/berkes/spree_piwik.svg?branch=develop)](https://travis-ci.org/berkes/spree_piwik)
237
+
238
+ [![Code Climate](https://codeclimate.com/github/berkes/spree_piwik/badges/gpa.svg)](https://codeclimate.com/github/berkes/spree_piwik)
239
+
240
+
241
+ Installation
242
+
243
+ ------------
244
+
245
+
246
+ Add spree_piwik to your Gemfile:
247
+
248
+
249
+ ```ruby
250
+
251
+ gem ''spree_piwik''
252
+
253
+ ```
254
+
255
+
256
+ Bundle your dependencies and run the installation generator:
257
+
258
+
259
+ ```shell
260
+
261
+ bundle
262
+
263
+ bundle exec rails g spree_piwik:install
264
+
265
+ ```
266
+
267
+
268
+ Testing
269
+
270
+ -------
271
+
272
+
273
+ First bundle your dependencies, then run `rake`. `rake` will default to building
274
+ the dummy app if it does not exist, then it will run specs. The dummy app can be
275
+ regenerated by using `rake test_app`.
276
+
277
+
278
+ ```shell
279
+
280
+ bundle
281
+
282
+ bundle exec rake
283
+
284
+ ```
285
+
286
+
287
+ When testing your applications integration with this extension you may use it''s
288
+ factories.
289
+
290
+ Simply add this require statement to your spec_helper:
291
+
292
+
293
+ Copyright (c) 2015 Bèr Kessels
294
+
295
+ '
296
+ email: ber@berk.es
297
+ executables: []
298
+ extensions: []
299
+ extra_rdoc_files: []
300
+ files:
301
+ - .gitignore
302
+ - .hound.yml
303
+ - .rspec
304
+ - .travis.yml
305
+ - Gemfile
306
+ - README.md
307
+ - Rakefile
308
+ - app/assets/javascripts/spree/backend/spree_piwik.js
309
+ - app/assets/javascripts/spree/frontend/spree_piwik.js
310
+ - app/assets/stylesheets/spree/backend/spree_piwik.css
311
+ - app/assets/stylesheets/spree/frontend/spree_piwik.css
312
+ - app/helpers/spree/base_helper_decorator.rb
313
+ - app/models/spree/piwik/client.rb
314
+ - app/models/spree/piwik/line_item.rb
315
+ - app/models/spree/piwik_configuration.rb
316
+ - app/overrides/add_piwik_tracking_tag_to_layout.rb
317
+ - app/views/spree/_ecommerce_item.html.erb
318
+ - app/views/spree/_ecommerce_view.html.erb
319
+ - app/views/spree/_piwik.html.erb
320
+ - bin/rails
321
+ - config/.jshint.json
322
+ - config/locales/en.yml
323
+ - config/routes.rb
324
+ - config/spring.rb
325
+ - lib/generators/spree_piwik/install/install_generator.rb
326
+ - lib/spree/piwik/engine.rb
327
+ - lib/spree_piwik.rb
328
+ - spec/features/interact_with_cart_spec.rb
329
+ - spec/features/visit_home_pages_spec.rb
330
+ - spec/features/visit_product_page_spec.rb
331
+ - spec/fixtures/empty_cart.js
332
+ - spec/fixtures/index_example_com.js
333
+ - spec/fixtures/multiple_products_in_cart.js
334
+ - spec/fixtures/one_product_in_cart.js
335
+ - spec/fixtures/product_example_com.js
336
+ - spec/fixtures/product_with_categories.js
337
+ - spec/helpers/spree/base_helper_decorator_spec.rb
338
+ - spec/models/spree/piwik/client_spec.rb
339
+ - spec/models/spree/piwik/line_item_spec.rb
340
+ - spec/models/spree/piwik_configuration_spec.rb
341
+ - spec/overrides/add_piwik_tracking_tag_to_layout_spec.rb
342
+ - spec/spec_helper.rb
343
+ - spec/support/components/piwig_tag_component.rb
344
+ - spec/support/helpers/fixture_helpers.rb
345
+ - spree_piwik.gemspec
346
+ homepage: http://berk.es
347
+ licenses: []
348
+ metadata: {}
349
+ post_install_message:
350
+ rdoc_options: []
351
+ require_paths:
352
+ - lib
353
+ required_ruby_version: !ruby/object:Gem::Requirement
354
+ requirements:
355
+ - - ! '>='
356
+ - !ruby/object:Gem::Version
357
+ version: 1.9.3
358
+ required_rubygems_version: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - ! '>='
361
+ - !ruby/object:Gem::Version
362
+ version: '0'
363
+ requirements:
364
+ - none
365
+ rubyforge_project:
366
+ rubygems_version: 2.4.5
367
+ signing_key:
368
+ specification_version: 4
369
+ summary: Adds piwik tracking with Ecommerce tracking
370
+ test_files: []