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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/fmrest/v1/container_fields.rb +6 -2
- data/lib/fmrest/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14ddcc1b2d9c9141a5836ac65cba33ae0a0068dcb177568b0b6199fb3d7e8b34
|
4
|
+
data.tar.gz: bcea169ae0e2b324493aaa40c7a12c42e94b4810a5d5ba62975a9f6914f03669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c526bd488eb0a0ed4ce6808f07ac585325e1a959ba53e62a0687ca12280fd1bd31324714e49fd64a419ada4c63a98d618230428e335ed1b36a9f210bb71c2b89
|
7
|
+
data.tar.gz: 153ea12a89782bccc10b83fa845ecc44bc1133db1e3208acc79d3b64d4e97972e2636120daf9a6e8c596197a565c3044ddcdca1068dea0875b35e2654ff8b499
|
data/CHANGELOG.md
CHANGED
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
|
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
|
data/lib/fmrest/version.rb
CHANGED
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.
|
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-
|
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:
|
102
|
+
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
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
|