workarea-mail_chimp 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.json +35 -0
  3. data/.github/workflows/ci.yml +57 -0
  4. data/.gitignore +1 -0
  5. data/.rubocop.yml +2 -7
  6. data/.stylelintrc.json +8 -0
  7. data/Gemfile +2 -1
  8. data/README.md +26 -47
  9. data/app/controllers/workarea/storefront/users/accounts_controller.decorator +1 -1
  10. data/app/services/workarea/mail_chimp/address.rb +0 -1
  11. data/app/services/workarea/mail_chimp/cart.rb +2 -2
  12. data/app/services/workarea/mail_chimp/product.rb +1 -1
  13. data/lib/integrations/workarea/mail_chimp/bogus_api_request.rb +0 -1
  14. data/lib/integrations/workarea/mail_chimp/bogus_request.rb +0 -1
  15. data/lib/integrations/workarea/mail_chimp/gateway/members.rb +1 -1
  16. data/lib/workarea/mail_chimp/version.rb +1 -1
  17. data/test/dummy/log/.keep +0 -0
  18. data/test/services/workarea/mail_chimp/order_test.rb +9 -9
  19. data/test/support/workarea/mail_chimp_api_config.rb +1 -1
  20. data/test/system/workarea/storefront/campaign_tracking_test.rb +0 -1
  21. data/test/vcr_cassettes/get_default_list_interests.yml +2 -2
  22. data/test/vcr_cassettes/get_member_details_no_match.yml +1 -1
  23. data/test/vcr_cassettes/get_member_details_unsubscribed.yml +1 -1
  24. data/test/vcr_cassettes/interest_categories_read.yml +2 -2
  25. data/test/vcr_cassettes/mail_chimp/tasks/create_store-successful.yml +2 -2
  26. data/test/vcr_cassettes/mc_order_test.yml +8 -8
  27. data/test/vcr_cassettes/mc_product_test.yml +5 -5
  28. data/test/vcr_cassettes/subscribe_to_default_list.yml +5 -5
  29. data/test/vcr_cassettes/subscribe_to_default_list_interest_groups.yml +5 -5
  30. data/test/vcr_cassettes/subscribe_to_default_list_with_groupings.yml +5 -5
  31. data/test/vcr_cassettes/subscribe_to_default_list_with_user_details.yml +5 -5
  32. data/test/vcr_cassettes/unsubscribe_from_default_list.yml +1 -1
  33. data/test/vcr_cassettes/update_member_on_default_list_change_email.yml +5 -5
  34. data/test/vcr_cassettes/update_member_on_default_list_change_groupings.yml +5 -5
  35. data/test/workers/workarea/mail_chimp/ecommerce/save_cart_test.rb +0 -1
  36. data/test/workers/workarea/mail_chimp/ecommerce/save_order_test.rb +0 -1
  37. data/test/workers/workarea/mail_chimp/ecommerce/save_product_test.rb +0 -1
  38. metadata +7 -4
  39. data/LICENSE.md +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 900a9c72aead18665bda6c5fff0e9d1fc00d92bbcaf2df3ddde642c3f43d43dd
4
- data.tar.gz: d54d891f30390671b4fffbf1e48303d26b11304e0a4a785303c6be28b112c697
3
+ metadata.gz: 5dc395fc78aab119efd14cc599e525460f4d2a5516b79b5774580565fbe11a11
4
+ data.tar.gz: 7f9eea8a8a4419ec34fa463a5ee367ff2cf8d450830a0f381d3e9342d381ec40
5
5
  SHA512:
