smart_app_launch_test_kit 0.2.0 → 0.2.2

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: 1a70e06c1e564ec98ba8f87a7bd340f438990d7290d3122b2354da5e23a8f854
4
- data.tar.gz: 47aef42abff65657cee0ffa8f7dec419ed0efafb30da792edf74b78eecc6ad49
3
+ metadata.gz: 99071ac48c50bc9184c429d8ac6d6a82c257a62b543b0300ffce76bb5428cd3e
4
+ data.tar.gz: 96ab8b622c5bcdbb803f38bb3fac3b954e09ed509ca50eb498fcb33a6f8a50a5
5
5
  SHA512:
6
- metadata.gz: 9f155681260a5f83baf994bdf04fa22f00db3ed117845fd9e44c99304f13faeaa98a7b8330a534514788c33c880d30f2c4d870356aaf00a8de8d97e8c712d52a
7
- data.tar.gz: c86798c75500fc0c12c53e85b85b6e4b126f3fc8691403ad2df6074ff1a11aa90b1cc5401746e0f8797980a1a49fa74cd39e13be6f24cf1c1e5057bd2bc05ca2
6
+ metadata.gz: 5ecbf51ed63307f358311b3e14b63827a1653a0697f79b3d85333577b72109eda60721cdf1a26acda174a0099df2ac3f710bb4371429789dab51744a23375915
7
+ data.tar.gz: d79ef7288453f232d1b4365dc271cabcc84436e94c8c5c0a02b7554521b16f05c0291eda15093a118fc8aa909577043ce5bb0ef0919c97d6abde81dcb6195bd5
@@ -13,7 +13,7 @@ module SMARTAppLaunch
13
13
  code = request.query_parameters['code']
14
14
  output code: code
15
15
 
16
- assert code.present?, 'No `code` paramater received'
16
+ assert code.present?, 'No `code` parameter received'
17
17
 
18
18
  error = request.query_parameters['error']
19
19
 
@@ -2,7 +2,8 @@ module SMARTAppLaunch
2
2
  class LaunchReceivedTest < Inferno::Test
3
3
  title 'EHR server sends launch parameter'
4
4
  description %(
5
- Code is a required querystring parameter on the redirect.
5
+ The `launch` URL parameter associates the app's authorization request with
6
+ the current EHR session.
6
7
  )
7
8
  id :smart_launch_received
8
9
 
@@ -13,7 +14,7 @@ module SMARTAppLaunch
13
14
  launch = request.query_parameters['launch']
14
15
  output launch: launch
15
16
 
16
- assert launch.present?, 'No `launch` paramater received'
17
+ assert launch.present?, 'No `launch` parameter received'
17
18
  end
18
19
  end
19
20
  end
@@ -48,7 +48,7 @@ module SMARTAppLaunch
48
48
 
49
49
  token_response_body = JSON.parse(request.response_body)
50
50
  output smart_credentials: {
51
- refresh_token: token_response_body['refresh_token'],
51
+ refresh_token: token_response_body['refresh_token'].presence || refresh_token,
52
52
  access_token: token_response_body['access_token'],
53
53
  expires_in: token_response_body['expires_in'],
54
54
  client_id: client_id,
@@ -1,3 +1,3 @@
1
1
  module SMARTAppLaunch
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_app_launch_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core