workarea-listrak 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +7 -0
  2. data/.eslintrc.json +36 -0
  3. data/.esvmrc +5 -0
  4. data/.gitignore +32 -0
  5. data/CHANGELOG.md +322 -0
  6. data/Gemfile +14 -0
  7. data/README.md +130 -0
  8. data/Rakefile +53 -0
  9. data/app/assets/javascripts/workarea/admin/modules/listrak/list_events_select.js +83 -0
  10. data/app/assets/javascripts/workarea/storefront/listrak/adapters/listrak_adapter.js +110 -0
  11. data/app/assets/javascripts/workarea/storefront/listrak/listrak_config.js.erb +13 -0
  12. data/app/assets/javascripts/workarea/storefront/listrak/modules/listrak.js +64 -0
  13. data/app/controllers/workarea/admin/listrak/configurations_controller.rb +30 -0
  14. data/app/controllers/workarea/admin/listrak/events_controller.rb +17 -0
  15. data/app/helpers/workarea/listrak/analytics/helper.rb +44 -0
  16. data/app/models/workarea/listrak/configuration.rb +19 -0
  17. data/app/queries/workarea/categorization.decorator +7 -0
  18. data/app/services/workarea/listrak/data_api/customers.rb +26 -0
  19. data/app/services/workarea/listrak/data_api/orders.rb +26 -0
  20. data/app/services/workarea/listrak/data_api/products.rb +26 -0
  21. data/app/services/workarea/listrak/data_api.rb +63 -0
  22. data/app/services/workarea/listrak/email_api/contacts.rb +73 -0
  23. data/app/services/workarea/listrak/email_api/events.rb +44 -0
  24. data/app/services/workarea/listrak/email_api/lists.rb +21 -0
  25. data/app/services/workarea/listrak/email_api/messages.rb +50 -0
  26. data/app/services/workarea/listrak/email_api/transactional_messages.rb +32 -0
  27. data/app/services/workarea/listrak/email_api.rb +71 -0
  28. data/app/services/workarea/listrak/models/address.rb +83 -0
  29. data/app/services/workarea/listrak/models/contact.rb +67 -0
  30. data/app/services/workarea/listrak/models/contact_form.rb +24 -0
  31. data/app/services/workarea/listrak/models/customer_form.rb +209 -0
  32. data/app/services/workarea/listrak/models/event.rb +45 -0
  33. data/app/services/workarea/listrak/models/event_form.rb +25 -0
  34. data/app/services/workarea/listrak/models/list.rb +204 -0
  35. data/app/services/workarea/listrak/models/message_form.rb +147 -0
  36. data/app/services/workarea/listrak/models/order_form.rb +352 -0
  37. data/app/services/workarea/listrak/models/order_item.rb +197 -0
  38. data/app/services/workarea/listrak/models/product_form.rb +369 -0
  39. data/app/services/workarea/listrak/models/transactional_message_form.rb +21 -0
  40. data/app/services/workarea/listrak/oauth.rb +45 -0
  41. data/app/services/workarea/listrak/transactional_message.rb +83 -0
  42. data/app/view_models/workarea/admin/listrak_configuration_view_model.rb +17 -0
  43. data/app/views/workarea/admin/listrak/configurations/edit.html.haml +28 -0
  44. data/app/views/workarea/admin/listrak/events/index.json.jbuilder +4 -0
  45. data/app/views/workarea/admin/shared/_listrak_configuration_link.html.haml +1 -0
  46. data/app/views/workarea/storefront/checkouts/_listrak.html.haml +2 -0
  47. data/app/workers/workarea/listrak/customer_exporter.rb +22 -0
  48. data/app/workers/workarea/listrak/order_exporter.rb +22 -0
  49. data/app/workers/workarea/listrak/product_exporter.rb +50 -0
  50. data/app/workers/workarea/listrak/subscribe_email_signup.rb +34 -0
  51. data/app/workers/workarea/listrak/unsubscribe_email_signup.rb +27 -0
  52. data/bin/rails +18 -0
  53. data/bin/rake +16 -0
  54. data/bin/rspec +16 -0
  55. data/bin/rubocop +16 -0
  56. data/config/initializers/append_points.rb +28 -0
  57. data/config/initializers/configuration.rb +8 -0
  58. data/config/locales/en.yml +17 -0
  59. data/config/routes.rb +10 -0
  60. data/docs/Listrak Technical Integration Guide.docx +0 -0
  61. data/lib/generators/workarea/listrak/message/USAGE +9 -0
  62. data/lib/generators/workarea/listrak/message/message_generator.rb +15 -0
  63. data/lib/generators/workarea/listrak/message/templates/message.rb.erb +24 -0
  64. data/lib/workarea/listrak/analytics.rb +17 -0
  65. data/lib/workarea/listrak/bogus_data_api/customers.rb +9 -0
  66. data/lib/workarea/listrak/bogus_data_api/orders.rb +9 -0
  67. data/lib/workarea/listrak/bogus_data_api/products.rb +9 -0
  68. data/lib/workarea/listrak/bogus_data_api/proxy_client.rb +29 -0
  69. data/lib/workarea/listrak/bogus_data_api.rb +46 -0
  70. data/lib/workarea/listrak/bogus_email_api/contacts.rb +8 -0
  71. data/lib/workarea/listrak/bogus_email_api/events.rb +23 -0
  72. data/lib/workarea/listrak/bogus_email_api/lists.rb +63 -0
  73. data/lib/workarea/listrak/bogus_email_api/proxy_client.rb +29 -0
  74. data/lib/workarea/listrak/bogus_email_api/transactional_messages.rb +9 -0
  75. data/lib/workarea/listrak/bogus_email_api.rb +51 -0
  76. data/lib/workarea/listrak/engine.rb +12 -0
  77. data/lib/workarea/listrak/error.rb +39 -0
  78. data/lib/workarea/listrak/version.rb +5 -0
  79. data/lib/workarea/listrak.rb +57 -0
  80. data/readme/listrak-admin.png +0 -0
  81. data/script/admin_ci +9 -0
  82. data/script/ci +11 -0
  83. data/script/core_ci +9 -0
  84. data/script/plugins_ci +9 -0
  85. data/script/storefront_ci +9 -0
  86. data/test/dummy/Rakefile +6 -0
  87. data/test/dummy/bin/bundle +3 -0
  88. data/test/dummy/bin/rails +4 -0
  89. data/test/dummy/bin/rake +4 -0
  90. data/test/dummy/bin/setup +34 -0
  91. data/test/dummy/bin/update +29 -0
  92. data/test/dummy/config/application.rb +18 -0
  93. data/test/dummy/config/boot.rb +5 -0
  94. data/test/dummy/config/cable.yml +9 -0
  95. data/test/dummy/config/environment.rb +5 -0
  96. data/test/dummy/config/environments/development.rb +54 -0
  97. data/test/dummy/config/environments/production.rb +86 -0
  98. data/test/dummy/config/environments/test.rb +43 -0
  99. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  100. data/test/dummy/config/initializers/assets.rb +11 -0
  101. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  102. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  103. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  104. data/test/dummy/config/initializers/inflections.rb +16 -0
  105. data/test/dummy/config/initializers/mime_types.rb +4 -0
  106. data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
  107. data/test/dummy/config/initializers/session_store.rb +3 -0
  108. data/test/dummy/config/initializers/workarea.rb +5 -0
  109. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  110. data/test/dummy/config/locales/en.yml +23 -0
  111. data/test/dummy/config/puma.rb +47 -0
  112. data/test/dummy/config/routes.rb +5 -0
  113. data/test/dummy/config/secrets.yml +38 -0
  114. data/test/dummy/config/spring.rb +6 -0
  115. data/test/dummy/config.ru +5 -0
  116. data/test/dummy/db/seeds.rb +2 -0
  117. data/test/dummy/public/404.html +67 -0
  118. data/test/dummy/public/422.html +67 -0
  119. data/test/dummy/public/500.html +66 -0
  120. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  121. data/test/dummy/public/apple-touch-icon.png +0 -0
  122. data/test/dummy/public/favicon.ico +0 -0
  123. data/test/factories/workarea/factories/listrak.rb +15 -0
  124. data/test/helpers/workarea/listrak/analytics/helper_test.rb +38 -0
  125. data/test/integration/workarea/admin/listrak/configuration_integration_test.rb +26 -0
  126. data/test/integration/workarea/admin/listrak/events_integration_test.rb +21 -0
  127. data/test/lib/generators/workarea/listrak/message_generator_test.rb +26 -0
  128. data/test/queries/workarea/categorization_test.decorator +15 -0
  129. data/test/services/workarea/listrak/data_api/customers_test.rb +35 -0
  130. data/test/services/workarea/listrak/data_api/orders_test.rb +24 -0
  131. data/test/services/workarea/listrak/data_api/products_test.rb +27 -0
  132. data/test/services/workarea/listrak/email_api/contacts_test.rb +55 -0
  133. data/test/services/workarea/listrak/email_api/events_test.rb +51 -0
  134. data/test/services/workarea/listrak/email_api/lists_test.rb +45 -0
  135. data/test/services/workarea/listrak/email_api/messages_test.rb +28 -0
  136. data/test/services/workarea/listrak/email_api/transactional_messages_test.rb +50 -0
  137. data/test/services/workarea/listrak/oauth_test.rb +27 -0
  138. data/test/services/workarea/listrak/transactional_message_test.rb +48 -0
  139. data/test/support/workarea/listrak/test_order_confirmation_email.rb +116 -0
  140. data/test/support/workarea/listrak/vcr_config.rb +31 -0
  141. data/test/system/workarea/listrak_system_test.rb +75 -0
  142. data/test/test_helper.rb +16 -0
  143. data/test/vcr_cassettes/listrak/data_api/customers_import-successful.yml +88 -0
  144. data/test/vcr_cassettes/listrak/data_api/orders_import-successful.yml +90 -0
  145. data/test/vcr_cassettes/listrak/data_api/products_import-successful.yml +88 -0
  146. data/test/vcr_cassettes/listrak/email_api/contacts_get-successful.yml +87 -0
  147. data/test/vcr_cassettes/listrak/email_api/contacts_upsert-already_unsubscribed.yml +90 -0
  148. data/test/vcr_cassettes/listrak/email_api/contacts_upsert-successful.yml +87 -0
  149. data/test/vcr_cassettes/listrak/email_api/events_create-invalid_parameter.yml +90 -0
  150. data/test/vcr_cassettes/listrak/email_api/events_create-successful.yml +87 -0
  151. data/test/vcr_cassettes/listrak/email_api/events_get-successful.yml +88 -0
  152. data/test/vcr_cassettes/listrak/email_api/lists_all-successful.yml +88 -0
  153. data/test/vcr_cassettes/listrak/email_api/messages_create-successful.yml +88 -0
  154. data/test/vcr_cassettes/listrak/email_api/transactional_messages_create-successful.yml +89 -0
  155. data/test/vcr_cassettes/listrak/oauth-successful.yml +44 -0
  156. data/test/vcr_cassettes/listrak/oauth-unsuccessful.yml +46 -0
  157. data/test/vcr_cassettes/listrak/system_tests/footer_email_signup-successful.yml +171 -0
  158. data/test/vcr_cassettes/listrak/system_tests/footer_email_signup_overrides_unsubscribe.yml +255 -0
  159. data/test/vcr_cassettes/listrak/system_tests/unsubscribing.yml +593 -0
  160. data/test/workers/workarea/listrak/order_exporter_test.rb +31 -0
  161. data/test/workers/workarea/listrak/product_exporter_test.rb +62 -0
  162. data/workarea-listrak.gemspec +16 -0
  163. metadata +223 -0