6
- metadata.gz: 260265ffde7d9059c7e4a9fcfdbe2fe02542eb89c52220af6e7962f19c0c13740fa51c0865951901a7d0e11d03849d383d657f47ea8c40d4e6226adf4a7e238b
7
- data.tar.gz: 3ff2649f960f2bc1a3600a375ab9fdb3c43bb65238126b861ce062276a96bb042419f46cb0c41e684e485de0915077baba46635055253414c372024b856c7963
6
+ metadata.gz: fad3553e5f31ba569354dc900110fd4d3d0974bef934bb89cd24220dbd1dccfaf6cf2125a333b3c983c5a057d8b52c58d5f57fe44555cfce3081bdc6c1b11857
7
+ data.tar.gz: 944a2af084c0c103fe510863cac6fd9a5a8d00b4ab76cfb792c13b38c1c3cb9ffb0c2dc3b95a573e9910aeadd471c46fe3b84529d896b8ee0b67c8f6ac5bd7e6
data/.eslintrc.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "rules": {
4
+ "semi": ["error", "always"],
5
+ "eqeqeq": ["error", "always"]
6
+ },
7
+ "globals": {
8
+ "window": true,
9
+ "document": true,
10
+ "WORKAREA": true,
11
+ "$": true,
12
+ "jQuery": true,
13
+ "_": true,
14
+ "feature": true,
15
+ "JST": true,
16
+ "Turbolinks": true,
17
+ "I18n": true,
18
+ "Chart": true,
19
+ "Dropzone": true,
20
+ "strftime": true,
21
+ "Waypoint": true,
22
+ "wysihtml": true,
23
+ "LocalTime": true,
24
+ "describe": true,
25
+ "after": true,
26
+ "afterEach": true,
27
+ "before": true,
28
+ "beforeEach": true,
29
+ "it": true,
30
+ "expect": true,
31
+ "sinon": true,
32
+ "fixture": true,
33
+ "chai": true
34
+ }
35
+ }
@@ -0,0 +1,57 @@
1
+ name: CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ static_analysis:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v1
9
+ - uses: workarea-commerce/ci/bundler-audit@v1
10
+ - uses: workarea-commerce/ci/rubocop@v1
11
+ - uses: workarea-commerce/ci/eslint@v1
12
+ with:
13
+ args: '**/*.js'
14
+
15
+ admin_tests:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v1
19
+ - uses: actions/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.6.x
22
+ - uses: workarea-commerce/ci/test@v1
23
+ with:
24
+ command: bin/rails app:workarea:test:admin
25
+
26
+ core_tests:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v1
30
+ - uses: actions/setup-ruby@v1
31
+ with:
32
+ ruby-version: 2.6.x
33
+ - uses: workarea-commerce/ci/test@v1
34
+ with:
35
+ command: bin/rails app:workarea:test:core
36
+
37
+ storefront_tests:
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v1
41
+ - uses: actions/setup-ruby@v1
42
+ with:
43
+ ruby-version: 2.6.x
44
+ - uses: workarea-commerce/ci/test@v1
45
+ with:
46
+ command: bin/rails app:workarea:test:storefront
47
+
48
+ plugins_tests:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@v1
52
+ - uses: actions/setup-ruby@v1
53
+ with:
54
+ ruby-version: 2.6.x
55
+ - uses: workarea-commerce/ci/test@v1
56
+ with:
57
+ command: bin/rails app:workarea:test:plugins
data/.gitignore CHANGED
@@ -53,3 +53,4 @@ Gemfile.lock
53
53
 
54
54
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
55
55
  .rvmrc
56
+ .rubocop-http*
data/.rubocop.yml CHANGED
@@ -1,8 +1,3 @@
1
- inherit_from: .rails-rubocop.yml
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
2
3
 
3
- AllCops:
4
- TargetRubyVersion: 2.4
5
- Exclude:
6
- - 'lib/mail_chimp.rb'
7
- - 'lib/mail_chimp/**/*'
8
- - 'test/dummy/**/*'
data/.stylelintrc.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "stylelint-config-recommended-scss",
3
+ "rules": {
4
+ "block-no-empty": null,
5
+ "no-descending-specificity": null,
6
+ "property-no-unknown": [true, { "ignoreProperties": ["mso-hide"] }]
7
+ }
8
+ }
data/Gemfile CHANGED
@@ -1,8 +1,9 @@
1
1
  source "https://rubygems.org"
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
2
3
 
3
4
  gemspec
4
5
 
5
- gem "workarea"
6
+ gem 'workarea', github: 'workarea-commerce/workarea', branch: 'v3.4-stable'
6
7
 
7
8
  group :test, :development do
8
9
  gem "simplecov", require: false
data/README.md CHANGED
@@ -3,7 +3,7 @@ Workarea Mail Chimp
3
3
 
4
4
  MailChimp plugin for the Worakrea e-commerce platform
5
5
 
6
- This plugin creates a basic integration between the WebLinc platform and
6
+ This plugin creates a basic integration between the Workarea platform and
7
7
  MailChimp's v3 API
8
8
 
9
9
  It requires a mailchimp access token which can be generated by following
@@ -12,11 +12,27 @@ MailChimp's OAuth2 Flow here: <http://developer.mailchimp.com/documentation/mail
12
12
  Scope and Dependencies
13
13
  --------------------------------------------------------------------------------
14
14
 
