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: 6329daae9c852b2b25c9dc7f7c57e1f83303da8d0115ec76f57688112c16dd04
4
- data.tar.gz: 68e6824fe0e8da163f189dd78af96e60a2d9d19633ef9853df158dd6016f277f
3
+ metadata.gz: dd4a8082942c00b95fe08448df4d451cfef0e1819b44010b9a5cfa35a6ad2917
4
+ data.tar.gz: 8fd8bebee3cdba103d9d4bade31d45da79885663e7b1738b02602d39e209f9fc
5
5
  SHA512:
6
- metadata.gz: ccdf6dfdd9b079c9b43c0447b432ae63320f3b09130e1c1031c2ceb0f473eb881d0cfc4fce5e4c73661dc51a68f21ed523566f9c727387fa00f4d3718144cbe8
7
- data.tar.gz: 9c22e97fa7bdbd6c6233be2b9cc45923bb1d98a1adc7a25e2fe834597dd57f151da14e93fd0c07ce3659ba59a2d3d4f629379e9c8a29d91c79fa8025d914cece
6
+ metadata.gz: 0bcab56e9a16daa87b175bd8b228719a448bb26bdab369d0b30711a493173c773e9429d67b9f777b17cf2126d513c144bfd68537b347ce938121dd72ed256425
7
+ data.tar.gz: c71ed77b6b17a06c24a0990df3db79316be49a0087f2854740cd7c57cb8bcc3567845d393d0deb5cf368152b005364fc7fc4d48096bea2940ddd234af9539c9f
data/README.md CHANGED
@@ -99,7 +99,7 @@ bundle exec rspec
99
99
  3. Tag the repository:
100
100
 
101
101
  ```bash
102
- VERSION=1.2.12
102
+ VERSION=1.2.14
103
103
  sed -i "s/VERSION = \".*\"/VERSION = \"$VERSION\"/" lib/hubrise_app/version.rb
104
104
  bundle install
105
105
  git add README.md
@@ -13,8 +13,8 @@ module HubriseApp
13
13
 
14
14
  def current_app_instance
15
15
  if current_user
16
- @app_instance ||= HubriseApp::Services::ResolveAppInstance.run(current_user.app_instances, hr_app_instance_id,
17
- self)
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HubriseApp
3
- VERSION = "1.2.12"
3
+ VERSION = "1.2.14"
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.12
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-04-09 00:00:00.000000000 Z
12
+ date: 2026-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hubrise_client