From debcd1121b28f6dbc7ab392f7ccab24763182523 Mon Sep 17 00:00:00 2001 From: Alan Hill Date: Tue, 18 Jul 2017 16:38:04 -0400 Subject: [PATCH] README, Changelog, version bump --- .byebug_history | 5 ----- CHANGELOG.md | 4 ++++ README.md | 13 +++++++++++++ lib/shopify_app/version.rb | 2 +- 4 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 .byebug_history diff --git a/.byebug_history b/.byebug_history deleted file mode 100644 index 0c11aad38..000000000 --- a/.byebug_history +++ /dev/null @@ -1,5 +0,0 @@ -exit -config[:inline].present? -config[:job].present? -config -next diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fe1ad2b3..2cd54f23f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +7.3.1 +----- +* Add an after_authenticate job which will be run once the shop is authenticated. [[#431]](https://github.com/Shopify/shopify_app/pull/432) + 7.3.0 ----- * Bump required omniauth-shopify-oauth2 version to 1.2.0. diff --git a/README.md b/README.md index c445deab4..d70c30a62 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Table of Contents * [Home Controller Generator](#home-controller-generator) * [App Proxy Controller Generator](#app-proxy-controller-generator) * [Controllers, Routes and Views](#controllers-routes-and-views) + * [After Authenticate Job and Generator](#after-authenticate-job-an-generator) * [**Mounting the Engine**](#mounting-the-engine) * [**Managing Api Keys**](#managing-api-keys) * [**WebhooksManager**](#webhooksmanager) @@ -323,6 +324,18 @@ end Create your app proxy url in the [Shopify Partners' Dashboard](https://app.shopify.com/services/partners/api_clients), making sure to point it to `https://your_app_website.com/app_proxy`. ![Creating an App Proxy](/images/app-proxy-screenshot.png) +### After Authenticate Job and Generator + +You can generate an after authenticate job by running `shopify_app:add_after_authenticate_job` which will add a line in `shopify_app.rb` giving the option +to run a job of your choosing either inline or asynchronously after the shop has authenticated. By default the job will run asynchronously unless `inline: false` +is specified. + +```ruby +ShopifyApp.configure do |config| + config.add_after_authenticate_job = { job: Shopify::AfterAuthenticateJob, inline: true } +end +``` + Troubleshooting --------------- diff --git a/lib/shopify_app/version.rb b/lib/shopify_app/version.rb index 080ed7829..12acd8d93 100644 --- a/lib/shopify_app/version.rb +++ b/lib/shopify_app/version.rb @@ -1,3 +1,3 @@ module ShopifyApp - VERSION = '7.3.0' + VERSION = '7.3.1' end