15
- This plugin currently wraps functionality for subscribing and unsubscribing users
16
- by email, as well as retrieving interest groups (or categories) for users and lists
15
+ This plugin currently wraps functionality for subscribing and unsubscribing users by email, as well as retrieving interest groups (or categories) for users and lists
17
16
 
18
- It is dependant on the [gibbon rubygem](https://github.com/amro/gibbon) which
19
- provides a basic wrapper for the MailChimp v3 API.
17
+ It is dependant on the [gibbon rubygem](https://github.com/amro/gibbon) which provides a basic wrapper for the MailChimp v3 API.
18
+
19
+ Getting Started
20
+ --------------------------------------------------------------------------------
21
+
22
+ Add the gem to your application's Gemfile:
23
+
24
+ ```ruby
25
+ # ...
26
+ gem 'workarea-mailchimp'
27
+ # ...
28
+ ```
29
+
30
+ Update your application's bundle.
31
+
32
+ ```bash
33
+ cd path/to/application
34
+ bundle
35
+ ```
20
36
 
21
37
  Configuration
22
38
  --------------------------------------------------------------------------------
@@ -65,51 +81,14 @@ following data
65
81
 
66
82
  * A subscribed user with the following email: `mdalton-simonpearce@weblinc.com`
67
83
 
68
- The specs use VCR cassettes to record http requests, so maintainers will need to
69
- flush the cassettes when modifying the requests.
70
-
71
- Getting Started
72
- --------------------------------------------------------------------------------
73
-
74
- This gem contains a rails engine that must be mounted onto a host Rails application.
84
+ The specs use VCR cassettes to record http requests, so maintainers will need to flush the cassettes when modifying the requests.
75
85
 
76
- You must have access to a WebLinc gems server to use this gem. Add your gems
77
- server credentials to Bundler:
78
-
79
- bundle config gems.weblinc.com my_username:my_password
80
-
81
- Or set the appropriate environment variable in a shell startup file:
82
-
83
- export BUNDLE_GEMS__WEBLINC__COM='my_username:my_password'
84
-
85
- Then add the gem to your application's Gemfile specifying the source:
86
-
87
- # ...
88
- gem 'workarea-mail_chimp', source: 'https://gems.weblinc.com'
89
- # ...
90
-
91
- Or use a source block:
92
-
93
- # ...
94
- source 'https://gems.weblinc.com' do
95
- gem 'workarea-mail_chimp'
96
- end
97
- # ...
98
-
99
- Update your application's bundle.
100
-
101
- cd path/to/application
102
- bundle
103
-
104
- WebLinc Platform Documentation
86
+ Workarea Commerce Documentation
105
87
  --------------------------------------------------------------------------------
106
88
 
107
- See [http://developer.weblinc.com](http://developer.weblinc.com) for Workarea
108
- platform documentation.
89
+ See [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.
109
90
 
110
- Copyright & Licensing
91
+ License
111
92
  --------------------------------------------------------------------------------
112
93
 
113
- Copyright WebLinc 2015. All rights reserved.
114
-
115
- For licensing, contact sales@weblinc.com.
94
+ Workarea Mailchimp is released under the [Business Software License](LICENSE)
@@ -17,7 +17,7 @@ module Workarea
17
17
  {
18
18
  _id: group[:id],
19
19
  name: group[:name],
20
- interests: group[:interests].to_unsafe_hash
20
+ interests: group[:interests]&.to_unsafe_hash || {}
21
21
  }
22
22
  end
23
23
  ]
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module MailChimp
3
3
  class Address
4
-
5
4
  attr_reader :address, :options
6
5
 
7
6
  def initialize(address, options = {})
@@ -50,7 +50,7 @@ module Workarea
50
50
  end
51
51
 
52
52
  def payment
53
- @payment ||= Workarea::Payment.find(order.id)
53
+ @payment ||= Workarea::Payment.find(order.id)
54
54
  end
55
55
 
56
56
  # order items. Mailchimp refers to them as "lines"
@@ -67,7 +67,7 @@ module Workarea
67
67
  end
68
68
 
69
69
  def payment
70
- @payment ||= Workarea::Payment.find(order.id)
70
+ @payment ||= Workarea::Payment.find(order.id)
71
71
  end
72
72
 
73
73
  def send_full_customer?
@@ -28,7 +28,7 @@ module Workarea
28
28
  private
29
29
 
30
30
  def variants
31
- @variants ||= product.variants.map{ |v| Variant.new(v).to_h }
31
+ @variants ||= product.variants.map { |v| Variant.new(v).to_h }
32
32
  end
33
33
 
34
34
  def primary_image
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module MailChimp
3
3
  class BogusAPIRequest
4
-
5
4
  def initialize(builder: nil)
6
5
  @request_builder = builder
7
6
  end
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module MailChimp
3
3
  class BogusRequest
4
-
5
4
  def initialize(*)
6
5
  @path_parts = []
7
6
  end
@@ -1,7 +1,7 @@
1
1
  module Workarea
2
2
  module MailChimp
3
3
  class Gateway::Members < Gateway
4
- def initialize( default_list_id)
4
+ def initialize(default_list_id)
5
5
  @default_list_id = default_list_id
6
6
  end
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module MailChimp
3
- VERSION = "3.0.3".freeze
3
+ VERSION = "3.0.4".freeze
4
4
  end
5
5
  end
File without changes
@@ -22,15 +22,15 @@ module Workarea
22
22
  private
23
23
  def expected_address_hash
24
24
  {
25
- name:"Ben Crouse",
26
- address1:"22 S. 3rd St.",
27
- address2:"Second Floor",
28
- city:"Philadelphia",
29
- province:"PA",
30
- postal_code:"19106",
31
- country:"US",
32
- phone:"",
33
- company:""
25
+ name: "Ben Crouse",
26
+ address1: "22 S. 3rd St.",
27
+ address2: "Second Floor",
28
+ city: "Philadelphia",
29
+ province: "PA",
30
+ postal_code: "19106",
31
+ country: "US",
32
+ phone: "",
33
+ company: ""
34
34
  }
35
35
  end
36
36
 
@@ -7,7 +7,7 @@ module Workarea
7
7
  end
8
8
 
9
9
  def set_key
10
- Rails.application.secrets.mail_chimp = { api_key: 'a' }
10
+ Rails.application.secrets.mail_chimp = { api_key: 'c89583c2b238d7aaa6df3e4307bb68c1-us16' }
11
11
  end
12
12
 
13
13
  def reset_key
@@ -3,7 +3,6 @@ require 'test_helper'
3
3
  module Workarea
4
4
  module Storefront
5
5
  class CampaignTrackingTest < Workarea::SystemTest
6
-
7
6
  def test_tracking_cookie
8
7
  visit storefront.root_path(mc_cid: 'kittens')
9
8
 
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -11,7 +11,7 @@ http_interactions:
11
11
  User-Agent:
12
12
  - Faraday v0.15.3
13
13
  Authorization:
14
- - Basic YQo=
14
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
15
15
  Content-Type:
16
16
  - application/json
17
17
  Accept-Encoding:
@@ -61,7 +61,7 @@ http_interactions:
61
61
  User-Agent:
62
62
  - Faraday v0.15.3
63
63
  Authorization:
64
- - Basic YQo=
64
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
65
65
  Content-Type:
66
66
  - application/json
67
67
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -109,7 +109,7 @@ http_interactions:
109
109
  User-Agent:
110
110
  - Faraday v0.15.4
111
111
  Authorization:
112
- - Basic YQo=
112
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
113
113
  Content-Type:
114
114
  - application/json
115
115
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -208,7 +208,7 @@ http_interactions:
208
208
  User-Agent:
209
209
  - Faraday v0.15.4
210
210
  Authorization:
211
- - Basic YQo=
211
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
212
212
  Content-Type:
213
213
  - application/json
214
214
  Accept-Encoding:
@@ -259,7 +259,7 @@ http_interactions:
259
259
  User-Agent:
260
260
  - Faraday v0.15.4
261
261
  Authorization:
262
- - Basic YQo=
262
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
263
263
  Content-Type:
264
264
  - application/json
265
265
  Accept-Encoding:
@@ -302,7 +302,7 @@ http_interactions:
302
302
  User-Agent:
303
303
  - Faraday v0.15.4
304
304
  Authorization:
305
- - Basic YQo=
305
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
306
306
  Content-Type:
307
307
  - application/json
308
308
  Accept-Encoding:
@@ -345,7 +345,7 @@ http_interactions:
345
345
  User-Agent:
346
346
  - Faraday v0.15.4
347
347
  Authorization:
348
- - Basic YQo=
348
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
349
349
  Content-Type:
350
350
  - application/json
351
351
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -107,7 +107,7 @@ http_interactions:
107
107
  User-Agent:
108
108
  - Faraday v0.15.4
109
109
  Authorization:
110
- - Basic YQo=
110
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
111
111
  Content-Type:
112
112
  - application/json
113
113
  Accept-Encoding:
@@ -155,7 +155,7 @@ http_interactions:
155
155
  User-Agent:
156
156
  - Faraday v0.15.4
157
157
  Authorization:
158
- - Basic YQo=
158
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
159
159
  Content-Type:
160
160
  - application/json
161
161
  Accept-Encoding:
@@ -198,7 +198,7 @@ http_interactions:
198
198
  User-Agent:
199
199
  - Faraday v0.15.4
200
200
  Authorization:
201
- - Basic YQo=
201
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
202
202
  Content-Type:
203
203
  - application/json
204
204
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.15.4
12
12
  Authorization:
13
- - Basic YQo=
13
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  User-Agent:
60
60
  - Faraday v0.15.4
61
61
  Authorization:
62
- - Basic YQo=
62
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
63
63
  Content-Type:
64
64
  - application/json
65
65
  Accept-Encoding:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  User-Agent:
112
112
  - Faraday v0.15.4
113
113
  Authorization:
114
- - Basic YQo=
114
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
115
115
  Content-Type:
116
116
  - application/json
117
117
  Accept-Encoding:
@@ -160,7 +160,7 @@ http_interactions:
160
160
  User-Agent:
161
161
  - Faraday v0.15.4
162
162
  Authorization:
163
- - Basic YQo=
163
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
164
164
  Content-Type:
165
165
  - application/json
166
166
  Accept-Encoding:
@@ -212,7 +212,7 @@ http_interactions:
212
212
  User-Agent:
213
213
  - Faraday v0.15.4
214
214
  Authorization:
215
- - Basic YQo=
215
+ - Basic Yzg5NTgzYzJiMjM4ZDdhYWE2ZGYzZTQzMDdiYjY4YzEtdXMxNg==
216
216
  Content-Type:
217
217
  - application/json
218
218
  Accept-Encoding:
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class MailChimp::Ecommerce::SaveCartTest < TestCase
5
-
6
5
  def test_cart_mail_chimp_exported_timestamp
7
6
  order = create_placed_order
8
7
  order.placed_at = nil
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class MailChimp::Ecommerce::SaveOrderTest < TestCase
5
-
6
5
  def test_order_mail_chimp_exported_timestamp
7
6
  order = create_placed_order
8
7
  Workarea::MailChimp::Ecommerce::SaveOrder.new.perform(order.id)
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class MailChimp::Ecommerce::SaveProductTest < TestCase
5
-
6
5
  def test_product_mail_chimp_exported_timestamp
7
6
  product = create_product
8
7
  Workarea::MailChimp::Ecommerce::SaveProduct.new.perform(product.id)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-mail_chimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Platt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-22 00:00:00.000000000 Z
12
+ date: 2019-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: workarea
@@ -48,20 +48,22 @@ extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - ".editorconfig"
51
+ - ".eslintrc.json"
51
52
  - ".github/ISSUE_TEMPLATE/bug_report.md"
52
53
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
53
54
  - ".github/ISSUE_TEMPLATE/feature_request.md"
55
+ - ".github/workflows/ci.yml"
54
56
  - ".gitignore"
55
57
  - ".markdownlint.json"
56
58
  - ".rails-rubocop.yml"
57
59
  - ".rubocop.yml"
58
60
  - ".scss-lint.yml"
61
+ - ".stylelintrc.json"
59
62
  - CHANGELOG.md
60
63
  - CODE_OF_CONDUCT.md
61
64
  - CONTRIBUTING.md
62
65
  - Gemfile
63
66
  - LICENSE
64
- - LICENSE.md
65
67
  - README.md
66
68
  - Rakefile
67
69
  - app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
@@ -153,6 +155,7 @@ files:
153
155
  - test/dummy/config/spring.rb
154
156
  - test/dummy/db/seeds.rb
155
157
  - test/dummy/lib/assets/.keep
158
+ - test/dummy/log/.keep
156
159
  - test/factories/mail_chimp.rb
157
160
  - test/integration/workarea/mailchimp/subscription_test.rb
158
161
  - test/integration/workarea/mailchimp/tracking_params_test.rb
@@ -208,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
211
  - !ruby/object:Gem::Version
209
212
  version: '0'
210
213
  requirements: []
211
- rubygems_version: 3.0.4
214
+ rubygems_version: 3.0.6
212
215
  signing_key:
213
216
  specification_version: 4
214
217
  summary: MailChimp plugin for the Workarea ecommerce platform
data/LICENSE.md DELETED
@@ -1,3 +0,0 @@
1
- View this plugin's license here:
2
-
3
- <https://github.com/workarea-commerce/workarea/blob/master/LICENSE.md>