lws 11.0.0 → 12.0.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 +9 -0
- data/lib/lws/version.rb +1 -1
- data/lib/lws.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07d2dfe5974f7fe147de726871098528e961411cc6df0e714fe2f4a99ec6bdfd
|
|
4
|
+
data.tar.gz: fcb3d7c199bd1e7f00744286206cc859a01c5adee6e2391e5427ef4aeaec1a8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62fb2d73ba61619e644bd21032251452682fdaf61031542d0fc33c7814c62b4ec1ef8be10c500b61d9fdfad61e9b4d635fb81ace32aa508d968ee755c4223264
|
|
7
|
+
data.tar.gz: a9d1ce64536c2719e171dc83fcedeb5a94966886376c63a0cceddefc594bd5bad0e0756f08f04ace4cfeb0d187ef33a33eafde16ae8ba1438c6d2b2ee1d72e67
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ of LWS in the major/minor part of te version.
|
|
|
8
8
|
|
|
9
9
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
10
10
|
|
|
11
|
+
## [12.0.0] - 2025-11-10
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
* Also retry requests when encountering an SSL error (`Faraday::SSLError`)
|
|
16
|
+
|
|
11
17
|
## [11.0.0] - 2025-09-30
|
|
12
18
|
|
|
13
19
|
The biggest change in this release is the complete rework of the API of the
|
|
@@ -19,6 +25,8 @@ metadata object attached that is specific to its kind.
|
|
|
19
25
|
|
|
20
26
|
- Add and enable support for retrying a request 3 times
|
|
21
27
|
- Add `LWS::Errors::ServerError` class to indicate LWS server errors
|
|
28
|
+
- Add `data_url`, `kind` and `thumbnail_url` attributes to the collection item
|
|
29
|
+
model
|
|
22
30
|
- Add generic `Metadata` resource class (which is not a REST model)
|
|
23
31
|
- Add `Collection::Metadata`, `Collection::VimeoMetadata`,
|
|
24
32
|
`Collection::WeatherLocationMetadata` and `YouTubeMetadata` resource
|
|
@@ -627,3 +635,4 @@ Initial release
|
|
|
627
635
|
[10.0.0]: https://gitlab.leftclick.network/platform/ruby-lws/compare/v9.0.2...v10.0.0
|
|
628
636
|
[10.0.1]: https://gitlab.leftclick.network/platform/ruby-lws/compare/v10.0.0...v10.0.1
|
|
629
637
|
[11.0.0]: https://gitlab.leftclick.network/platform/ruby-lws/compare/v10.0.1...v11.0.0
|
|
638
|
+
[12.0.0]: https://gitlab.leftclick.network/platform/ruby-lws/compare/v11.0.0...v12.0.0
|
data/lib/lws/version.rb
CHANGED
data/lib/lws.rb
CHANGED
|
@@ -45,6 +45,10 @@ module LWS
|
|
|
45
45
|
include Errors
|
|
46
46
|
include Middleware
|
|
47
47
|
|
|
48
|
+
# The exceptions that warrant a retry.
|
|
49
|
+
RETRY_EXCEPTIONS = Middleware::Retry::DEFAULT_EXCEPTIONS +
|
|
50
|
+
[Errno::EALREADY, Faraday::ConnectionFailed, Faraday::SSLError].freeze
|
|
51
|
+
|
|
48
52
|
# The list of supported apps (web service libraries) loaded by
|
|
49
53
|
# {.setup}.
|
|
50
54
|
SUPPORTED_APPS = [:generic, :auth, :corporate_website, :digital_signage,
|
|
@@ -140,8 +144,7 @@ module LWS
|
|
|
140
144
|
c.use Middleware::JSONLogger, config.logger if config.json_debug
|
|
141
145
|
c.use Middleware::JSONParser
|
|
142
146
|
c.use Middleware::RaiseServerError
|
|
143
|
-
c.use Middleware::Retry, exceptions:
|
|
144
|
-
[Errno::EALREADY, Faraday::ConnectionFailed],
|
|
147
|
+
c.use Middleware::Retry, exceptions: RETRY_EXCEPTIONS,
|
|
145
148
|
interval: 0.2,
|
|
146
149
|
retry_statuses: [502, 503, 504]
|
|
147
150
|
c.use Middleware::FollowRedirects, limit: 3
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 12.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LeftClick B.V.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|