lockstep_rails 0.3.40 → 0.3.42

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: c508ea985ebe8dcc40347155d65906644029e04dd0509729426ae402ee7845bc
4
- data.tar.gz: d5f6beeb58cc6b917b35b13c75e969e0d09a481f3c27c657fa2c359aca9978ef
3
+ metadata.gz: 5c1e7f7f9fa871a4fee690f2b4e0a704f6b18e1730c5cbe4fad9d8769d19673f
4
+ data.tar.gz: f110b33a97400fbc9e631a6ba65f8dfb31fcd6ade37dbff0c50b02867ed3c0f1
5
5
  SHA512:
6
- metadata.gz: 1bc6be24ade1d82291e5ec5cabda85c81d0bf0bffda69112ad12ff0d9e138a7c2a40bff024a4782194b7156afc5f13b2360986e6e8ec0aea987fcc4bc7a01fac
7
- data.tar.gz: 95966dbf562bc60e2372a9926ea22e4ccfbc2819ed4f9d1a6ac65857e51d2071389a9439cfdb931e9ac535ae7db025672913d536c0cdc2fe9baa39a73f3c868f
6
+ metadata.gz: cc11b8b450b104042b760ca8ec55cd95d3ab49451b92df24e6519c931868689eeb18d3f29c2bc919888adbc6ff0dc940b61a69ab6e46bdc3bd97926ceb250cb6
7
+ data.tar.gz: 3fbd8e7d507bafe4b9f04f4db08e17e23a1e05bfa25a609cf6fab41ce95a1c57e4183177b2fa248dba5e1532b43203367e0155c30872dc3044d56ea3fc030776
@@ -714,9 +714,9 @@ module Lockstep
714
714
  else
715
715
  error_response = JSON.parse(resp.body)
716
716
  pe = if error_response['error']
717
- LockstepError.new(error_response['code'], error_response['error'])
717
+ Lockstep::Error.new(error_response['code'], error_response['error'])
718
718
  else
719
- LockstepError.new(resp.code.to_s)
719
+ Lockstep::Error.new(resp.code.to_s)
720
720
  end
721
721
  self.errors.add(pe.code.to_s.to_sym, pe.msg)
722
722
  error_instances << pe
@@ -3,8 +3,8 @@ class Lockstep::MagicLink < Lockstep::ApiRecord
3
3
  self.id_ref = "magicLinkId"
4
4
  self.query_path = ""
5
5
 
6
- def self.generate(email_id, expiry, app_id, user_role)
7
- body = {email: email_id, expiresInMinutes: expiry, applicationId: app_id, userRole: user_role}
6
+ def self.generate(email_id, expiry, app_id, user_role, company_id)
7
+ body = {email: email_id, expiresInMinutes: expiry, applicationId: app_id, userRole: user_role, companyId: company_id}
8
8
  resource.post_magic_link('', body: body, params: {})
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.40"
2
+ VERSION = "0.3.42"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.40
4
+ version: 0.3.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2022-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails