solidus_drip 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +26 -0
- data/README.md +55 -0
- data/Rakefile +32 -0
- data/app/assets/javascripts/spree/frontend/solidus_drip.js.erb +11 -0
- data/app/decorators/models/solidus_drip/spree/order_decorator.rb +47 -0
- data/app/decorators/models/solidus_drip/spree/variant_decorator.rb +25 -0
- data/config/initializers/default_host.rb +9 -0
- data/config/initializers/update_hooks.rb +3 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +5 -0
- data/lib/generators/solidus_drip/install/install_generator.rb +28 -0
- data/lib/solidus_drip.rb +9 -0
- data/lib/solidus_drip/base.rb +31 -0
- data/lib/solidus_drip/engine.rb +22 -0
- data/lib/solidus_drip/factories.rb +8 -0
- data/lib/solidus_drip/shopper_activity.rb +6 -0
- data/lib/solidus_drip/shopper_activity/order.rb +138 -0
- data/lib/solidus_drip/shopper_activity/product.rb +54 -0
- data/lib/solidus_drip/version.rb +5 -0
- data/spec/dummy/README.md +24 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/javascript/channels/consumer.js +6 -0
- data/spec/dummy/app/javascript/channels/index.js +5 -0
- data/spec/dummy/app/javascript/packs/application.js +17 -0
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +36 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/credentials.yml.enc +1 -0
- data/spec/dummy/config/database.yml +12 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +62 -0
- data/spec/dummy/config/environments/production.rb +112 -0
- data/spec/dummy/config/environments/test.rb +33 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/spree.rb +71 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/master.key +1 -0
- data/spec/dummy/config/routes.rb +9 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/migrate/20191101230305_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20191101230306_create_action_mailbox_tables.action_mailbox.rb +14 -0
- data/spec/dummy/db/migrate/20191101230307_create_action_text_tables.action_text.rb +14 -0
- data/spec/dummy/db/migrate/20191101230308_solidus_one_four.spree.rb +1103 -0
- data/spec/dummy/db/migrate/20191101230309_create_spree_wallet_payment_sources.spree.rb +28 -0
- data/spec/dummy/db/migrate/20191101230310_migrate_credit_cards_to_wallet_payment_sources.spree.rb +30 -0
- data/spec/dummy/db/migrate/20191101230311_remove_is_default_from_prices.spree.rb +8 -0
- data/spec/dummy/db/migrate/20191101230312_remove_currency_from_line_items.spree.rb +8 -0
- data/spec/dummy/db/migrate/20191101230313_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +31 -0
- data/spec/dummy/db/migrate/20191101230314_create_spree_promotion_code_batch.spree.rb +39 -0
- data/spec/dummy/db/migrate/20191101230315_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +23 -0
- data/spec/dummy/db/migrate/20191101230316_add_index_to_spree_payments_number.spree.rb +8 -0
- data/spec/dummy/db/migrate/20191101230317_remove_spree_store_credits_column.spree.rb +8 -0
- data/spec/dummy/db/migrate/20191101230318_add_lft_and_rgt_indexes_to_taxons.spree.rb +9 -0
- data/spec/dummy/db/migrate/20191101230319_remove_order_id_from_inventory_units.spree.rb +31 -0
- data/spec/dummy/db/migrate/20191101230320_transform_tax_rate_category_relation.spree.rb +51 -0
- data/spec/dummy/db/migrate/20191101230321_add_roles_unique_constraints.spree.rb +9 -0
- data/spec/dummy/db/migrate/20191101230322_add_time_range_to_tax_rate.spree.rb +9 -0
- data/spec/dummy/db/migrate/20191101230323_rename_bogus_gateways.spree.rb +19 -0
- data/spec/dummy/db/migrate/20191101230324_remove_default_tax_from_spree_zones.spree.rb +8 -0
- data/spec/dummy/db/migrate/20191101230325_create_promotion_rule_stores.spree.rb +13 -0
- data/spec/dummy/db/migrate/20191101230326_create_store_shipping_methods.spree.rb +13 -0
- data/spec/dummy/db/migrate/20191101230327_add_available_locales_to_stores.spree.rb +10 -0
- data/spec/dummy/db/migrate/20191101230328_add_amount_remaining_to_store_credit_events.spree.rb +62 -0
- data/spec/dummy/db/migrate/20191101230329_add_join_characters_to_promotion_code_batch.spree.rb +12 -0
- data/spec/dummy/db/migrate/20191101230330_create_spree_store_credit_reasons_table.spree.rb +56 -0
- data/spec/dummy/db/migrate/20191101230331_remove_code_from_spree_promotions.spree.rb +43 -0
- data/spec/dummy/db/migrate/20191101230332_drop_spree_store_credit_update_reasons.spree.rb +20 -0
- data/spec/dummy/db/migrate/20191101230333_add_api_key_to_spree_users.spree_api.rb +10 -0
- data/spec/dummy/db/migrate/20191101230334_resize_api_key_field.spree_api.rb +10 -0
- data/spec/dummy/db/migrate/20191101230335_rename_api_key_to_spree_api_key.spree_api.rb +10 -0
- data/spec/dummy/db/migrate/20191101230336_add_index_to_user_spree_api_key.spree_api.rb +10 -0
- data/spec/dummy/db/migrate/20191101230337_create_users.solidus_auth.rb +32 -0
- data/spec/dummy/db/migrate/20191101230338_rename_columns_for_devise.solidus_auth.rb +40 -0
- data/spec/dummy/db/migrate/20191101230339_convert_user_remember_field.solidus_auth.rb +14 -0
- data/spec/dummy/db/migrate/20191101230340_add_reset_password_sent_at_to_spree_users.solidus_auth.rb +11 -0
- data/spec/dummy/db/migrate/20191101230341_make_users_email_index_unique.solidus_auth.rb +12 -0
- data/spec/dummy/db/migrate/20191101230342_add_deleted_at_to_users.solidus_auth.rb +9 -0
- data/spec/dummy/db/migrate/20191101230343_add_confirmable_to_users.solidus_auth.rb +10 -0
- data/spec/dummy/db/migrate/20191101230344_add_reset_password_token_index_to_spree_users.solidus_auth.rb +35 -0
- data/spec/dummy/db/schema.rb +1211 -0
- data/spec/dummy/db/seeds.rb +10 -0
- data/spec/dummy/db/solidus_test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +12695 -0
- data/spec/dummy/package.json +11 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +1 -0
- data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +11 -0
- data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +11 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +10 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +10 -0
- data/spec/models/order_spec.rb +45 -0
- data/spec/models/variant_spec.rb +27 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/stub_drip_responses.rb +13 -0
- metadata +495 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
ab3ee7b91b0ade22c956fee9f69f75b112dc5d0feb026d6cd702765df05f8b243b4418d433f957c267d7405e3f5e4df49c53c1a4c5b19367c5764effdd386473
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require rails-ujs
|
9
|
+
//= require spree/backend
|
10
|
+
//= require_tree .
|
11
|
+
//= require spree/backend/solidus_drip
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require rails-ujs
|
9
|
+
//= require spree/frontend
|
10
|
+
//= require_tree .
|
11
|
+
//= require spree/frontend/solidus_drip
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*
|
6
|
+
*= require spree/backend
|
7
|
+
*= require_self
|
8
|
+
*= require_tree .
|
9
|
+
*= require spree/backend/solidus_drip
|
10
|
+
*/
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*
|
6
|
+
*= require spree/frontend
|
7
|
+
*= require_self
|
8
|
+
*= require_tree .
|
9
|
+
*= require spree/frontend/solidus_drip
|
10
|
+
*/
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Spree::Order do
|
6
|
+
let(:order) { create(:order_ready_to_complete) }
|
7
|
+
let(:drip) { order.drip }
|
8
|
+
|
9
|
+
describe '#create_cart_activity' do
|
10
|
+
it "triggers on create" do
|
11
|
+
expect_any_instance_of(SolidusDrip::ShopperActivity::Order).
|
12
|
+
to(receive(:cart_activity).with('created'))
|
13
|
+
create(:order)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#update_drip_activity' do
|
18
|
+
it "triggers as a cart update_hook if order is not completed" do
|
19
|
+
expect(drip).to(receive(:cart_activity).with('updated'))
|
20
|
+
order.recalculate
|
21
|
+
end
|
22
|
+
|
23
|
+
it "triggers placed event on complete" do
|
24
|
+
expect(drip).to(receive(:order_activity).with('placed'))
|
25
|
+
order.complete!
|
26
|
+
end
|
27
|
+
|
28
|
+
context "completed order" do
|
29
|
+
let!(:order) { create(:completed_order_with_pending_payment) }
|
30
|
+
|
31
|
+
it "triggers fulfilled event on shipments being shipped" do
|
32
|
+
expect(drip).to(receive(:order_activity).with('updated'))
|
33
|
+
expect(drip).to(receive(:order_activity).with('fulfilled'))
|
34
|
+
order.shipments.update(state: 'ready')
|
35
|
+
order.shipments.map(&:ship!)
|
36
|
+
end
|
37
|
+
|
38
|
+
it "triggers paid event on payments being captured" do
|
39
|
+
expect(drip).to(receive(:order_activity).with('updated'))
|
40
|
+
expect(drip).to(receive(:order_activity).with('paid'))
|
41
|
+
order.payments.map(&:complete!)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Spree::Variant do
|
6
|
+
let(:variant) { create(:variant) }
|
7
|
+
let(:drip) { variant.drip }
|
8
|
+
|
9
|
+
describe 'action hooks' do
|
10
|
+
it "triggers on create" do
|
11
|
+
product = variant.product
|
12
|
+
expect_any_instance_of(SolidusDrip::ShopperActivity::Product).
|
13
|
+
to(receive(:product_activity).with('created'))
|
14
|
+
product.variants.create
|
15
|
+
end
|
16
|
+
|
17
|
+
it "triggers on update" do
|
18
|
+
expect(drip).to(receive(:product_activity).with('updated'))
|
19
|
+
variant.update(updated_at: Time.current)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "triggers on destroy" do
|
23
|
+
expect(drip).to(receive(:product_activity).with('deleted'))
|
24
|
+
variant.destroy
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Run Coverage report
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter 'spec/dummy'
|
7
|
+
add_group 'Controllers', 'app/controllers'
|
8
|
+
add_group 'Helpers', 'app/helpers'
|
9
|
+
add_group 'Mailers', 'app/mailers'
|
10
|
+
add_group 'Models', 'app/models'
|
11
|
+
add_group 'Views', 'app/views'
|
12
|
+
add_group 'Libraries', 'lib'
|
13
|
+
end
|
14
|
+
|
15
|
+
# Configure Rails Environment
|
16
|
+
ENV['RAILS_ENV'] = 'test'
|
17
|
+
|
18
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
19
|
+
|
20
|
+
# Requires factories and other useful helpers defined in spree_core.
|
21
|
+
require 'solidus_support/extension/feature_helper'
|
22
|
+
require 'pry-byebug'
|
23
|
+
|
24
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
25
|
+
# in spec/support/ and its subdirectories.
|
26
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
27
|
+
|
28
|
+
# Requires factories defined in lib/solidus_drip/factories.rb
|
29
|
+
require 'solidus_drip/factories'
|
30
|
+
|
31
|
+
RSpec.configure do |config|
|
32
|
+
config.infer_spec_type_from_file_location!
|
33
|
+
config.use_transactional_fixtures = false
|
34
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Stub requests to Drip API
|
4
|
+
RSpec.configure do |config|
|
5
|
+
config.before(:each) do
|
6
|
+
response = Drip::Response.new(200, {
|
7
|
+
"request_id": "990c99a7-5cba-42e8-8f36-aec3419186ef"
|
8
|
+
})
|
9
|
+
allow_any_instance_of(Drip::Client).to receive(:create_cart_activity_event).and_return(response)
|
10
|
+
allow_any_instance_of(Drip::Client).to receive(:create_order_activity_event).and_return(response)
|
11
|
+
allow_any_instance_of(Drip::Client).to receive(:create_product_activity_event).and_return(response)
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,495 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: solidus_drip
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eric Saupe
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: drip-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: solidus_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coffee-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: database_cleaner
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: ffaker
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: gem-release
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: poltergeist
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: sass-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: simplecov
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: sqlite3
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: webdrivers
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
description: Solidus integration for Drip
|
238
|
+
email: esaupe@deseretbook.com
|
239
|
+
executables: []
|
240
|
+
extensions: []
|
241
|
+
extra_rdoc_files: []
|
242
|
+
files:
|
243
|
+
- LICENSE
|
244
|
+
- README.md
|
245
|
+
- Rakefile
|
246
|
+
- app/assets/javascripts/spree/frontend/solidus_drip.js.erb
|
247
|
+
- app/decorators/models/solidus_drip/spree/order_decorator.rb
|
248
|
+
- app/decorators/models/solidus_drip/spree/variant_decorator.rb
|
249
|
+
- config/initializers/default_host.rb
|
250
|
+
- config/initializers/update_hooks.rb
|
251
|
+
- config/locales/en.yml
|
252
|
+
- config/routes.rb
|
253
|
+
- lib/generators/solidus_drip/install/install_generator.rb
|
254
|
+
- lib/solidus_drip.rb
|
255
|
+
- lib/solidus_drip/base.rb
|
256
|
+
- lib/solidus_drip/engine.rb
|
257
|
+
- lib/solidus_drip/factories.rb
|
258
|
+
- lib/solidus_drip/shopper_activity.rb
|
259
|
+
- lib/solidus_drip/shopper_activity/order.rb
|
260
|
+
- lib/solidus_drip/shopper_activity/product.rb
|
261
|
+
- lib/solidus_drip/version.rb
|
262
|
+
- spec/dummy/README.md
|
263
|
+
- spec/dummy/Rakefile
|
264
|
+
- spec/dummy/app/assets/config/manifest.js
|
265
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
266
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
267
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
268
|
+
- spec/dummy/app/controllers/application_controller.rb
|
269
|
+
- spec/dummy/app/helpers/application_helper.rb
|
270
|
+
- spec/dummy/app/javascript/channels/consumer.js
|
271
|
+
- spec/dummy/app/javascript/channels/index.js
|
272
|
+
- spec/dummy/app/javascript/packs/application.js
|
273
|
+
- spec/dummy/app/jobs/application_job.rb
|
274
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
275
|
+
- spec/dummy/app/models/application_record.rb
|
276
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
277
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
278
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
279
|
+
- spec/dummy/bin/rails
|
280
|
+
- spec/dummy/bin/rake
|
281
|
+
- spec/dummy/bin/setup
|
282
|
+
- spec/dummy/bin/yarn
|
283
|
+
- spec/dummy/config.ru
|
284
|
+
- spec/dummy/config/application.rb
|
285
|
+
- spec/dummy/config/boot.rb
|
286
|
+
- spec/dummy/config/cable.yml
|
287
|
+
- spec/dummy/config/credentials.yml.enc
|
288
|
+
- spec/dummy/config/database.yml
|
289
|
+
- spec/dummy/config/environment.rb
|
290
|
+
- spec/dummy/config/environments/development.rb
|
291
|
+
- spec/dummy/config/environments/production.rb
|
292
|
+
- spec/dummy/config/environments/test.rb
|
293
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
294
|
+
- spec/dummy/config/initializers/assets.rb
|
295
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
296
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
297
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
298
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
299
|
+
- spec/dummy/config/initializers/inflections.rb
|
300
|
+
- spec/dummy/config/initializers/mime_types.rb
|
301
|
+
- spec/dummy/config/initializers/spree.rb
|
302
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
303
|
+
- spec/dummy/config/locales/en.yml
|
304
|
+
- spec/dummy/config/master.key
|
305
|
+
- spec/dummy/config/routes.rb
|
306
|
+
- spec/dummy/config/storage.yml
|
307
|
+
- spec/dummy/db/migrate/20191101230305_create_active_storage_tables.active_storage.rb
|
308
|
+
- spec/dummy/db/migrate/20191101230306_create_action_mailbox_tables.action_mailbox.rb
|
309
|
+
- spec/dummy/db/migrate/20191101230307_create_action_text_tables.action_text.rb
|
310
|
+
- spec/dummy/db/migrate/20191101230308_solidus_one_four.spree.rb
|
311
|
+
- spec/dummy/db/migrate/20191101230309_create_spree_wallet_payment_sources.spree.rb
|
312
|
+
- spec/dummy/db/migrate/20191101230310_migrate_credit_cards_to_wallet_payment_sources.spree.rb
|
313
|
+
- spec/dummy/db/migrate/20191101230311_remove_is_default_from_prices.spree.rb
|
314
|
+
- spec/dummy/db/migrate/20191101230312_remove_currency_from_line_items.spree.rb
|
315
|
+
- spec/dummy/db/migrate/20191101230313_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb
|
316
|
+
- spec/dummy/db/migrate/20191101230314_create_spree_promotion_code_batch.spree.rb
|
317
|
+
- spec/dummy/db/migrate/20191101230315_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb
|
318
|
+
- spec/dummy/db/migrate/20191101230316_add_index_to_spree_payments_number.spree.rb
|
319
|
+
- spec/dummy/db/migrate/20191101230317_remove_spree_store_credits_column.spree.rb
|
320
|
+
- spec/dummy/db/migrate/20191101230318_add_lft_and_rgt_indexes_to_taxons.spree.rb
|
321
|
+
- spec/dummy/db/migrate/20191101230319_remove_order_id_from_inventory_units.spree.rb
|
322
|
+
- spec/dummy/db/migrate/20191101230320_transform_tax_rate_category_relation.spree.rb
|
323
|
+
- spec/dummy/db/migrate/20191101230321_add_roles_unique_constraints.spree.rb
|
324
|
+
- spec/dummy/db/migrate/20191101230322_add_time_range_to_tax_rate.spree.rb
|
325
|
+
- spec/dummy/db/migrate/20191101230323_rename_bogus_gateways.spree.rb
|
326
|
+
- spec/dummy/db/migrate/20191101230324_remove_default_tax_from_spree_zones.spree.rb
|
327
|
+
- spec/dummy/db/migrate/20191101230325_create_promotion_rule_stores.spree.rb
|
328
|
+
- spec/dummy/db/migrate/20191101230326_create_store_shipping_methods.spree.rb
|
329
|
+
- spec/dummy/db/migrate/20191101230327_add_available_locales_to_stores.spree.rb
|
330
|
+
- spec/dummy/db/migrate/20191101230328_add_amount_remaining_to_store_credit_events.spree.rb
|
331
|
+
- spec/dummy/db/migrate/20191101230329_add_join_characters_to_promotion_code_batch.spree.rb
|
332
|
+
- spec/dummy/db/migrate/20191101230330_create_spree_store_credit_reasons_table.spree.rb
|
333
|
+
- spec/dummy/db/migrate/20191101230331_remove_code_from_spree_promotions.spree.rb
|
334
|
+
- spec/dummy/db/migrate/20191101230332_drop_spree_store_credit_update_reasons.spree.rb
|
335
|
+
- spec/dummy/db/migrate/20191101230333_add_api_key_to_spree_users.spree_api.rb
|
336
|
+
- spec/dummy/db/migrate/20191101230334_resize_api_key_field.spree_api.rb
|
337
|
+
- spec/dummy/db/migrate/20191101230335_rename_api_key_to_spree_api_key.spree_api.rb
|
338
|
+
- spec/dummy/db/migrate/20191101230336_add_index_to_user_spree_api_key.spree_api.rb
|
339
|
+
- spec/dummy/db/migrate/20191101230337_create_users.solidus_auth.rb
|
340
|
+
- spec/dummy/db/migrate/20191101230338_rename_columns_for_devise.solidus_auth.rb
|
341
|
+
- spec/dummy/db/migrate/20191101230339_convert_user_remember_field.solidus_auth.rb
|
342
|
+
- spec/dummy/db/migrate/20191101230340_add_reset_password_sent_at_to_spree_users.solidus_auth.rb
|
343
|
+
- spec/dummy/db/migrate/20191101230341_make_users_email_index_unique.solidus_auth.rb
|
344
|
+
- spec/dummy/db/migrate/20191101230342_add_deleted_at_to_users.solidus_auth.rb
|
345
|
+
- spec/dummy/db/migrate/20191101230343_add_confirmable_to_users.solidus_auth.rb
|
346
|
+
- spec/dummy/db/migrate/20191101230344_add_reset_password_token_index_to_spree_users.solidus_auth.rb
|
347
|
+
- spec/dummy/db/schema.rb
|
348
|
+
- spec/dummy/db/seeds.rb
|
349
|
+
- spec/dummy/db/solidus_test.sqlite3
|
350
|
+
- spec/dummy/log/test.log
|
351
|
+
- spec/dummy/package.json
|
352
|
+
- spec/dummy/public/404.html
|
353
|
+
- spec/dummy/public/422.html
|
354
|
+
- spec/dummy/public/500.html
|
355
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
356
|
+
- spec/dummy/public/apple-touch-icon.png
|
357
|
+
- spec/dummy/public/favicon.ico
|
358
|
+
- spec/dummy/tmp/development_secret.txt
|
359
|
+
- spec/dummy/vendor/assets/javascripts/spree/backend/all.js
|
360
|
+
- spec/dummy/vendor/assets/javascripts/spree/frontend/all.js
|
361
|
+
- spec/dummy/vendor/assets/stylesheets/spree/backend/all.css
|
362
|
+
- spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css
|
363
|
+
- spec/models/order_spec.rb
|
364
|
+
- spec/models/variant_spec.rb
|
365
|
+
- spec/spec_helper.rb
|
366
|
+
- spec/support/stub_drip_responses.rb
|
367
|
+
homepage: https://solidus.io/
|
368
|
+
licenses:
|
369
|
+
- BSD-3-Clause
|
370
|
+
metadata: {}
|
371
|
+
post_install_message:
|
372
|
+
rdoc_options: []
|
373
|
+
require_paths:
|
374
|
+
- lib
|
375
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
376
|
+
requirements:
|
377
|
+
- - ">="
|
378
|
+
- !ruby/object:Gem::Version
|
379
|
+
version: '0'
|
380
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
381
|
+
requirements:
|
382
|
+
- - ">="
|
383
|
+
- !ruby/object:Gem::Version
|
384
|
+
version: '0'
|
385
|
+
requirements: []
|
386
|
+
rubygems_version: 3.0.3
|
387
|
+
signing_key:
|
388
|
+
specification_version: 4
|
389
|
+
summary: Solidus integration for Drip
|
390
|
+
test_files:
|
391
|
+
- spec/spec_helper.rb
|
392
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
393
|
+
- spec/dummy/app/models/application_record.rb
|
394
|
+
- spec/dummy/app/javascript/packs/application.js
|
395
|
+
- spec/dummy/app/javascript/channels/index.js
|
396
|
+
- spec/dummy/app/javascript/channels/consumer.js
|
397
|
+
- spec/dummy/app/jobs/application_job.rb
|
398
|
+
- spec/dummy/app/controllers/application_controller.rb
|
399
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
400
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
401
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
402
|
+
- spec/dummy/app/assets/config/manifest.js
|
403
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
404
|
+
- spec/dummy/app/helpers/application_helper.rb
|
405
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
406
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
407
|
+
- spec/dummy/bin/rake
|
408
|
+
- spec/dummy/bin/setup
|
409
|
+
- spec/dummy/bin/yarn
|
410
|
+
- spec/dummy/bin/rails
|
411
|
+
- spec/dummy/config/routes.rb
|
412
|
+
- spec/dummy/config/locales/en.yml
|
413
|
+
- spec/dummy/config/cable.yml
|
414
|
+
- spec/dummy/config/environments/production.rb
|
415
|
+
- spec/dummy/config/environments/development.rb
|
416
|
+
- spec/dummy/config/environments/test.rb
|
417
|
+
- spec/dummy/config/master.key
|
418
|
+
- spec/dummy/config/environment.rb
|
419
|
+
- spec/dummy/config/storage.yml
|
420
|
+
- spec/dummy/config/application.rb
|
421
|
+
- spec/dummy/config/credentials.yml.enc
|
422
|
+
- spec/dummy/config/database.yml
|
423
|
+
- spec/dummy/config/boot.rb
|
424
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
425
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
426
|
+
- spec/dummy/config/initializers/mime_types.rb
|
427
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
428
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
429
|
+
- spec/dummy/config/initializers/assets.rb
|
430
|
+
- spec/dummy/config/initializers/spree.rb
|
431
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
432
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
433
|
+
- spec/dummy/config/initializers/inflections.rb
|
434
|
+
- spec/dummy/config.ru
|
435
|
+
- spec/dummy/README.md
|
436
|
+
- spec/dummy/Rakefile
|
437
|
+
- spec/dummy/public/favicon.ico
|
438
|
+
- spec/dummy/public/422.html
|
439
|
+
- spec/dummy/public/apple-touch-icon.png
|
440
|
+
- spec/dummy/public/500.html
|
441
|
+
- spec/dummy/public/404.html
|
442
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
443
|
+
- spec/dummy/package.json
|
444
|
+
- spec/dummy/db/schema.rb
|
445
|
+
- spec/dummy/db/seeds.rb
|
446
|
+
- spec/dummy/db/solidus_test.sqlite3
|
447
|
+
- spec/dummy/db/migrate/20191101230306_create_action_mailbox_tables.action_mailbox.rb
|
448
|
+
- spec/dummy/db/migrate/20191101230319_remove_order_id_from_inventory_units.spree.rb
|
449
|
+
- spec/dummy/db/migrate/20191101230311_remove_is_default_from_prices.spree.rb
|
450
|
+
- spec/dummy/db/migrate/20191101230313_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb
|
451
|
+
- spec/dummy/db/migrate/20191101230305_create_active_storage_tables.active_storage.rb
|
452
|
+
- spec/dummy/db/migrate/20191101230338_rename_columns_for_devise.solidus_auth.rb
|
453
|
+
- spec/dummy/db/migrate/20191101230308_solidus_one_four.spree.rb
|
454
|
+
- spec/dummy/db/migrate/20191101230329_add_join_characters_to_promotion_code_batch.spree.rb
|
455
|
+
- spec/dummy/db/migrate/20191101230337_create_users.solidus_auth.rb
|
456
|
+
- spec/dummy/db/migrate/20191101230331_remove_code_from_spree_promotions.spree.rb
|
457
|
+
- spec/dummy/db/migrate/20191101230332_drop_spree_store_credit_update_reasons.spree.rb
|
458
|
+
- spec/dummy/db/migrate/20191101230318_add_lft_and_rgt_indexes_to_taxons.spree.rb
|
459
|
+
- spec/dummy/db/migrate/20191101230307_create_action_text_tables.action_text.rb
|
460
|
+
- spec/dummy/db/migrate/20191101230341_make_users_email_index_unique.solidus_auth.rb
|
461
|
+
- spec/dummy/db/migrate/20191101230334_resize_api_key_field.spree_api.rb
|
462
|
+
- spec/dummy/db/migrate/20191101230340_add_reset_password_sent_at_to_spree_users.solidus_auth.rb
|
463
|
+
- spec/dummy/db/migrate/20191101230309_create_spree_wallet_payment_sources.spree.rb
|
464
|
+
- spec/dummy/db/migrate/20191101230339_convert_user_remember_field.solidus_auth.rb
|
465
|
+
- spec/dummy/db/migrate/20191101230344_add_reset_password_token_index_to_spree_users.solidus_auth.rb
|
466
|
+
- spec/dummy/db/migrate/20191101230336_add_index_to_user_spree_api_key.spree_api.rb
|
467
|
+
- spec/dummy/db/migrate/20191101230328_add_amount_remaining_to_store_credit_events.spree.rb
|
468
|
+
- spec/dummy/db/migrate/20191101230312_remove_currency_from_line_items.spree.rb
|
469
|
+
- spec/dummy/db/migrate/20191101230333_add_api_key_to_spree_users.spree_api.rb
|
470
|
+
- spec/dummy/db/migrate/20191101230315_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb
|
471
|
+
- spec/dummy/db/migrate/20191101230321_add_roles_unique_constraints.spree.rb
|
472
|
+
- spec/dummy/db/migrate/20191101230316_add_index_to_spree_payments_number.spree.rb
|
473
|
+
- spec/dummy/db/migrate/20191101230325_create_promotion_rule_stores.spree.rb
|
474
|
+
- spec/dummy/db/migrate/20191101230324_remove_default_tax_from_spree_zones.spree.rb
|
475
|
+
- spec/dummy/db/migrate/20191101230335_rename_api_key_to_spree_api_key.spree_api.rb
|
476
|
+
- spec/dummy/db/migrate/20191101230323_rename_bogus_gateways.spree.rb
|
477
|
+
- spec/dummy/db/migrate/20191101230330_create_spree_store_credit_reasons_table.spree.rb
|
478
|
+
- spec/dummy/db/migrate/20191101230314_create_spree_promotion_code_batch.spree.rb
|
479
|
+
- spec/dummy/db/migrate/20191101230310_migrate_credit_cards_to_wallet_payment_sources.spree.rb
|
480
|
+
- spec/dummy/db/migrate/20191101230343_add_confirmable_to_users.solidus_auth.rb
|
481
|
+
- spec/dummy/db/migrate/20191101230342_add_deleted_at_to_users.solidus_auth.rb
|
482
|
+
- spec/dummy/db/migrate/20191101230322_add_time_range_to_tax_rate.spree.rb
|
483
|
+
- spec/dummy/db/migrate/20191101230317_remove_spree_store_credits_column.spree.rb
|
484
|
+
- spec/dummy/db/migrate/20191101230326_create_store_shipping_methods.spree.rb
|
485
|
+
- spec/dummy/db/migrate/20191101230327_add_available_locales_to_stores.spree.rb
|
486
|
+
- spec/dummy/db/migrate/20191101230320_transform_tax_rate_category_relation.spree.rb
|
487
|
+
- spec/dummy/log/test.log
|
488
|
+
- spec/dummy/tmp/development_secret.txt
|
489
|
+
- spec/dummy/vendor/assets/javascripts/spree/frontend/all.js
|
490
|
+
- spec/dummy/vendor/assets/javascripts/spree/backend/all.js
|
491
|
+
- spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css
|
492
|
+
- spec/dummy/vendor/assets/stylesheets/spree/backend/all.css
|
493
|
+
- spec/models/variant_spec.rb
|
494
|
+
- spec/models/order_spec.rb
|
495
|
+
- spec/support/stub_drip_responses.rb
|