workarea-mail_chimp 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +15 -0
- data/.gitignore +55 -0
- data/.markdownlint.json +10 -0
- data/.rails-rubocop.yml +119 -0
- data/.rubocop.yml +8 -0
- data/.scss-lint.yml +188 -0
- data/CHANGELOG.md +244 -0
- data/Gemfile +9 -0
- data/README.md +115 -0
- data/Rakefile +53 -0
- data/app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js +15 -0
- data/app/controllers/workarea/storefront/application_controller.decorator +11 -0
- data/app/controllers/workarea/storefront/cart_items_controller.decorator +18 -0
- data/app/controllers/workarea/storefront/checkout/addresses_controller.decorator +13 -0
- data/app/controllers/workarea/storefront/checkout/shipping_controller.decorator +13 -0
- data/app/controllers/workarea/storefront/users/accounts_controller.decorator +37 -0
- data/app/models/workarea/catalog/product.decorator +7 -0
- data/app/models/workarea/mail_chimp/group.rb +39 -0
- data/app/models/workarea/mail_chimp/store.rb +26 -0
- data/app/models/workarea/order.decorator +9 -0
- data/app/models/workarea/user.decorator +31 -0
- data/app/services/workarea/mail_chimp/address.rb +28 -0
- data/app/services/workarea/mail_chimp/cart.rb +78 -0
- data/app/services/workarea/mail_chimp/order.rb +97 -0
- data/app/services/workarea/mail_chimp/product.rb +43 -0
- data/app/services/workarea/mail_chimp/variant.rb +43 -0
- data/app/view_models/workarea/storefront/user_view_model.decorator +16 -0
- data/app/views/workarea/storefront/mail_chimp/_ecommerce_javascript.html.haml +2 -0
- data/app/views/workarea/storefront/users/accounts/_edit.html.haml +12 -0
- data/app/views/workarea/storefront/users/accounts/_email_interests.html.haml +13 -0
- data/app/workers/workarea/mail_chimp/ecommerce/save_cart.rb +40 -0
- data/app/workers/workarea/mail_chimp/ecommerce/save_order.rb +31 -0
- data/app/workers/workarea/mail_chimp/ecommerce/save_product.rb +31 -0
- data/app/workers/workarea/mail_chimp/list_subscriber.rb +30 -0
- data/app/workers/workarea/mail_chimp/list_unsubscriber.rb +22 -0
- data/app/workers/workarea/mail_chimp/subscription_edit.rb +28 -0
- data/bin/rails +19 -0
- data/config/initializers/appends.rb +21 -0
- data/config/initializers/workarea.rb +14 -0
- data/config/locales/en.yml +15 -0
- data/lib/gibbon/request_decorator.rb +10 -0
- data/lib/integrations/workarea/mail_chimp/bogus_api_request.rb +30 -0
- data/lib/integrations/workarea/mail_chimp/bogus_gateway.rb +35 -0
- data/lib/integrations/workarea/mail_chimp/bogus_request.rb +78 -0
- data/lib/integrations/workarea/mail_chimp/gateway.rb +86 -0
- data/lib/integrations/workarea/mail_chimp/gateway/list.rb +47 -0
- data/lib/integrations/workarea/mail_chimp/gateway/members.rb +61 -0
- data/lib/integrations/workarea/mail_chimp/gateway/subscribe_argument_builder.rb +101 -0
- data/lib/tasks/mail_chimp.rake +71 -0
- data/lib/workarea/mail_chimp.rb +72 -0
- data/lib/workarea/mail_chimp/engine.rb +14 -0
- data/lib/workarea/mail_chimp/errors.rb +2 -0
- data/lib/workarea/mail_chimp/tasks/ecommerce.rb +43 -0
- data/lib/workarea/mail_chimp/version.rb +5 -0
- data/script/admin_ci +9 -0
- data/script/ci +11 -0
- data/script/core_ci +9 -0
- data/script/plugins_ci +9 -0
- data/script/storefront_ci +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +56 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/factories/mail_chimp.rb +50 -0
- data/test/integration/workarea/mailchimp/subscription_test.rb +52 -0
- data/test/integration/workarea/mailchimp/tracking_params_test.rb +50 -0
- data/test/integration/workarea/mailchimp/unsubscribe_test.rb +14 -0
- data/test/integration/workarea/storefront/mail_chimp_order_test.rb +106 -0
- data/test/integration/workarea/storefront/mail_chimp_product_test.rb +51 -0
- data/test/integration/workarea/storefront/mail_chimp_site_javascript_test.rb +25 -0
- data/test/lib/workarea/mailchimp/gateway/list_test.rb +48 -0
- data/test/lib/workarea/mailchimp/gateway_test.rb +196 -0
- data/test/lib/workarea/mailchimp/tasks/ecommerce_test.rb +40 -0
- data/test/services/workarea/mail_chimp/cart_test.rb +44 -0
- data/test/services/workarea/mail_chimp/order_test.rb +50 -0
- data/test/services/workarea/mail_chimp/product_test.rb +29 -0
- data/test/support/workarea/mail_chimp_api_config.rb +33 -0
- data/test/system/workarea/storefront/campaign_tracking_test.rb +14 -0
- data/test/system/workarea/storefront/group_test.rb +33 -0
- data/test/system/workarea/storefront/mail_chimp_accounts_system_test.rb +79 -0
- data/test/test_helper.rb +17 -0
- data/test/vcr_cassettes/get_default_list_interests.yml +104 -0
- data/test/vcr_cassettes/get_member_details_no_match.yml +51 -0
- data/test/vcr_cassettes/get_member_details_unsubscribed.yml +51 -0
- data/test/vcr_cassettes/interest_categories_read.yml +104 -0
- data/test/vcr_cassettes/mail_chimp/tasks/create_store-successful.yml +97 -0
- data/test/vcr_cassettes/mc_order_test.yml +381 -0
- data/test/vcr_cassettes/mc_product_test.yml +234 -0
- data/test/vcr_cassettes/subscribe_to_default_list.yml +254 -0
- data/test/vcr_cassettes/subscribe_to_default_list_interest_groups.yml +254 -0
- data/test/vcr_cassettes/subscribe_to_default_list_with_groupings.yml +254 -0
- data/test/vcr_cassettes/subscribe_to_default_list_with_user_details.yml +254 -0
- data/test/vcr_cassettes/unsubscribe_from_default_list.yml +53 -0
- data/test/vcr_cassettes/update_member_on_default_list_change_email.yml +254 -0
- data/test/vcr_cassettes/update_member_on_default_list_change_groupings.yml +254 -0
- data/test/workers/workarea/mail_chimp/ecommerce/save_cart_test.rb +28 -0
- data/test/workers/workarea/mail_chimp/ecommerce/save_order_test.rb +15 -0
- data/test/workers/workarea/mail_chimp/ecommerce/save_product_test.rb +15 -0
- data/workarea-mail_chimp.gemspec +20 -0
- metadata +212 -0
@@ -0,0 +1,254 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.15.4
|
12
|
+
Authorization:
|
13
|
+
- Basic YQo=
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- openresty
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
X-Request-Id:
|
30
|
+
- ca530e9b-8c0b-4f19-9bab-a3261cb8a3c1
|
31
|
+
Link:
|
32
|
+
- <https://us16.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
|
33
|
+
rel="describedBy"
|
34
|
+
Vary:
|
35
|
+
- Accept-Encoding
|
36
|
+
Date:
|
37
|
+
- Tue, 07 May 2019 14:02:30 GMT
|
38
|
+
Content-Length:
|
39
|
+
- '2389'
|
40
|
+
Connection:
|
41
|
+
- keep-alive
|
42
|
+
Set-Cookie:
|
43
|
+
- _AVESTA_ENVIRONMENT=prod; path=/
|
44
|
+
- _mcid=1.f8d15aa338a6be15ed684ef106130574; expires=Wed, 06-May-2020 14:02:29
|
45
|
+
GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"list_id":"fcd2925136","categories":[{"list_id":"fcd2925136","id":"443f5598e4","title":"Email
|
49
|
+
Interests","display_order":0,"type":"checkboxes","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"DELETE"},{"rel":"interests","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}],"total_items":1,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Response.json"},{"rel":"create","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"POST","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/POST.json"}]}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 07 May 2019 14:03:22 GMT
|
52
|
+
- request:
|
53
|
+
method: get
|
54
|
+
uri: https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Faraday v0.15.4
|
61
|
+
Authorization:
|
62
|
+
- Basic YQo=
|
63
|
+
Content-Type:
|
64
|
+
- application/json
|
65
|
+
Accept-Encoding:
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
+
Accept:
|
68
|
+
- "*/*"
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- openresty
|
76
|
+
Content-Type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
X-Request-Id:
|
79
|
+
- 3312934e-5661-4b45-bbeb-5cc9832d0b6c
|
80
|
+
Link:
|
81
|
+
- <https://us16.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
|
82
|
+
rel="describedBy"
|
83
|
+
Vary:
|
84
|
+
- Accept-Encoding
|
85
|
+
Date:
|
86
|
+
- Tue, 07 May 2019 14:02:30 GMT
|
87
|
+
Content-Length:
|
88
|
+
- '5873'
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Set-Cookie:
|
92
|
+
- _AVESTA_ENVIRONMENT=prod; path=/
|
93
|
+
- _mcid=1.37b99761a7ca753958d559074c1a3ef9; expires=Wed, 06-May-2020 14:02:30
|
94
|
+
GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
|
95
|
+
body:
|
96
|
+
encoding: UTF-8
|
97
|
+
string: '{"interests":[{"category_id":"443f5598e4","list_id":"fcd2925136","id":"7ca6cc1d86","name":"Specials
|
98
|
+
and Promotions","subscriber_count":"27","display_order":1,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"8911545594","name":"Local
|
99
|
+
Events","subscriber_count":"27","display_order":2,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"542a7ec7bb","name":"Restaurant
|
100
|
+
News and Events","subscriber_count":"27","display_order":3,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"6908d70674","name":"Corporate
|
101
|
+
Gifts and Awards","subscriber_count":"27","display_order":4,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"DELETE"}]}],"list_id":"fcd2925136","category_id":"443f5598e4","total_items":4,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json"},{"rel":"create","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"POST","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/POST.json"}]}'
|
102
|
+
http_version:
|
103
|
+
recorded_at: Tue, 07 May 2019 14:03:22 GMT
|
104
|
+
- request:
|
105
|
+
method: get
|
106
|
+
uri: https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories
|
107
|
+
body:
|
108
|
+
encoding: US-ASCII
|
109
|
+
string: ''
|
110
|
+
headers:
|
111
|
+
User-Agent:
|
112
|
+
- Faraday v0.15.4
|
113
|
+
Authorization:
|
114
|
+
- Basic YQo=
|
115
|
+
Content-Type:
|
116
|
+
- application/json
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
119
|
+
Accept:
|
120
|
+
- "*/*"
|
121
|
+
response:
|
122
|
+
status:
|
123
|
+
code: 200
|
124
|
+
message: OK
|
125
|
+
headers:
|
126
|
+
Server:
|
127
|
+
- openresty
|
128
|
+
Content-Type:
|
129
|
+
- application/json; charset=utf-8
|
130
|
+
X-Request-Id:
|
131
|
+
- 4ac40d4a-38df-4aa0-9372-b661154e8150
|
132
|
+
Link:
|
133
|
+
- <https://us16.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
|
134
|
+
rel="describedBy"
|
135
|
+
Vary:
|
136
|
+
- Accept-Encoding
|
137
|
+
Date:
|
138
|
+
- Tue, 07 May 2019 14:02:30 GMT
|
139
|
+
Content-Length:
|
140
|
+
- '2389'
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Set-Cookie:
|
144
|
+
- _AVESTA_ENVIRONMENT=prod; path=/
|
145
|
+
- _mcid=1.b1af891ac16eb06582538aa40d6962af; expires=Wed, 06-May-2020 14:02:30
|
146
|
+
GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
|
147
|
+
body:
|
148
|
+
encoding: UTF-8
|
149
|
+
string: '{"list_id":"fcd2925136","categories":[{"list_id":"fcd2925136","id":"443f5598e4","title":"Email
|
150
|
+
Interests","display_order":0,"type":"checkboxes","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"DELETE"},{"rel":"interests","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}],"total_items":1,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Response.json"},{"rel":"create","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories","method":"POST","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/POST.json"}]}'
|
151
|
+
http_version:
|
152
|
+
recorded_at: Tue, 07 May 2019 14:03:22 GMT
|
153
|
+
- request:
|
154
|
+
method: get
|
155
|
+
uri: https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests
|
156
|
+
body:
|
157
|
+
encoding: US-ASCII
|
158
|
+
string: ''
|
159
|
+
headers:
|
160
|
+
User-Agent:
|
161
|
+
- Faraday v0.15.4
|
162
|
+
Authorization:
|
163
|
+
- Basic YQo=
|
164
|
+
Content-Type:
|
165
|
+
- application/json
|
166
|
+
Accept-Encoding:
|
167
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
168
|
+
Accept:
|
169
|
+
- "*/*"
|
170
|
+
response:
|
171
|
+
status:
|
172
|
+
code: 200
|
173
|
+
message: OK
|
174
|
+
headers:
|
175
|
+
Server:
|
176
|
+
- openresty
|
177
|
+
Content-Type:
|
178
|
+
- application/json; charset=utf-8
|
179
|
+
X-Request-Id:
|
180
|
+
- 13897f79-2be5-4533-8035-7a426ec0e279
|
181
|
+
Link:
|
182
|
+
- <https://us16.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
|
183
|
+
rel="describedBy"
|
184
|
+
Vary:
|
185
|
+
- Accept-Encoding
|
186
|
+
Date:
|
187
|
+
- Tue, 07 May 2019 14:02:30 GMT
|
188
|
+
Content-Length:
|
189
|
+
- '5873'
|
190
|
+
Connection:
|
191
|
+
- keep-alive
|
192
|
+
Set-Cookie:
|
193
|
+
- _AVESTA_ENVIRONMENT=prod; path=/
|
194
|
+
- _mcid=1.6038924219d2cb8b872095107fa79d13; expires=Wed, 06-May-2020 14:02:30
|
195
|
+
GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
|
196
|
+
body:
|
197
|
+
encoding: UTF-8
|
198
|
+
string: '{"interests":[{"category_id":"443f5598e4","list_id":"fcd2925136","id":"7ca6cc1d86","name":"Specials
|
199
|
+
and Promotions","subscriber_count":"27","display_order":1,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/7ca6cc1d86","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"8911545594","name":"Local
|
200
|
+
Events","subscriber_count":"27","display_order":2,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/8911545594","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"542a7ec7bb","name":"Restaurant
|
201
|
+
News and Events","subscriber_count":"27","display_order":3,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/542a7ec7bb","method":"DELETE"}]},{"category_id":"443f5598e4","list_id":"fcd2925136","id":"6908d70674","name":"Corporate
|
202
|
+
Gifts and Awards","subscriber_count":"27","display_order":4,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests/6908d70674","method":"DELETE"}]}],"list_id":"fcd2925136","category_id":"443f5598e4","total_items":4,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/InterestCategories/Response.json"},{"rel":"create","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/interest-categories/443f5598e4/interests","method":"POST","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Interests/POST.json"}]}'
|
203
|
+
http_version:
|
204
|
+
recorded_at: Tue, 07 May 2019 14:03:22 GMT
|
205
|
+
- request:
|
206
|
+
method: put
|
207
|
+
uri: https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827
|
208
|
+
body:
|
209
|
+
encoding: UTF-8
|
210
|
+
string: '{"email_address":"jyucis-mailchimp-3@workarea.com","id":"fcd2925136","double_optin":false,"send_welcome":true,"replace_interests":true,"update_existing":true,"email_type":"html","merge_fields":{"FNAME":"Michael","LNAME":"Dalton"},"interests":{"7ca6cc1d86":true,"8911545594":true,"542a7ec7bb":true,"6908d70674":true},"status":"subscribed"}'
|
211
|
+
headers:
|
212
|
+
User-Agent:
|
213
|
+
- Faraday v0.15.4
|
214
|
+
Authorization:
|
215
|
+
- Basic YQo=
|
216
|
+
Content-Type:
|
217
|
+
- application/json
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 200
|
225
|
+
message: OK
|
226
|
+
headers:
|
227
|
+
Server:
|
228
|
+
- openresty
|
229
|
+
Content-Type:
|
230
|
+
- application/json; charset=utf-8
|
231
|
+
X-Request-Id:
|
232
|
+
- 45169c5a-021f-4dec-8ab8-e869166dd8cf
|
233
|
+
Link:
|
234
|
+
- <https://us16.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy",
|
235
|
+
<https://us16.admin.mailchimp.com/lists/members/view?id=94302993>; rel="dashboard"
|
236
|
+
Vary:
|
237
|
+
- Accept-Encoding
|
238
|
+
Date:
|
239
|
+
- Tue, 07 May 2019 14:02:31 GMT
|
240
|
+
Content-Length:
|
241
|
+
- '3065'
|
242
|
+
Connection:
|
243
|
+
- keep-alive
|
244
|
+
Set-Cookie:
|
245
|
+
- _AVESTA_ENVIRONMENT=prod; path=/
|
246
|
+
- _mcid=1.619adcc6cca1b393192b198acfc5b4ed; expires=Wed, 06-May-2020 14:02:31
|
247
|
+
GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
|
248
|
+
body:
|
249
|
+
encoding: UTF-8
|
250
|
+
string: '{"id":"6105f78b98a017bdf1d0b40c62273827","email_address":"jyucis-mailchimp-3@workarea.com","unique_email_id":"71ffb2bd8c","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Michael","LNAME":"Dalton","BIRTHDAY":""},"interests":{"7ca6cc1d86":true,"8911545594":true,"542a7ec7bb":true,"6908d70674":true},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":0,"number_of_orders":0,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"173.161.162.1","timestamp_opt":"2018-11-16T15:59:33+00:00","member_rating":2,"last_changed":"2019-05-07T14:02:31+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"source":"API
|
251
|
+
- Generic","tags_count":0,"tags":[],"list_id":"fcd2925136","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/CollectionResponse.json","schema":"https://us16.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PATCH.json"},{"rel":"upsert","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827","method":"PUT","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PUT.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827","method":"DELETE"},{"rel":"activity","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827/activity","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Activity/Response.json"},{"rel":"goals","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827/goals","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Goals/Response.json"},{"rel":"notes","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827/notes","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Notes/CollectionResponse.json"},{"rel":"delete_permanent","href":"https://us16.api.mailchimp.com/3.0/lists/fcd2925136/members/6105f78b98a017bdf1d0b40c62273827/actions/delete-permanent","method":"POST"}]}'
|
252
|
+
http_version:
|
253
|
+
recorded_at: Tue, 07 May 2019 14:03:23 GMT
|
254
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Workarea
|
4
|
+
class MailChimp::Ecommerce::SaveCartTest < TestCase
|
5
|
+
|
6
|
+
def test_cart_mail_chimp_exported_timestamp
|
7
|
+
order = create_placed_order
|
8
|
+
order.placed_at = nil
|
9
|
+
order.save!
|
10
|
+
|
11
|
+
Workarea::MailChimp::Ecommerce::SaveCart.new.perform(order.id)
|
12
|
+
|
13
|
+
order.reload
|
14
|
+
|
15
|
+
assert(order.cart_exported_to_mail_chimp_at.present?)
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_cart_not_exported_on_placed_orders
|
19
|
+
order = create_placed_order
|
20
|
+
|
21
|
+
Workarea::MailChimp::Ecommerce::SaveCart.new.perform(order.id)
|
22
|
+
|
23
|
+
order.reload
|
24
|
+
|
25
|
+
refute(order.cart_exported_to_mail_chimp_at.present?)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Workarea
|
4
|
+
class MailChimp::Ecommerce::SaveOrderTest < TestCase
|
5
|
+
|
6
|
+
def test_order_mail_chimp_exported_timestamp
|
7
|
+
order = create_placed_order
|
8
|
+
Workarea::MailChimp::Ecommerce::SaveOrder.new.perform(order.id)
|
9
|
+
|
10
|
+
order.reload
|
11
|
+
|
12
|
+
assert(order.exported_to_mail_chimp_at.present?)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Workarea
|
4
|
+
class MailChimp::Ecommerce::SaveProductTest < TestCase
|
5
|
+
|
6
|
+
def test_product_mail_chimp_exported_timestamp
|
7
|
+
product = create_product
|
8
|
+
Workarea::MailChimp::Ecommerce::SaveProduct.new.perform(product.id)
|
9
|
+
|
10
|
+
product.reload
|
11
|
+
|
12
|
+
assert(product.exported_to_mail_chimp_at.present?)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
require "workarea/mail_chimp/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "workarea-mail_chimp"
|
7
|
+
s.version = Workarea::MailChimp::VERSION
|
8
|
+
s.authors = ["Mark Platt", "Mike Dalton"]
|
9
|
+
s.email = ["mplatt@weblinc.com", "mdalton@weblinc.com"]
|
10
|
+
s.homepage = "http://www.workarea.com"
|
11
|
+
s.summary = "MailChimp plugin for the Workarea ecommerce platform"
|
12
|
+
s.description = "Rails Engine for MailChimp integrations"
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
|
16
|
+
s.required_ruby_version = ">= 2.3.0"
|
17
|
+
|
18
|
+
s.add_dependency "workarea", "~>3.x"
|
19
|
+
s.add_dependency "gibbon", "~>3.0"
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,212 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: workarea-mail_chimp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Platt
|
8
|
+
- Mike Dalton
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: workarea
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.x
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 3.x
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: gibbon
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.0'
|
42
|
+
description: Rails Engine for MailChimp integrations
|
43
|
+
email:
|
44
|
+
- mplatt@weblinc.com
|
45
|
+
- mdalton@weblinc.com
|
46
|
+
executables: []
|
47
|
+
extensions: []
|
48
|
+
extra_rdoc_files: []
|
49
|
+
files:
|
50
|
+
- ".editorconfig"
|
51
|
+
- ".gitignore"
|
52
|
+
- ".markdownlint.json"
|
53
|
+
- ".rails-rubocop.yml"
|
54
|
+
- ".rubocop.yml"
|
55
|
+
- ".scss-lint.yml"
|
56
|
+
- CHANGELOG.md
|
57
|
+
- Gemfile
|
58
|
+
- README.md
|
59
|
+
- Rakefile
|
60
|
+
- app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
|
61
|
+
- app/controllers/workarea/storefront/application_controller.decorator
|
62
|
+
- app/controllers/workarea/storefront/cart_items_controller.decorator
|
63
|
+
- app/controllers/workarea/storefront/checkout/addresses_controller.decorator
|
64
|
+
- app/controllers/workarea/storefront/checkout/shipping_controller.decorator
|
65
|
+
- app/controllers/workarea/storefront/users/accounts_controller.decorator
|
66
|
+
- app/models/workarea/catalog/product.decorator
|
67
|
+
- app/models/workarea/mail_chimp/group.rb
|
68
|
+
- app/models/workarea/mail_chimp/store.rb
|
69
|
+
- app/models/workarea/order.decorator
|
70
|
+
- app/models/workarea/user.decorator
|
71
|
+
- app/services/workarea/mail_chimp/address.rb
|
72
|
+
- app/services/workarea/mail_chimp/cart.rb
|
73
|
+
- app/services/workarea/mail_chimp/order.rb
|
74
|
+
- app/services/workarea/mail_chimp/product.rb
|
75
|
+
- app/services/workarea/mail_chimp/variant.rb
|
76
|
+
- app/view_models/workarea/storefront/user_view_model.decorator
|
77
|
+
- app/views/workarea/storefront/mail_chimp/_ecommerce_javascript.html.haml
|
78
|
+
- app/views/workarea/storefront/users/accounts/_edit.html.haml
|
79
|
+
- app/views/workarea/storefront/users/accounts/_email_interests.html.haml
|
80
|
+
- app/workers/workarea/mail_chimp/ecommerce/save_cart.rb
|
81
|
+
- app/workers/workarea/mail_chimp/ecommerce/save_order.rb
|
82
|
+
- app/workers/workarea/mail_chimp/ecommerce/save_product.rb
|
83
|
+
- app/workers/workarea/mail_chimp/list_subscriber.rb
|
84
|
+
- app/workers/workarea/mail_chimp/list_unsubscriber.rb
|
85
|
+
- app/workers/workarea/mail_chimp/subscription_edit.rb
|
86
|
+
- bin/rails
|
87
|
+
- config/initializers/appends.rb
|
88
|
+
- config/initializers/workarea.rb
|
89
|
+
- config/locales/en.yml
|
90
|
+
- lib/gibbon/request_decorator.rb
|
91
|
+
- lib/integrations/workarea/mail_chimp/bogus_api_request.rb
|
92
|
+
- lib/integrations/workarea/mail_chimp/bogus_gateway.rb
|
93
|
+
- lib/integrations/workarea/mail_chimp/bogus_request.rb
|
94
|
+
- lib/integrations/workarea/mail_chimp/gateway.rb
|
95
|
+
- lib/integrations/workarea/mail_chimp/gateway/list.rb
|
96
|
+
- lib/integrations/workarea/mail_chimp/gateway/members.rb
|
97
|
+
- lib/integrations/workarea/mail_chimp/gateway/subscribe_argument_builder.rb
|
98
|
+
- lib/tasks/mail_chimp.rake
|
99
|
+
- lib/workarea/mail_chimp.rb
|
100
|
+
- lib/workarea/mail_chimp/engine.rb
|
101
|
+
- lib/workarea/mail_chimp/errors.rb
|
102
|
+
- lib/workarea/mail_chimp/tasks/ecommerce.rb
|
103
|
+
- lib/workarea/mail_chimp/version.rb
|
104
|
+
- script/admin_ci
|
105
|
+
- script/ci
|
106
|
+
- script/core_ci
|
107
|
+
- script/plugins_ci
|
108
|
+
- script/storefront_ci
|
109
|
+
- test/dummy/Rakefile
|
110
|
+
- test/dummy/app/assets/config/manifest.js
|
111
|
+
- test/dummy/app/assets/images/.keep
|
112
|
+
- test/dummy/app/assets/javascripts/application.js
|
113
|
+
- test/dummy/app/assets/stylesheets/application.css
|
114
|
+
- test/dummy/app/controllers/application_controller.rb
|
115
|
+
- test/dummy/app/controllers/concerns/.keep
|
116
|
+
- test/dummy/app/helpers/application_helper.rb
|
117
|
+
- test/dummy/app/jobs/application_job.rb
|
118
|
+
- test/dummy/app/mailers/application_mailer.rb
|
119
|
+
- test/dummy/app/models/concerns/.keep
|
120
|
+
- test/dummy/app/views/layouts/application.html.erb
|
121
|
+
- test/dummy/app/views/layouts/mailer.html.erb
|
122
|
+
- test/dummy/app/views/layouts/mailer.text.erb
|
123
|
+
- test/dummy/bin/bundle
|
124
|
+
- test/dummy/bin/rails
|
125
|
+
- test/dummy/bin/rake
|
126
|
+
- test/dummy/bin/setup
|
127
|
+
- test/dummy/bin/update
|
128
|
+
- test/dummy/config.ru
|
129
|
+
- test/dummy/config/application.rb
|
130
|
+
- test/dummy/config/boot.rb
|
131
|
+
- test/dummy/config/cable.yml
|
132
|
+
- test/dummy/config/environment.rb
|
133
|
+
- test/dummy/config/environments/development.rb
|
134
|
+
- test/dummy/config/environments/production.rb
|
135
|
+
- test/dummy/config/environments/test.rb
|
136
|
+
- test/dummy/config/initializers/application_controller_renderer.rb
|
137
|
+
- test/dummy/config/initializers/assets.rb
|
138
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
139
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
140
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
141
|
+
- test/dummy/config/initializers/inflections.rb
|
142
|
+
- test/dummy/config/initializers/mime_types.rb
|
143
|
+
- test/dummy/config/initializers/new_framework_defaults.rb
|
144
|
+
- test/dummy/config/initializers/session_store.rb
|
145
|
+
- test/dummy/config/initializers/workarea.rb
|
146
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
147
|
+
- test/dummy/config/locales/en.yml
|
148
|
+
- test/dummy/config/puma.rb
|
149
|
+
- test/dummy/config/routes.rb
|
150
|
+
- test/dummy/config/secrets.yml
|
151
|
+
- test/dummy/config/spring.rb
|
152
|
+
- test/dummy/db/seeds.rb
|
153
|
+
- test/dummy/lib/assets/.keep
|
154
|
+
- test/factories/mail_chimp.rb
|
155
|
+
- test/integration/workarea/mailchimp/subscription_test.rb
|
156
|
+
- test/integration/workarea/mailchimp/tracking_params_test.rb
|
157
|
+
- test/integration/workarea/mailchimp/unsubscribe_test.rb
|
158
|
+
- test/integration/workarea/storefront/mail_chimp_order_test.rb
|
159
|
+
- test/integration/workarea/storefront/mail_chimp_product_test.rb
|
160
|
+
- test/integration/workarea/storefront/mail_chimp_site_javascript_test.rb
|
161
|
+
- test/lib/workarea/mailchimp/gateway/list_test.rb
|
162
|
+
- test/lib/workarea/mailchimp/gateway_test.rb
|
163
|
+
- test/lib/workarea/mailchimp/tasks/ecommerce_test.rb
|
164
|
+
- test/services/workarea/mail_chimp/cart_test.rb
|
165
|
+
- test/services/workarea/mail_chimp/order_test.rb
|
166
|
+
- test/services/workarea/mail_chimp/product_test.rb
|
167
|
+
- test/support/workarea/mail_chimp_api_config.rb
|
168
|
+
- test/system/workarea/storefront/campaign_tracking_test.rb
|
169
|
+
- test/system/workarea/storefront/group_test.rb
|
170
|
+
- test/system/workarea/storefront/mail_chimp_accounts_system_test.rb
|
171
|
+
- test/test_helper.rb
|
172
|
+
- test/vcr_cassettes/get_default_list_interests.yml
|
173
|
+
- test/vcr_cassettes/get_member_details_no_match.yml
|
174
|
+
- test/vcr_cassettes/get_member_details_unsubscribed.yml
|
175
|
+
- test/vcr_cassettes/interest_categories_read.yml
|
176
|
+
- test/vcr_cassettes/mail_chimp/tasks/create_store-successful.yml
|
177
|
+
- test/vcr_cassettes/mc_order_test.yml
|
178
|
+
- test/vcr_cassettes/mc_product_test.yml
|
179
|
+
- test/vcr_cassettes/subscribe_to_default_list.yml
|
180
|
+
- test/vcr_cassettes/subscribe_to_default_list_interest_groups.yml
|
181
|
+
- test/vcr_cassettes/subscribe_to_default_list_with_groupings.yml
|
182
|
+
- test/vcr_cassettes/subscribe_to_default_list_with_user_details.yml
|
183
|
+
- test/vcr_cassettes/unsubscribe_from_default_list.yml
|
184
|
+
- test/vcr_cassettes/update_member_on_default_list_change_email.yml
|
185
|
+
- test/vcr_cassettes/update_member_on_default_list_change_groupings.yml
|
186
|
+
- test/workers/workarea/mail_chimp/ecommerce/save_cart_test.rb
|
187
|
+
- test/workers/workarea/mail_chimp/ecommerce/save_order_test.rb
|
188
|
+
- test/workers/workarea/mail_chimp/ecommerce/save_product_test.rb
|
189
|
+
- workarea-mail_chimp.gemspec
|
190
|
+
homepage: http://www.workarea.com
|
191
|
+
licenses: []
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 2.3.0
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubygems_version: 3.0.4
|
209
|
+
signing_key:
|
210
|
+
specification_version: 4
|
211
|
+
summary: MailChimp plugin for the Workarea ecommerce platform
|
212
|
+
test_files: []
|