hubrise_app 1.2.12 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd4a8082942c00b95fe08448df4d451cfef0e1819b44010b9a5cfa35a6ad2917
|
|
4
|
+
data.tar.gz: 8fd8bebee3cdba103d9d4bade31d45da79885663e7b1738b02602d39e209f9fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bcab56e9a16daa87b175bd8b228719a448bb26bdab369d0b30711a493173c773e9429d67b9f777b17cf2126d513c144bfd68537b347ce938121dd72ed256425
|
|
7
|
+
data.tar.gz: c71ed77b6b17a06c24a0990df3db79316be49a0087f2854740cd7c57cb8bcc3567845d393d0deb5cf368152b005364fc7fc4d48096bea2940ddd234af9539c9f
|
data/README.md
CHANGED
|
@@ -13,8 +13,8 @@ module HubriseApp
|
|
|
13
13
|
|
|
14
14
|
def current_app_instance
|
|
15
15
|
if current_user
|
|
16
|
-
@app_instance ||=
|
|
17
|
-
|
|
16
|
+
@app_instance ||=
|
|
17
|
+
HubriseApp::Services::ResolveAppInstance.run(current_user.app_instances, hr_app_instance_id, self)
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -22,6 +22,7 @@ module HubriseApp
|
|
|
22
22
|
if hr_app_instance_id.blank?
|
|
23
23
|
render(plain: "Something went wrong. Please try to reopen from Hubrise Dashboard.")
|
|
24
24
|
elsif current_app_instance.nil?
|
|
25
|
+
session[:authorize_return_to] = request.fullpath if request.get?
|
|
25
26
|
redirect_to(build_hubrise_oauth_authorize_url, allow_other_host: true)
|
|
26
27
|
end
|
|
27
28
|
end
|
|
@@ -7,7 +7,7 @@ module HubriseApp
|
|
|
7
7
|
ensure_authenticated! do
|
|
8
8
|
if current_app_instance
|
|
9
9
|
HubriseApp::Services::AssignAppInstance.run(current_user, current_app_instance, self)
|
|
10
|
-
redirect_to(build_hubrise_open_url)
|
|
10
|
+
redirect_to(session.delete(:authorize_return_to) || build_hubrise_open_url)
|
|
11
11
|
else
|
|
12
12
|
render(plain: "Something went wrong. Please try to reinstall the app")
|
|
13
13
|
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.14
|
|
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: 2026-
|
|
12
|
+
date: 2026-05-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: hubrise_client
|