siba_api 0.1.2 → 0.1.4

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: 2929ab1ae6f928a97b601d83ea4d871b1959e2848a2bc92b0399246fc14363bc
4
- data.tar.gz: a31566a2a8674a88f43ae8d5165767f5ec46e9df0a8b026a8bf3a675e2adfcf1
3
+ metadata.gz: e95f24b47ac0380ab4164e311d167f78da7372c0c7f783c15c85b64c48f24a2d
4
+ data.tar.gz: c40419f94d40e817dee7a124aa383eee091557c11c66829a1eb94240f3d8a1ee
5
5
  SHA512:
6
- metadata.gz: 1438b3ca259ab15f0af6cf20c14107aaddc0a4dabfec1efb8456517d83bd0d9a819fc5781c8b213f2032dfd66f035f96482101a74cb6e53b02b762ad1227c6f5
7
- data.tar.gz: 177a6e089009cbad1efe1cf4b02b861ffd9208e19274976c7db0669dd522ad8f9c26cdd38e4c36d796146717378764e678455a2342eb96d4a482925703e33dd2
6
+ metadata.gz: fb0b9d62f44d1c8a2749918782ad295beb421d0242ebb8191b921128a29e38babf21b82a408976a6555534f844de434fb95efd4de98493f9b19762d42242b495
7
+ data.tar.gz: '0956c9fa9477b1e732a3d14bf23f1ca7e10b97e176e8e5cc9189a66bca1d261ad27f590f77211dd0c7574bab9da4ca5c61b0e6a31ade15d4db737da7eb719f6c'
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ fantasticstay_api.iml
16
16
 
17
17
  # custom ignores
18
18
  .env
19
+ *.gem
20
+ .irb_history
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- siba_api (0.1.1)
4
+ siba_api (0.1.3)
5
5
  dry-configurable (~> 0.12)
6
6
  gyoku (~> 1.4.0)
7
7
  savon (~> 2.13)
@@ -9,60 +9,94 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.8.1)
13
- public_suffix (>= 2.0.2, < 6.0)
14
- akami (1.3.1)
12
+ addressable (2.8.7)
13
+ public_suffix (>= 2.0.2, < 7.0)
14
+ akami (1.3.3)
15
+ base64
15
16
  gyoku (>= 0.4.0)
16
17
  nokogiri
17
18
  ast (2.4.2)
18
- builder (3.2.4)
19
- concurrent-ruby (1.1.10)
20
- crack (0.4.5)
19
+ base64 (0.2.0)
20
+ bigdecimal (3.1.9)
21
+ builder (3.3.0)
22
+ concurrent-ruby (1.3.5)
23
+ crack (1.0.0)
24
+ bigdecimal
21
25
  rexml
22
- diff-lcs (1.5.0)
26
+ date (3.4.1)
27
+ diff-lcs (1.5.1)
23
28
  dry-configurable (0.16.1)
24
29
  dry-core (~> 0.6)
25
30
  zeitwerk (~> 2.6)
26
31
  dry-core (0.9.1)
27
32
  concurrent-ruby (~> 1.0)
28
33
  zeitwerk (~> 2.6)
34
+ faraday (2.12.2)
35
+ faraday-net_http (>= 2.0, < 3.5)
36
+ json
37
+ logger
38
+ faraday-net_http (3.4.0)
39
+ net-http (>= 0.5.0)
29
40
  gyoku (1.4.0)
30
41
  builder (>= 2.1.2)
31
42
  rexml (~> 3.0)
32
- hashdiff (1.0.1)
33
- httpi (3.0.1)
34
- rack
35
- mail (2.7.1)
43
+ hashdiff (1.1.2)
44
+ httpi (4.0.4)
45
+ base64
46
+ mutex_m
47
+ nkf
48
+ rack (>= 2.0, < 4)
49
+ json (2.9.1)
50
+ logger (1.6.5)
51
+ mail (2.8.1)
36
52
  mini_mime (>= 0.1.1)
37
- mini_mime (1.1.2)
38
- nokogiri (1.13.9-aarch64-linux)
53
+ net-imap
54
+ net-pop
55
+ net-smtp
56
+ mini_mime (1.1.5)
57
+ mutex_m (0.3.0)
58
+ net-http (0.6.0)
59
+ uri
60
+ net-imap (0.4.18)
61
+ date
62
+ net-protocol
63
+ net-pop (0.1.2)
64
+ net-protocol
65
+ net-protocol (0.2.2)
66
+ timeout
67
+ net-smtp (0.5.0)
68
+ net-protocol
69
+ nkf (0.2.0)
70
+ nokogiri (1.17.2-aarch64-linux)
39
71
  racc (~> 1.4)
40
- nokogiri (1.13.9-x86_64-linux)
72
+ nokogiri (1.17.2-x86_64-linux)
41
73
  racc (~> 1.4)
42
- nori (2.6.0)
43
- parallel (1.22.1)
44
- parser (3.1.2.1)
74
+ nori (2.7.1)
75
+ bigdecimal
76
+ parallel (1.26.3)
77
+ parser (3.3.7.0)
45
78
  ast (~> 2.4.1)
46
- public_suffix (5.0.0)
47
- racc (1.6.0)
48
- rack (3.0.0)
79
+ racc
80
+ public_suffix (6.0.1)
81
+ racc (1.8.1)
82
+ rack (3.1.8)
49
83
  rainbow (3.1.1)
50
- rake (13.0.6)
51
- regexp_parser (2.6.0)
52
- rexml (3.2.5)
53
- rspec (3.12.0)
54
- rspec-core (~> 3.12.0)
55
- rspec-expectations (~> 3.12.0)
56
- rspec-mocks (~> 3.12.0)
57
- rspec-core (3.12.0)
58
- rspec-support (~> 3.12.0)
59
- rspec-expectations (3.12.0)
84
+ rake (13.2.1)
85
+ regexp_parser (2.10.0)
86
+ rexml (3.4.0)
87
+ rspec (3.13.0)
88
+ rspec-core (~> 3.13.0)
89
+ rspec-expectations (~> 3.13.0)
90
+ rspec-mocks (~> 3.13.0)
91
+ rspec-core (3.13.2)
92
+ rspec-support (~> 3.13.0)
93
+ rspec-expectations (3.13.3)
60
94
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.12.0)
62
- rspec-mocks (3.12.0)
95
+ rspec-support (~> 3.13.0)
96
+ rspec-mocks (3.13.2)
63
97
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.12.0)
65
- rspec-support (3.12.0)
98
+ rspec-support (~> 3.13.0)
99
+ rspec-support (3.13.2)
66
100
  rubocop (0.93.1)
67
101
  parallel (~> 1.10)
68
102
  parser (>= 2.7.1.5)
@@ -72,29 +106,32 @@ GEM
72
106
  rubocop-ast (>= 0.6.0)
73
107
  ruby-progressbar (~> 1.7)
74
108
  unicode-display_width (>= 1.4.0, < 2.0)
75
- rubocop-ast (1.23.0)
76
- parser (>= 3.1.1.0)
77
- ruby-progressbar (1.11.0)
78
- savon (2.13.1)
109
+ rubocop-ast (1.37.0)
110
+ parser (>= 3.3.1.0)
111
+ ruby-progressbar (1.13.0)
112
+ savon (2.15.1)
79
113
  akami (~> 1.2)
80
114
  builder (>= 2.1.2)
81
115
  gyoku (~> 1.2)
82
- httpi (>= 2.4.5)
116
+ httpi (>= 4, < 5)
83
117
  mail (~> 2.5)
84
118
  nokogiri (>= 1.8.1)
85
119
  nori (~> 2.4)
86
- wasabi (~> 3.4)
120
+ wasabi (>= 3.7, < 6)
121
+ timeout (0.4.3)
87
122
  unicode-display_width (1.8.0)
88
- vcr (6.1.0)
89
- wasabi (3.8.0)
123
+ uri (1.0.2)
124
+ vcr (6.3.1)
125
+ base64
126
+ wasabi (5.1.0)
90
127
  addressable
91
- httpi (~> 3.0)
92
- nokogiri (>= 1.4.2)
93
- webmock (3.18.1)
128
+ faraday (>= 1.9, < 3)
129
+ nokogiri (>= 1.13.9)
130
+ webmock (3.24.0)
94
131
  addressable (>= 2.8.0)
95
132
  crack (>= 0.3.2)
96
133
  hashdiff (>= 0.4.0, < 2.0.0)
97
- zeitwerk (2.6.1)
134
+ zeitwerk (2.6.18)
98
135
 
99
136
  PLATFORMS
100
137
  aarch64-linux
data/bin/console CHANGED
@@ -2,7 +2,6 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'bundler/setup'
5
- require 'dotenv/load'
6
5
  require 'siba_api'
7
6
 
8
7
  # You can add fixtures and/or initialization code here to make experimenting
data/lib/siba_api/api.rb CHANGED
@@ -80,6 +80,8 @@ module SIBAApi
80
80
  globals.log true
81
81
  globals.log_level :debug
82
82
  globals.convert_request_keys_to :camelcase
83
+ # globals.ssl_verify_mode :none # NOTE: As of 2024.07.15 ssl validation is failing
84
+ # TEST: openssl s_client -showcerts -verify 5 -connect siba.sef.pt:443 < /dev/null
83
85
  end
84
86
  end
85
87
 
@@ -60,7 +60,7 @@ module SIBAApi
60
60
  PARAM_INCLUDE_RELATED = 'include_related_objects'
61
61
 
62
62
  # Default API config constants
63
- API_WSDL = 'https://siba.sef.pt/bawsdev/boletinsalojamento.asmx?wsdl'
63
+ API_WSDL = 'https://siba.ssi.gov.pt/bawsdev/boletinsalojamento.asmx?wsdl'
64
64
 
65
65
  API_HOTEL_UNIT = '121212121'
66
66
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SIBAApi
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siba_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-28 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gyoku
@@ -94,7 +94,7 @@ metadata:
94
94
  homepage_uri: https://github.com/dlage/siba_api
95
95
  source_code_uri: https://github.com/dlage/siba_api
96
96
  changelog_uri: https://github.com/dlage/siba_api/blob/master/CHANGELOG.md
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.2.33
113
- signing_key:
112
+ rubygems_version: 3.3.7
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: SEF SIBA API Wrapper for Local Accommodation Bulletin submission.
116
116
  test_files: []