rospatent 1.4.0 → 1.4.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: 415bcf677cca43f775fb9ddca9d7c11093a7f2bce4cc0298be375ffe1f1912fc
4
- data.tar.gz: e7c9111a4230c5624137f380511e248e8b177dfd30fa583133c4788fc0e09917
3
+ metadata.gz: ad57b2f2882c3a1dc05a15b4f86f3ae7fde3e8b254768a1bb2e978e6007c87be
4
+ data.tar.gz: 25a3cad4c1fb1c93885d53969ed582fece221f118ed5bee2d6808cd3d676023d
5
5
  SHA512:
6
- metadata.gz: c74bd899f8263fee6097bb7157d6a628f922ac4a43e36264639892b5e1d9359850b4b1cba869711a764d4ec4d55dabd81efa9432b51507bbae2c0f30c0af40e8
7
- data.tar.gz: e5a9b87840af75812374e881e00184527c5c82a5d0d7589c1512c838524b958063e200366d44a70b0f1e8bf020227a3e5a72ed99abafad3bd65e0e357927422c
6
+ metadata.gz: 65682b17bda2902c7b79dba460d653b9c1d35b363c2996e41c352832966871dca61846e08f29a01b66a6ecf68e19e9c5ebca0f29f7116f699738451cb60dca17
7
+ data.tar.gz: f5122429a593697713fc7f1a8f3b3385a45b3d412b7071fee0ed1d543c5a0c74dacc1d3f6aaaa17660318a2b0a888fa43963d182e2785ee4a89218ff81020ed2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.4.2] - 2025-07-15
9
+
10
+ ## Fixed
11
+ Updated the maximum length for the q and qn query parameters from 1000 to 2000 to accommodate larger input values in `Rospatent::Client#validate_search_params`.
12
+
13
+ ## [1.4.1] - 2025-07-15
14
+
15
+ ## Fixed
16
+ Updated the maximum length for the q and qn query parameters from 1000 to 2000 to accommodate larger input values in `Rospatent::Search#validate_and_normalize_params`.
17
+
8
18
  ## [1.4.0] - 2025-06-09
9
19
 
10
20
  ### Added
@@ -544,8 +544,8 @@ module Rospatent
544
544
  # @return [Hash] Validated parameters
545
545
  def validate_search_params(params)
546
546
  validations = {
547
- q: { type: :string, max_length: 1000 },
548
- qn: { type: :string, max_length: 1000 },
547
+ q: { type: :string, max_length: 2000 },
548
+ qn: { type: :string, max_length: 2000 },
549
549
  limit: { type: :positive_integer, min_value: 1, max_value: 100 },
550
550
  offset: { type: :positive_integer, min_value: 0, max_value: 10_000 },
551
551
  pre_tag: { type: :string_or_array, max_length: 50, max_size: 10 },
@@ -97,8 +97,8 @@ module Rospatent
97
97
  validated = {}
98
98
 
99
99
  # Validate query parameters
100
- validated[:q] = validate_string(params[:q], "q", max_length: 1000) if params[:q]
101
- validated[:qn] = validate_string(params[:qn], "qn", max_length: 1000) if params[:qn]
100
+ validated[:q] = validate_string(params[:q], "q", max_length: 2000) if params[:q]
101
+ validated[:qn] = validate_string(params[:qn], "qn", max_length: 2000) if params[:qn]
102
102
 
103
103
  # Validate pagination parameters (only if provided)
104
104
  if params[:limit]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rospatent
4
- VERSION = "1.4.0"
4
+ VERSION = "1.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rospatent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandr Dryzhuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-09 00:00:00.000000000 Z
11
+ date: 2025-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday