hubrise_app 1.2.2 → 1.2.3

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: 5990454a85835701b12dcd2f77852baf4bce64ba23a32104040b8e7f3a33974d
4
- data.tar.gz: 876b5f60082101e0e0b739704de1599140c26cf2b84731ca6b405dfadc37650a
3
+ metadata.gz: 13e04ffc72a4ed42c057f27f43d35c8b84d537d916ef41f94cde6a9c4a1aa5c9
4
+ data.tar.gz: d8b91adfb27be6cde213a539fc066fbca1e40efd72cf8da5fe76d3c74a8251f6
5
5
  SHA512:
6
- metadata.gz: 8d30ccfe30e800ae608a5b0d67d2fe86ec7fc09bea01e71228967a2300dea63c46f38682ab4acecf1bbe7691582644994824524d2c4187151854e1c87e2bfcb2
7
- data.tar.gz: ad18c57625d3ee80d5d7318ac7c06bc4137f97082a85cb9313b0d382ede90ad9b23cdc347e4a5eca115364ffb25ac4ddf879fcfdcb24de979bfbaa096ab7b449
6
+ metadata.gz: 3bb89d964685736872bda75ec66620459879c1f7adbe4decabd4d221a0c06065b1c86318d02fb3d691a72e53a5989677e502d22130a58810cf323342a1b4c1f2
7
+ data.tar.gz: 5cc0b34d7fbd1b93f9f9f0cfdc6b8833405221c8d9fcbfe9ba06dd1f6c944c52b0951d9ad69084b66e8c683320c87de18bbbeb4cfbca4002cd5089e15b01b62e
data/README.md CHANGED
@@ -25,7 +25,7 @@ end
25
25
  ## Intro
26
26
 
27
27
  This gem provides a framework for a Hubrise App with a Resource Based Access.
28
- This means that each Hubrise User will be able to create a connection (App Instance) to multiple Accounts and Locations. And this connection will be shared with any other Hubrise User that has access to the same reseources on Hubrise side automatically.
28
+ This means that each Hubrise User will be able to create a connection (App Instance) to multiple Accounts and Locations. And this connection will be shared with any other Hubrise User that has access to the same resources on Hubrise side automatically.
29
29
 
30
30
  ### Note
31
31
 
@@ -88,7 +88,7 @@ TODO
88
88
  3. Tag the repository:
89
89
 
90
90
  ```bash
91
- VERSION=1.2.2
91
+ VERSION=1.2.3
92
92
  bundle install
93
93
  git add Gemfile.lock
94
94
  git add lib/hubrise_app/version.rb
@@ -3,20 +3,20 @@ module HubriseApp
3
3
  module Refresher
4
4
  class AppInstance < Base
5
5
  class << self
6
- def run(resource, api_client, *refresher_args)
6
+ def run(resource, api_client, **refresher_args)
7
7
  resource.update!(
8
8
  access_token: api_client.access_token,
9
9
  account: HubriseApp::Refresher::Account.from_api_client(
10
- api_client, *refresher_args
10
+ api_client, **refresher_args
11
11
  ),
12
12
  location: HubriseApp::Refresher::Location.from_api_client(
13
- api_client, *refresher_args
13
+ api_client, **refresher_args
14
14
  ),
15
15
  catalog: HubriseApp::Refresher::Catalog.from_api_client(
16
- api_client, *refresher_args
16
+ api_client, **refresher_args
17
17
  ),
18
18
  customer_list: HubriseApp::Refresher::CustomerList.from_api_client(
19
- api_client, *refresher_args
19
+ api_client, **refresher_args
20
20
  )
21
21
  )
22
22
  resource
@@ -5,13 +5,13 @@ module HubriseApp
5
5
  REFRESH_THRESHOLD = 1.day
6
6
 
7
7
  class << self
8
- def from_api_client(api_client, *args)
8
+ def from_api_client(api_client, **args)
9
9
  hr_id = api_client.public_send(id_key)
10
10
  if hr_id
11
11
  run(
12
12
  model_factory.find_or_initialize_by(hr_id:),
13
13
  api_client,
14
- *args
14
+ **args
15
15
  )
16
16
  end
17
17
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HubriseApp
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-21 00:00:00.000000000 Z
12
+ date: 2024-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hubrise_client