fmrest-core 0.26.1 → 0.26.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47bbc3a1dd60de769f11e2e95034ff7e2a88374553251ea5f210b5328551999a
4
- data.tar.gz: a96c1503865da0c440e4ee4516ebb156d4bef6e39d800fced6ad2110cb8b4264
3
+ metadata.gz: 14ddcc1b2d9c9141a5836ac65cba33ae0a0068dcb177568b0b6199fb3d7e8b34
4
+ data.tar.gz: bcea169ae0e2b324493aaa40c7a12c42e94b4810a5d5ba62975a9f6914f03669
5
5
  SHA512:
6
- metadata.gz: dc5bc00c7e9122511fac018624f5ac8a5faf2102f78cb0ad350e3366fc56cbbb91a32af7975aeee74400c7ade2c456190c5ce2abdf7ba1ef24d7f2830944a037
7
- data.tar.gz: 1eabd5a9c384b7ee398cbae514d350d96eb3c4d7e62e358f005ebcc174da27ed561e08399a2efb6c138a1a7b697921c496f90091ba7ecc7469fca15014fb745f
6
+ metadata.gz: c526bd488eb0a0ed4ce6808f07ac585325e1a959ba53e62a0687ca12280fd1bd31324714e49fd64a419ada4c63a98d618230428e335ed1b36a9f210bb71c2b89
7
+ data.tar.gz: 153ea12a89782bccc10b83fa845ecc44bc1133db1e3208acc79d3b64d4e97972e2636120daf9a6e8c596197a565c3044ddcdca1068dea0875b35e2654ff8b499
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.26.2
4
+
5
+ * Fix handling of empty container file URLs, now raises
6
+ `FmRest::ContainerFieldError`
7
+
3
8
  ### 0.26.1
4
9
 
5
10
  * Fix downloading of container files in FileMaker 20
data/README.md CHANGED
@@ -588,7 +588,7 @@ FM Data API reference: https://help.claris.com/en/data-api-guide/
588
588
 
589
589
  The latest fmrest-ruby is
590
590
  [tested against](https://github.com/beezwax/fmrest-ruby/actions?query=workflow%3ACI)
591
- Ruby 3.0 through 3.3, and Rails (ActiveSupport) 6.1 through 7.1.
591
+ Ruby 3.0 through 3.3, and Rails (ActiveSupport) 6.1 through 8.0.
592
592
 
593
593
  ## Gem development
594
594
 
@@ -25,15 +25,19 @@ module FmRest
25
25
  def fetch_container_data(container_field_url, base_connection = nil)
26
26
  require "open-uri"
27
27
 
28
+ if container_field_url == ""
29
+ raise FmRest::ContainerFieldError, "Container field URL is empty string"
30
+ end
31
+
28
32
  begin
29
33
  url = URI(container_field_url)
30
- rescue ::URI::InvalidURIError
34
+ rescue ::URI::InvalidURIError, ArgumentError
31
35
  raise FmRest::ContainerFieldError, "Invalid container field URL `#{container_field_url}'"
32
36
  end
33
37
 
34
38
  # Make sure we don't try to open anything on the file:/ URI scheme
35
39
  unless url.scheme.match(/\Ahttps?\Z/)
36
- raise FmRest::ContainerFieldError, "Container URL is not HTTP (#{container_field_url})"
40
+ raise FmRest::ContainerFieldError, "Container field URL is not HTTP (#{container_field_url})"
37
41
  end
38
42
 
39
43
  ssl_options = base_connection && base_connection.ssl && base_connection.ssl.to_hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FmRest
4
- VERSION = "0.26.1"
4
+ VERSION = "0.26.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmrest-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Carbajal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.4.6
104
+ rubygems_version: 3.5.3
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: FileMaker Data API client using Faraday, core library