shopify_app 17.0.0 → 17.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4760b55b5a05f6879b992c7292f99c51a50b3c080215b74c789214ebc467b5c
4
- data.tar.gz: e67a45136ca74cbd6c3403f1e3a17577be621f0617a22c3f177f51e452dda369
3
+ metadata.gz: 8903612dd539f6990fa6931bc28a2e2a8d37ba5f1177baea4d5326f41f581dca
4
+ data.tar.gz: 1760faccb6a46bd3d15a7e5635f33d31d492d81b14a07331e0f778e4e15ff974
5
5
  SHA512:
6
- metadata.gz: 7f5978d3ee4bd6cb553b30b57a50233d0d983fb8715a0e6fb272dbe9d5fb91b8a90ca3d04d97221a45035bf7c66b6cadd6c897fee548c0998c6c9323d4a1ec92
7
- data.tar.gz: 62d60866c63e2b4ad3f70f1375fcfb3e7fda69edb4ef78a9e75cde872a909b5e8cc4ad764ec69225cbec3da42cd9a4556f6f473b863df3a403dfc7376e410af1
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 }}
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_app (17.0.0)
4
+ shopify_app (17.0.1)
5
5
  browser_sniffer (~> 1.2.2)
6
6
  jwt (~> 2.2.1)
7
7
  omniauth-shopify-oauth2 (~> 2.2.2)
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
- Before running the generators, you'll need to ensure your app can read the Shopify environment variables `SHOPIFY_API_KEY` and `SHOPIFY_API_SECRET`.
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]. 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.
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
 
@@ -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
- ShopifyApp.configure do |config|
2
- config.application_name = "<%= @application_name %>"
3
- config.api_key = ENV.fetch('SHOPIFY_API_KEY', '').presence || raise('Missing SHOPIFY_API_KEY')
4
- config.secret = ENV.fetch('SHOPIFY_API_SECRET', '').presence || raise('Missing SHOPIFY_API_SECRET')
5
- config.old_secret = "<%= @old_secret %>"
6
- config.scope = "<%= @scope %>" # Consult this page for more scope options:
7
- # https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes
8
- config.embedded_app = <%= embedded_app? %>
9
- config.after_authenticate_job = false
10
- config.api_version = "<%= @api_version %>"
11
- config.shop_session_repository = 'Shop'
12
- config.allow_jwt_authentication = <%= !with_cookie_authentication? %>
13
- config.allow_cookie_authentication = <%= with_cookie_authentication? %>
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ShopifyApp
3
- VERSION = '17.0.0'
3
+ VERSION = '17.0.1'
4
4
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify_app",
3
- "version": "17.0.0",
3
+ "version": "17.0.1",
4
4
  "repository": "git@github.com:Shopify/shopify_app.git",
5
5
  "author": "Shopify",
6
6
  "license": "MIT",
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.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-14 00:00:00.000000000 Z
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"