softwear-lib 1.5.2 → 1.5.3

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
  SHA1:
3
- metadata.gz: 56a733c32d114c4aefd83328ba1264b7695f8822
4
- data.tar.gz: 009929f9221bb986b7b8c6d0f06cf8a41f2d9828
3
+ metadata.gz: 05c68b954e0f9c956a40fec482c28d85036b637f
4
+ data.tar.gz: 6aaf7992c6a0876c18649fc92fa1fc0826625857
5
5
  SHA512:
6
- metadata.gz: 7519e0b29822609607a7f631eb993eda4ce0d98991080527b449de569a8d3506d5b8697aeaf1f45d577ebf6fd040c691ead7032160f507b9c04270444be3bd0a
7
- data.tar.gz: ac135980397e3b033bb4d2d87d63eee03e5be3cf1014d71acda1e547fc8b910120404ac13a3cff55a455aae4f739532d08ecb0753cfaea50c4e2fde299c6cbd7
6
+ metadata.gz: 96f21be2adc859ee72304750749e523120fa383e1845273ae21b464a2869567bfcf60afb7bbc91ed51992aba550ac72ad6705ba4e1493bb93a1ad49e2e0bede7
7
+ data.tar.gz: b1440aa11e35807498024f579c7ccc2fa5207d46d41aeb1938a4ce8e5201f36cb69e4bf97def754bd46267e1c7e5a1024b9852955ad05f187b23e6a48202ae95
@@ -86,6 +86,16 @@ module Softwear
86
86
 
87
87
  # -- url uelpers --
88
88
 
89
+ def softwear_hub_url
90
+ if Rails.env.production?
91
+ Figaro.env.softwear_hub_url || raise "Please set softwear_hub_url in application.yml"
92
+ elsif Rails.env.test?
93
+ 'http://hub.example.com'
94
+ else
95
+ Figaro.env.softwear_hub_url || 'http://localhost:2995'
96
+ end
97
+ end
98
+
89
99
  def destroy_user_session_path
90
100
  Figaro.env.softwear_hub_url + "/users/sign_out"
91
101
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.5.2"
3
+ VERSION = "1.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie