ehsso 0.6.0 → 0.7.0
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/ehsso.gemspec +1 -1
- data/lib/ehsso/person.rb +3 -1
- data/lib/ehsso/version.rb +1 -1
- data/lib/ehsso.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a9235f7ecdf6b9066a295eb8eb224d8fcb2142d0390eaed34418da407af51a8
|
|
4
|
+
data.tar.gz: 9f99c1695b586f640f8f86eabe4d942806ce92adf02c046ddcd8bee3fe13a426
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d1185962049a41f2f075fce58e348c1275fd2bdb1014ee9652ff4ba3a3764c63a602e37b4453d9a18e4186027449de5f098345eba15a4b0881921ccaf36543c
|
|
7
|
+
data.tar.gz: 69cf5da8ef34bda66ac1cc03ebd39033d35881207131c89ec5c077e08debb154b28fedb77ff882fd58b8007b327c5127d8e48fb1a11691ab7a3beb0e0bc0195a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog of ehsso
|
|
2
2
|
|
|
3
|
+
## 0.7.0 / 2025-10-22
|
|
4
|
+
|
|
5
|
+
* Fix Rails 8.1 compatibility - make Rails engine loading conditional
|
|
6
|
+
* Fix Typhoeus constant resolution in Person class
|
|
7
|
+
* Achieve 100% test coverage with additional specs for error handling and edge cases
|
|
8
|
+
|
|
3
9
|
## 0.6.0 / 2025-08-20
|
|
4
10
|
|
|
5
11
|
* Upgrade gem dependencies
|
data/ehsso.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.add_development_dependency "standard", "~> 1.18"
|
|
30
30
|
spec.add_development_dependency "simplecov", "~> 0.21"
|
|
31
31
|
|
|
32
|
-
spec.add_runtime_dependency("typhoeus", "~> 1.
|
|
32
|
+
spec.add_runtime_dependency("typhoeus", "~> 1.5")
|
|
33
33
|
spec.add_runtime_dependency("logger", "~> 1.7")
|
|
34
34
|
spec.add_runtime_dependency("bigdecimal", "~> 3.2")
|
|
35
35
|
end
|
data/lib/ehsso/person.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require "typhoeus"
|
|
2
|
+
|
|
1
3
|
module Ehsso
|
|
2
4
|
class Person
|
|
3
5
|
attr_accessor :id
|
|
@@ -103,7 +105,7 @@ module Ehsso
|
|
|
103
105
|
userpwd = Ehsso.configuration.username_and_password
|
|
104
106
|
|
|
105
107
|
# allows to mock class for rspec
|
|
106
|
-
service_class = args[:service_class] || Typhoeus
|
|
108
|
+
service_class = args[:service_class] || ::Typhoeus
|
|
107
109
|
|
|
108
110
|
response = service_class.post(url, body: JSON.generate(payload(action: args[:action])), userpwd: userpwd, ssl_verifypeer: false)
|
|
109
111
|
handle_response(response)
|
data/lib/ehsso/version.rb
CHANGED
data/lib/ehsso.rb
CHANGED
|
@@ -2,8 +2,12 @@ require "json"
|
|
|
2
2
|
|
|
3
3
|
require "ehsso/version"
|
|
4
4
|
require "ehsso/configuration"
|
|
5
|
-
require "ehsso/engine"
|
|
6
5
|
require "ehsso/person"
|
|
7
6
|
|
|
7
|
+
# Only load the Rails engine if Rails is defined and loaded
|
|
8
|
+
if defined?(Rails::Engine)
|
|
9
|
+
require "ehsso/engine"
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
module Ehsso
|
|
9
13
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ehsso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Steiner
|
|
@@ -99,14 +99,14 @@ dependencies:
|
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '1.
|
|
102
|
+
version: '1.5'
|
|
103
103
|
type: :runtime
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '1.
|
|
109
|
+
version: '1.5'
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: logger
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|