shopify_app 15.0.0 → 15.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: e5e94d4b7a80d63547bb4556d0fbe89fb87d7193be8f633a7aceb830c7fc0208
4
- data.tar.gz: e97c20fd31bf5a6f3f39f9e7981be42d8900add4d4c78565f171a6d7a5fa5ffe
3
+ metadata.gz: 766b20c9b903b80875806ea437bd132f004a27f5b339faae48ee14656da7a110
4
+ data.tar.gz: d8cbdf61e359a4990f21127b4e811332253f808f011080659410ecab73144d4b
5
5
  SHA512:
6
- metadata.gz: af85918cd16f6b0e66bea9c3db28f8e0aadb6e7421881425b0562239ac889f1506785b495057698713752f66d58ffa04e58407bc633c60954f891d318d5416ad
7
- data.tar.gz: 729148164c29d9e9f4de9a62a19e1a9d1d8aaace09f7461ee1e4d472f4573d34727d6091cd86785707fc9b33f0f3c450dd126e77fb09793eedfaa38d54970b09
6
+ metadata.gz: 2821dedc568c6f542f79dc4bc17eb26e38b5ffd6f341cdaf22fbde7a96750145ebd6685fb2213bb7ff402795b0abf92554d3e85d961dc7e21995c3c3ba86901a
7
+ data.tar.gz: 73002f4ae08f88cbc9bfc95fe846416255e4a4e587fa954731d7e05d476bc10a3b7110ed4262e60e44277fef42ab17c6eafc4a0883eb5ee1f9149109ed657ee4
@@ -1,3 +1,7 @@
1
+ 15.0.1
2
+ ------
3
+ * Allow JWT session token `sub` field to be parsed as a string [#1103](https://github.com/Shopify/shopify_app/pull/1103)
4
+
1
5
  15.0.0
2
6
  ------
3
7
  * Change `X-Shopify-API-Request-Failure-Unauthorized` HTTP header value from boolean to string
@@ -1,6 +1,7 @@
1
- Releasing ShopifyApp
1
+ # Releasing ShopifyApp
2
2
 
3
- 1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
3
+ 1. Make the code changes in a separate PR that doesn't modify the version.
4
+ 1. After that is merged, check the Semantic Versioning page for info on how to version the new release: http://semver.org
4
5
  1. Create a pull request with the following changes:
5
6
  - Update the version of ShopifyApp in lib/shopify_app/version.rb
6
7
  - Update the version of shopify_app in package.json
@@ -14,5 +15,5 @@ $ git tag -f vX.Y.Z && git push --tags --force
14
15
  ```
15
16
  1. Use Shipit to build and push the gem
16
17
 
17
- If you see an error like 'You need to create the vX.Y.X tag first', clear GIT
18
+ If you see an error like 'You need to create the vX.Y.X tag first', clear git
18
19
  cache in Shipit settings
@@ -64,7 +64,7 @@ module ShopifyApp
64
64
  def insert_hosts_into_development_config
65
65
  inject_into_file(
66
66
  'config/environments/development.rb',
67
- " config.hosts = (config.hosts rescue []) << /\\h+.ngrok.io/\n",
67
+ " config.hosts = (config.hosts rescue []) << /\\w+\\.ngrok\\.io/\n",
68
68
  after: "Rails.application.configure do\n"
69
69
  )
70
70
  end
@@ -1,7 +1,7 @@
1
1
  ShopifyApp.configure do |config|
2
2
  config.application_name = "<%= @application_name %>"
3
- config.api_key = ENV['SHOPIFY_API_KEY']
4
- config.secret = ENV['SHOPIFY_API_SECRET']
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
5
  config.old_secret = "<%= @old_secret %>"
6
6
  config.scope = "<%= @scope %>" # Consult this page for more scope options:
7
7
  # https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes
@@ -25,7 +25,7 @@ module ShopifyApp
25
25
  end
26
26
 
27
27
  def shopify_user_id
28
- @payload && @payload['sub']
28
+ @payload['sub'].to_i if @payload && @payload['sub']
29
29
  end
30
30
 
31
31
  private
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ShopifyApp
3
- VERSION = '15.0.0'
3
+ VERSION = '15.0.1'
4
4
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify_app",
3
- "version": "15.0.0",
3
+ "version": "15.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: 15.0.0
4
+ version: 15.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: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser_sniffer