shopify_app 17.0.0 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +20 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -4
- data/docs/Releasing.md +4 -3
- data/lib/generators/shopify_app/install/templates/shopify_app.rb.tt +15 -13
- data/lib/shopify_app/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8903612dd539f6990fa6931bc28a2e2a8d37ba5f1177baea4d5326f41f581dca
|
4
|
+
data.tar.gz: 1760faccb6a46bd3d15a7e5635f33d31d492d81b14a07331e0f778e4e15ff974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 334bd5cb712bd1823133cdfc095a67c547901699bf7dc9b924fb60d009077e0c89629d5e661c15b60e8e5a1fb0ca4656726b75527db76d6db725f6df48b20731
|
7
|
+
data.tar.gz: a4d52f1d592da1644015edd08f2b153c762cab5a2762426d4406a3105d63ee66e257e65219b56d0c02682e9fc9836890f5cd07c0332e55bf0f9c05d8fd0c49ab
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Create Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- 'v*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
create-release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- name: Extract tag name
|
13
|
+
id: tag
|
14
|
+
run: echo "::set-output name=value::${GITHUB_REF##*/}"
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
|
17
|
+
- name: Create Release # https://hub.github.com/hub-release.1.html
|
18
|
+
env:
|
19
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
20
|
+
run: hub release create ${{ steps.tag.outputs.value }}
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
Unreleased
|
2
2
|
----------
|
3
3
|
|
4
|
+
17.0.1 (January 18, 2021)
|
5
|
+
------
|
6
|
+
* Don't attempt to read Shopify environment variables when the generators are running, since they may not be present yet [#1144](https://github.com/Shopify/shopify_app/pull/1144)
|
7
|
+
|
4
8
|
17.0.0 (January 13, 2021)
|
5
9
|
------
|
6
10
|
* Rails 6.1 is not yet supported [#1134](https://github.com/Shopify/shopify_app/pull/1134)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -75,17 +75,19 @@ Generators
|
|
75
75
|
----------
|
76
76
|
|
77
77
|
### API Keys
|
78
|
+
<!-- This anchor name `#api-keys` is linked to from user output in `templates/shopify_app.rb.tt` so beware of changing -->
|
79
|
+
Before starting the app, you'll need to ensure it can read the Shopify environment variables `SHOPIFY_API_KEY` and `SHOPIFY_API_SECRET`.
|
78
80
|
|
79
|
-
|
80
|
-
|
81
|
-
A common approach is to use the [dotenv-rails](https://github.com/bkeepers/dotenv) gem, along with an `.env` file in the following format:
|
81
|
+
In a development environment, a common approach is to use the [dotenv-rails](https://github.com/bkeepers/dotenv) gem, along with an `.env` file in the following format:
|
82
82
|
|
83
83
|
```
|
84
84
|
SHOPIFY_API_KEY=your api key
|
85
85
|
SHOPIFY_API_SECRET=your api secret
|
86
86
|
```
|
87
87
|
|
88
|
-
These values can be found on the "App Setup" page in the [Shopify Partners Dashboard][dashboard].
|
88
|
+
These values can be found on the "App Setup" page in the [Shopify Partners Dashboard][dashboard].
|
89
|
+
(If you are using [shopify-app-cli](https://github.com/Shopify/shopify-app-cli) this `.env` file will be created automatically).
|
90
|
+
If you are checking your code into a code repository, ensure your `.gitignore` prevents your `.env` file from being checked into any publicly accessible code.
|
89
91
|
|
90
92
|
### Default Generator
|
91
93
|
|
data/docs/Releasing.md
CHANGED
@@ -11,9 +11,10 @@
|
|
11
11
|
1. Merge your pull request
|
12
12
|
1. Checkout and pull from master so you have the latest version of the shopify_app
|
13
13
|
1. Tag the HEAD with the version
|
14
|
-
```bash
|
15
|
-
$ git tag -f vX.Y.Z && git push --tags --force
|
16
|
-
```
|
14
|
+
```bash
|
15
|
+
$ git tag -f vX.Y.Z && git push --tags --force
|
16
|
+
```
|
17
|
+
1. Check that Create Release workflow successfully runs
|
17
18
|
1. Use Shipit to build and push the gem
|
18
19
|
|
19
20
|
If you see an error like 'You need to create the vX.Y.X tag first', clear git
|
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
unless defined? Rails::Generators
|
2
|
+
ShopifyApp.configure do |config|
|
3
|
+
config.application_name = "<%= @application_name %>"
|
4
|
+
config.api_key = ENV.fetch('SHOPIFY_API_KEY', '').presence || raise('Missing SHOPIFY_API_KEY. See https://github.com/Shopify/shopify_app#api-keys')
|
5
|
+
config.secret = ENV.fetch('SHOPIFY_API_SECRET', '').presence || raise('Missing SHOPIFY_API_SECRET. See https://github.com/Shopify/shopify_app#api-keys')
|
6
|
+
config.old_secret = "<%= @old_secret %>"
|
7
|
+
config.scope = "<%= @scope %>" # Consult this page for more scope options:
|
8
|
+
# https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes
|
9
|
+
config.embedded_app = <%= embedded_app? %>
|
10
|
+
config.after_authenticate_job = false
|
11
|
+
config.api_version = "<%= @api_version %>"
|
12
|
+
config.shop_session_repository = 'Shop'
|
13
|
+
config.allow_jwt_authentication = <%= !with_cookie_authentication? %>
|
14
|
+
config.allow_cookie_authentication = <%= with_cookie_authentication? %>
|
15
|
+
end
|
14
16
|
end
|
15
17
|
|
16
18
|
# ShopifyApp::Utils.fetch_known_api_versions # Uncomment to fetch known api versions from shopify servers on boot
|
data/lib/shopify_app/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.0.
|
4
|
+
version: 17.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser_sniffer
|
@@ -252,6 +252,7 @@ files:
|
|
252
252
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
253
253
|
- ".github/probots.yml"
|
254
254
|
- ".github/workflows/build.yml"
|
255
|
+
- ".github/workflows/release.yml"
|
255
256
|
- ".github/workflows/rubocop.yml"
|
256
257
|
- ".gitignore"
|
257
258
|
- ".nvmrc"
|