hubrise_app 1.2.13 → 1.2.16

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: 7b23b8b3d53d7fe8550814f6666ca18e5bd1e6655ab61ceab0560c01f06c132a
4
- data.tar.gz: 3c78cdb9a2d2df15c7eb0d532ff9d1cd2aaac3cfbeecbc1570d6c485b044d44b
3
+ metadata.gz: af421015f93c3e1324c3afb955ed80c128bf5e6a2b1ff5d3049243d623bbdc21
4
+ data.tar.gz: 59a5e68f0b84ae3cf62dd52c535ee142948f33b477691fa8ceff3ca213fdd7cf
5
5
  SHA512:
6
- metadata.gz: 9d077c73f43d91c34391f880b129f75e49b10d7d5ed0ce2c27e77e58319fef0cf7065a00b3738e702bf27afa4f9b2328c88536bdb4603d17a7eb79fd3846d7b8
7
- data.tar.gz: e849340ff4e0077aa350256b3d48f845c4bfafa43f1db286df5775c4939be3c6c283b855a7f7695e748f5c32963ad3b2395334c30812940fb34cab7dce972df0
6
+ metadata.gz: 54a7f09c701dca174da19999f2525a167fd092733d303c1db88453607f62ef447380e7a28c6b8a43560279ef70a8a5474149a912c7397eda088bedf1c74bc747
7
+ data.tar.gz: d28e5b192defeffc5825855c06347b19ca792b3008bc99ab7c3bd2266e06c75d93c95498a5da21c67e9c3e259bd2be3e8b677326fe87dbe9b01087747701ebaf
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.13
102
+ VERSION=1.2.15
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[: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(: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
@@ -5,7 +5,7 @@ module HubriseApp
5
5
  def login_callback
6
6
  user = HubriseApp::Refresher::User.from_api_client(api_client_from_oauth_code)
7
7
  login(user)
8
- redirect_to(build_hubrise_open_url)
8
+ redirect_to(session.delete(:return_to) || build_hubrise_open_url)
9
9
  end
10
10
  end
11
11
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HubriseApp
3
- VERSION = "1.2.13"
3
+ VERSION = "1.2.16"
4
4
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
8
8
  - Nick Save
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2026-04-24 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: hubrise_client
@@ -39,8 +38,6 @@ dependencies:
39
38
  - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
- description:
43
- email:
44
41
  executables: []
45
42
  extensions: []
46
43
  extra_rdoc_files: []
@@ -105,7 +102,6 @@ homepage: https://github.com/HubRise/ruby-app
105
102
  licenses:
106
103
  - MIT
107
104
  metadata: {}
108
- post_install_message:
109
105
  rdoc_options: []
110
106
  require_paths:
111
107
  - lib
@@ -120,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
116
  - !ruby/object:Gem::Version
121
117
  version: '0'
122
118
  requirements: []
123
- rubygems_version: 3.3.26
124
- signing_key:
119
+ rubygems_version: 3.6.9
125
120
  specification_version: 4
126
121
  summary: Rails engine to bootstrap a HubRise-based application
127
122
  test_files: []