metadata ADDED
@@ -0,0 +1,223 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: workarea-listrak
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Eric Pigeon
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
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.5
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 3.x
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.5
33
+ description: Integrates with Listrak services
34
+ email:
35
+ - epigeon@workarea.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - ".eslintrc.json"
41
+ - ".esvmrc"
42
+ - ".gitignore"
43
+ - CHANGELOG.md
44
+ - Gemfile
45
+ - README.md
46
+ - Rakefile
47
+ - app/assets/javascripts/workarea/admin/modules/listrak/list_events_select.js
48
+ - app/assets/javascripts/workarea/storefront/listrak/adapters/listrak_adapter.js
49
+ - app/assets/javascripts/workarea/storefront/listrak/listrak_config.js.erb
50
+ - app/assets/javascripts/workarea/storefront/listrak/modules/listrak.js
51
+ - app/controllers/workarea/admin/listrak/configurations_controller.rb
52
+ - app/controllers/workarea/admin/listrak/events_controller.rb
53
+ - app/helpers/workarea/listrak/analytics/helper.rb
54
+ - app/models/workarea/listrak/configuration.rb
55
+ - app/queries/workarea/categorization.decorator
56
+ - app/services/workarea/listrak/data_api.rb
57
+ - app/services/workarea/listrak/data_api/customers.rb
58
+ - app/services/workarea/listrak/data_api/orders.rb
59
+ - app/services/workarea/listrak/data_api/products.rb
60
+ - app/services/workarea/listrak/email_api.rb
61
+ - app/services/workarea/listrak/email_api/contacts.rb
62
+ - app/services/workarea/listrak/email_api/events.rb
63
+ - app/services/workarea/listrak/email_api/lists.rb
64
+ - app/services/workarea/listrak/email_api/messages.rb
65
+ - app/services/workarea/listrak/email_api/transactional_messages.rb
66
+ - app/services/workarea/listrak/models/address.rb
67
+ - app/services/workarea/listrak/models/contact.rb
68
+ - app/services/workarea/listrak/models/contact_form.rb
69
+ - app/services/workarea/listrak/models/customer_form.rb
70
+ - app/services/workarea/listrak/models/event.rb
71
+ - app/services/workarea/listrak/models/event_form.rb
72
+ - app/services/workarea/listrak/models/list.rb
73
+ - app/services/workarea/listrak/models/message_form.rb
74
+ - app/services/workarea/listrak/models/order_form.rb
75
+ - app/services/workarea/listrak/models/order_item.rb
76
+ - app/services/workarea/listrak/models/product_form.rb
77
+ - app/services/workarea/listrak/models/transactional_message_form.rb
78
+ - app/services/workarea/listrak/oauth.rb
79
+ - app/services/workarea/listrak/transactional_message.rb
80
+ - app/view_models/workarea/admin/listrak_configuration_view_model.rb
81
+ - app/views/workarea/admin/listrak/configurations/edit.html.haml
82
+ - app/views/workarea/admin/listrak/events/index.json.jbuilder
83
+ - app/views/workarea/admin/shared/_listrak_configuration_link.html.haml
84
+ - app/views/workarea/storefront/checkouts/_listrak.html.haml
85
+ - app/workers/workarea/listrak/customer_exporter.rb
86
+ - app/workers/workarea/listrak/order_exporter.rb
87
+ - app/workers/workarea/listrak/product_exporter.rb
88
+ - app/workers/workarea/listrak/subscribe_email_signup.rb
89
+ - app/workers/workarea/listrak/unsubscribe_email_signup.rb
90
+ - bin/rails
91
+ - bin/rake
92
+ - bin/rspec
93
+ - bin/rubocop
94
+ - config/initializers/append_points.rb
95
+ - config/initializers/configuration.rb
96
+ - config/locales/en.yml
97
+ - config/routes.rb
98
+ - docs/Listrak Technical Integration Guide.docx
99
+ - lib/generators/workarea/listrak/message/USAGE
100
+ - lib/generators/workarea/listrak/message/message_generator.rb
101
+ - lib/generators/workarea/listrak/message/templates/message.rb.erb
102
+ - lib/workarea/listrak.rb
103
+ - lib/workarea/listrak/analytics.rb
104
+ - lib/workarea/listrak/bogus_data_api.rb
105
+ - lib/workarea/listrak/bogus_data_api/customers.rb
106
+ - lib/workarea/listrak/bogus_data_api/orders.rb
107
+ - lib/workarea/listrak/bogus_data_api/products.rb
108
+ - lib/workarea/listrak/bogus_data_api/proxy_client.rb
109
+ - lib/workarea/listrak/bogus_email_api.rb
110
+ - lib/workarea/listrak/bogus_email_api/contacts.rb
111
+ - lib/workarea/listrak/bogus_email_api/events.rb
112
+ - lib/workarea/listrak/bogus_email_api/lists.rb
113
+ - lib/workarea/listrak/bogus_email_api/proxy_client.rb
114
+ - lib/workarea/listrak/bogus_email_api/transactional_messages.rb
115
+ - lib/workarea/listrak/engine.rb
116
+ - lib/workarea/listrak/error.rb
117
+ - lib/workarea/listrak/version.rb
118
+ - readme/listrak-admin.png
119
+ - script/admin_ci
120
+ - script/ci
121
+ - script/core_ci
122
+ - script/plugins_ci
123
+ - script/storefront_ci
124
+ - test/dummy/Rakefile
125
+ - test/dummy/bin/bundle
126
+ - test/dummy/bin/rails
127
+ - test/dummy/bin/rake
128
+ - test/dummy/bin/setup
129
+ - test/dummy/bin/update
130
+ - test/dummy/config.ru
131
+ - test/dummy/config/application.rb
132
+ - test/dummy/config/boot.rb
133
+ - test/dummy/config/cable.yml
134
+ - test/dummy/config/environment.rb
135
+ - test/dummy/config/environments/development.rb
136
+ - test/dummy/config/environments/production.rb
137
+ - test/dummy/config/environments/test.rb
138
+ - test/dummy/config/initializers/application_controller_renderer.rb
139
+ - test/dummy/config/initializers/assets.rb
140
+ - test/dummy/config/initializers/backtrace_silencers.rb
141
+ - test/dummy/config/initializers/cookies_serializer.rb
142
+ - test/dummy/config/initializers/filter_parameter_logging.rb
143
+ - test/dummy/config/initializers/inflections.rb
144
+ - test/dummy/config/initializers/mime_types.rb
145
+ - test/dummy/config/initializers/new_framework_defaults.rb
146
+ - test/dummy/config/initializers/session_store.rb
147
+ - test/dummy/config/initializers/workarea.rb
148
+ - test/dummy/config/initializers/wrap_parameters.rb
149
+ - test/dummy/config/locales/en.yml
150
+ - test/dummy/config/puma.rb
151
+ - test/dummy/config/routes.rb
152
+ - test/dummy/config/secrets.yml
153
+ - test/dummy/config/spring.rb
154
+ - test/dummy/db/seeds.rb
155
+ - test/dummy/public/404.html
156
+ - test/dummy/public/422.html
157
+ - test/dummy/public/500.html
158
+ - test/dummy/public/apple-touch-icon-precomposed.png
159
+ - test/dummy/public/apple-touch-icon.png
160
+ - test/dummy/public/favicon.ico
161
+ - test/factories/workarea/factories/listrak.rb
162
+ - test/helpers/workarea/listrak/analytics/helper_test.rb
163
+ - test/integration/workarea/admin/listrak/configuration_integration_test.rb
164
+ - test/integration/workarea/admin/listrak/events_integration_test.rb
165
+ - test/lib/generators/workarea/listrak/message_generator_test.rb
166
+ - test/queries/workarea/categorization_test.decorator
167
+ - test/services/workarea/listrak/data_api/customers_test.rb
168
+ - test/services/workarea/listrak/data_api/orders_test.rb
169
+ - test/services/workarea/listrak/data_api/products_test.rb
170
+ - test/services/workarea/listrak/email_api/contacts_test.rb
171
+ - test/services/workarea/listrak/email_api/events_test.rb
172
+ - test/services/workarea/listrak/email_api/lists_test.rb
173
+ - test/services/workarea/listrak/email_api/messages_test.rb
174
+ - test/services/workarea/listrak/email_api/transactional_messages_test.rb
175
+ - test/services/workarea/listrak/oauth_test.rb
176
+ - test/services/workarea/listrak/transactional_message_test.rb
177
+ - test/support/workarea/listrak/test_order_confirmation_email.rb
178
+ - test/support/workarea/listrak/vcr_config.rb
179
+ - test/system/workarea/listrak_system_test.rb
180
+ - test/test_helper.rb
181
+ - test/vcr_cassettes/listrak/data_api/customers_import-successful.yml
182
+ - test/vcr_cassettes/listrak/data_api/orders_import-successful.yml
183
+ - test/vcr_cassettes/listrak/data_api/products_import-successful.yml
184
+ - test/vcr_cassettes/listrak/email_api/contacts_get-successful.yml
185
+ - test/vcr_cassettes/listrak/email_api/contacts_upsert-already_unsubscribed.yml
186
+ - test/vcr_cassettes/listrak/email_api/contacts_upsert-successful.yml
187
+ - test/vcr_cassettes/listrak/email_api/events_create-invalid_parameter.yml
188
+ - test/vcr_cassettes/listrak/email_api/events_create-successful.yml
189
+ - test/vcr_cassettes/listrak/email_api/events_get-successful.yml
190
+ - test/vcr_cassettes/listrak/email_api/lists_all-successful.yml
191
+ - test/vcr_cassettes/listrak/email_api/messages_create-successful.yml
192
+ - test/vcr_cassettes/listrak/email_api/transactional_messages_create-successful.yml
193
+ - test/vcr_cassettes/listrak/oauth-successful.yml
194
+ - test/vcr_cassettes/listrak/oauth-unsuccessful.yml
195
+ - test/vcr_cassettes/listrak/system_tests/footer_email_signup-successful.yml
196
+ - test/vcr_cassettes/listrak/system_tests/footer_email_signup_overrides_unsubscribe.yml
197
+ - test/vcr_cassettes/listrak/system_tests/unsubscribing.yml
198
+ - test/workers/workarea/listrak/order_exporter_test.rb
199
+ - test/workers/workarea/listrak/product_exporter_test.rb
200
+ - workarea-listrak.gemspec
201
+ homepage: http://www.workarea.com
202
+ licenses: []
203
+ metadata: {}
204
+ post_install_message:
205
+ rdoc_options: []
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ requirements: []
219
+ rubygems_version: 3.0.4
220
+ signing_key:
221
+ specification_version: 4
222
+ summary: Listrak plugin for Workarea
223
+ test_files: []