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 +4 -4
- data/README.md +2 -2
- data/app/lib/hubrise_app/refresher/app_instance.rb +5 -5
- data/app/lib/hubrise_app/refresher/base.rb +2 -2
- data/lib/hubrise_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e04ffc72a4ed42c057f27f43d35c8b84d537d916ef41f94cde6a9c4a1aa5c9
|
4
|
+
data.tar.gz: d8b91adfb27be6cde213a539fc066fbca1e40efd72cf8da5fe76d3c74a8251f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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,
|
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,
|
10
|
+
api_client, **refresher_args
|
11
11
|
),
|
12
12
|
location: HubriseApp::Refresher::Location.from_api_client(
|
13
|
-
api_client,
|
13
|
+
api_client, **refresher_args
|
14
14
|
),
|
15
15
|
catalog: HubriseApp::Refresher::Catalog.from_api_client(
|
16
|
-
api_client,
|
16
|
+
api_client, **refresher_args
|
17
17
|
),
|
18
18
|
customer_list: HubriseApp::Refresher::CustomerList.from_api_client(
|
19
|
-
api_client,
|
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,
|
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
|
-
|
14
|
+
**args
|
15
15
|
)
|
16
16
|
end
|
17
17
|
end
|
data/lib/hubrise_app/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hubrise_client
|