hubssolib 4.0.1 → 4.0.2

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: b1c0cc452aa9f993bae6898c2b2096df8a331fc9994150342a145635ccf37c75
4
- data.tar.gz: d5e3012bd64bb3baed92ecf46115f0ed39e4c1df5cf86981f455f8aa361781a0
3
+ metadata.gz: f56f69bd23843c0ff1575651e4a01eb111f121363ad046c0e3356ec14bdb5dcf
4
+ data.tar.gz: f05e756267b131d91d3e3d71752781a33050cbd8b903cbe61d213614d229fe3d
5
5
  SHA512:
6
- metadata.gz: 97735fe3f0a68c0cf4bc07b6b0ed2d7d7f36a41d2c2b7a45b889fbca6e008aa2af44b54f632b8860b41ee2774dd1d6d632c48710e29b14e2bfd0dbb613d1dd3a
7
- data.tar.gz: 6b0c0aa270b61701fc9fbac4d0e984a5770e0fde58685ec4a16e91cdf40e415a7924246cee023dc17a4e4d9f7bfc9f340aa1d264b2fa573886eeaed86e8632e2
6
+ metadata.gz: c3fb0fe6bd80d59959116218cddb8d328e0cfeddd1de858ad352eb7fa3bf439237510a63695a057dd5d488bfd2a8027921f683b50ea7161343daf3983cd75fa8
7
+ data.tar.gz: e637ddc3a7d73ad9892d8d17176d464485a501c6c60a045bb54551fb6bb2d5bc2c32dca9f80bceccba7c51b76216d664e40efcbc94a3116427f46e33f5854441
data/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
- ## 4.0.0 and 4.0.1, 24-Jul-2026
1
+ ## 4.0.0, 4.0.1 and 4.0.2, 24-Jul-2026
2
2
 
3
3
  * Despite the major version bump, this is a maintenance release for client apps. Integration for all Hub features including the Hub Trust mechanism is unchanged.
4
4
  * If you do not use Hub Trust features at all, then this is also only a maintenance release for the Hub app itself and nothing more is needed to run the entire Hub assembly.
5
5
  * If you do use Hub Trust features, then note that the way in which you launch the Trust Server, which previously auto-launched with the Hub app but was prone to being killed or otherwise terminating without warning, has changed. In a manner similar to the separately-launched and reliable Session server, the Trust server must be separately launched. This is done with a Rake task so that the Trust server has full access to the Hub app environment.
6
6
 
7
- 4.0.1 just updated Gemspec metadata without any other changes - I didn't realise you couldn't yank & republish the same version anymore in RubyGems, so was forced to bump the patch version.
7
+ 4.0.1 just updated Gemspec metadata without any other changes. In the spirit of "third time lucky", 4.0.2 fixes a last minute bug that crept in due to a rogue Undo.
8
8
 
9
9
  ## 3.8.2, 17-May-2025
10
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubssolib (4.0.0)
4
+ hubssolib (4.0.1)
5
5
  base64 (~> 0.2)
6
6
  drb (~> 2.2)
7
7
 
data/hubssolib.gemspec CHANGED
@@ -4,7 +4,7 @@ spec = Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = 'hubssolib'
6
6
 
7
- s.version = '4.0.1'
7
+ s.version = '4.0.2'
8
8
  s.author = 'Andrew Hodgkinson and others'
9
9
  s.email = 'ahodgkin@rowing.org.uk'
10
10
  s.homepage = 'http://pond.org.uk/'
data/lib/hub_sso_lib.rb CHANGED
@@ -927,6 +927,27 @@ module HubSsoLib
927
927
  return File.exist?(path)
928
928
  end
929
929
 
930
+ # Obtain a connection to the trust server. This is called by any client
931
+ # code that needs to talk to the server which must, at the time called, be
932
+ # running via startup within the Hub Rails application.
933
+ #
934
+ # The returned object is an instance of ::HubSsoLib::Trust::ActionManager,
935
+ # which is defined inside the Hub Rails application. See there for details.
936
+ #
937
+ def self.get_trust_object
938
+ HUB_MUTEX.synchronize do
939
+ begin
940
+ DRb.current_server
941
+ rescue DRb::DRbServerNotFound
942
+ DRb.start_service()
943
+ end
944
+
945
+ @@trust_object ||= DRbObject.new_with_uri(self.get_trust_server_connection_uri())
946
+ end
947
+
948
+ return @@trust_object
949
+ end
950
+
930
951
  module Server
931
952
  def hubssolib_launch_trust_server
932
953
  ::HubSsoLib::Trust::Server::Runner.run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubssolib
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hodgkinson and others
@@ -138,7 +138,6 @@ files:
138
138
  - Gemfile
139
139
  - Gemfile.lock
140
140
  - README.md
141
- - hubssolib-4.0.0.gem
142
141
  - hubssolib.gemspec
143
142
  - lib/hub_sso_lib.rb
144
143
  homepage: http://pond.org.uk/
data/hubssolib-4.0.0.gem DELETED
Binary file