fmrest-core 0.26.1.rc1 → 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: 8f5ff7c2a8bae8216fe6c87f0ecd3f52e9f0ee79a58688750089c09bbd7c258a
4
- data.tar.gz: ea339e65464e436fedef11f247e093c3d4ec6c4a0af8aa92f7d29e5a71ddace7
3
+ metadata.gz: 14ddcc1b2d9c9141a5836ac65cba33ae0a0068dcb177568b0b6199fb3d7e8b34
4
+ data.tar.gz: bcea169ae0e2b324493aaa40c7a12c42e94b4810a5d5ba62975a9f6914f03669
5
5
  SHA512:
6
- metadata.gz: 155e1c9578fbcd8c4bd179ba521f58f5b776175d65c0c12f4a8f32c8bcaa20346d4da928b2c94aa65f3314682311f02de1ad72fcc344a2a5990911278e98dcb6
7
- data.tar.gz: e54e44904fb094fca77af030d7ba553b28c42d360b814eab984b37e24bb9eca725854cc74ee087db8f9b6291846d5baf55f460c33953184212cdf09677ab52bb
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.rc1"
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.rc1
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
@@ -97,11 +97,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">"
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 1.3.1
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