fmrest-spyke 0.20.0 → 0.21.0.rc1

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: 6b0dda2df76492e1a94884124d7b505916eb81b6c1124fd0e20c1ddcc36317c0
4
- data.tar.gz: b8b145aac8eb9fd5b0d785a2e716693923827cd2b4e0dd754efe566a8d0cf48f
3
+ metadata.gz: 4034ed2549cfbfb4acd3e9adedaa0adbdc9ff15264ee37558389fbed227a8132
4
+ data.tar.gz: c3d62e198342a7dd043bb27da0b0883e6c6b5ea05021c47113fe1aed918662f9
5
5
  SHA512:
6
- metadata.gz: 431911d8b5091c52f5d719436932382468c25dbcdf17bfce6a5f5f1c3259cc097b6db3205c8c5a7562cec405542f41b4177a4d905a8ed37abb0b03945b1f5611
7
- data.tar.gz: 99ca7656cf14ad9c305926ca9af5fe5894a0b8da6e9cd929b3480f1346fa40e2937b90ed70c487c89df64e579c9ff41c729088946adab4dbb0ce42e7b1650ebb
6
+ metadata.gz: 520f8c2b00b1a30b673fadc3fdb7cfb1a9a37b434114757a00d375fd838e00096c3a5094dfdc6a797f77b557aabee15a94a0126615fa7b95a582dde042d4a7c0
7
+ data.tar.gz: 0a1f3b4c7641d80a81e85f74d054bb1cd0385d6815afcf19c687f1fcda5b72fac9a723e00bec06c7dd2ff0b034351031fc12a7843238fd85665a9628b493dbd9
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/fmrest.svg?style=flat)](https://rubygems.org/gems/fmrest)
4
4
  ![CI](https://github.com/beezwax/fmrest-ruby/workflows/CI/badge.svg)
5
5
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://rubydoc.info/github/beezwax/fmrest-ruby)
6
+ [![Powered by Beezwax](https://img.shields.io/badge/Powered%20By-Beezwax-gold?logo=data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMTA5IiBoZWlnaHQ9IjEw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ODQ1QzQ4LjEgLTAuNjc1MTU1IDQ1LjUgMC40MjQ4NDUgNDUuMyAwLjYyNDg0NUwyMy4xIDEzLjMyNDhIMjIuOVoiIGZpbGw9IiNGRkQ5MzkiPjwvcGF0aD4NCiAgICAgIDxwYXRoIGQ9Ik0wLjEgMzEuNTI0NFY3OC4yMjQ0QzAuMSA4MC44MjQ0IDIuMiA4Mi4zMjQ0IDIuNyA4Mi43MjQ0TDE0LjggODkuNjI0NEwxNy44IDkxLjMyNDRDMjQuNCA4NC43MjQ0IDI4LjQgNzYuMzI0NCAyOC41IDY3LjEyNDRDMjguNSA1MS41MjQ0IDE2LjggMzguMDI0NCAwIDMxLjUyNDRIMC4xWiIgZmlsbD0iI0ZGRDkzOSI+PC9wYXRoPg0KICAgPC9nPg0KPC9zdmc+)](https://beezwax.net/)
6
7
 
7
8
  A Ruby client for
8
9
  [FileMaker's Data API](https://help.claris.com/en/data-api-guide)
@@ -16,20 +17,6 @@ is natively supported by the gem.
16
17
  Need Ruby or FileMaker consulting? Contact us at
17
18
  [Beezwax.net](https://beezwax.net/)
18
19
 
19
- ## Contents
20
-
21
- * [Gems](#gems)
22
- * [Installation](#installation)
23
- * [Simple example](#simple-example)
24
- * [Connection settings](#connection-settings)
25
- * [Session token store](#session-token-store)
26
- * [Date fields and timezones](#date-fields-and-timezones)
27
- * [ActiveRecord-like ORM (fmrest-spyke)](#activerecord-like-orm-fmrest-spyke)
28
- * [Logging](#logging)
29
- * [Gotchas](#gotchas)
30
- * [API implementation completeness table](#api-implementation-completeness-table)
31
- * [Supported Ruby versions](#supported-ruby-versions)
32
-
33
20
  ## Gems
34
21
 
35
22
  The `fmrest` gem is a wrapper for two other gems:
@@ -124,7 +111,8 @@ to, for instance, disable SSL verification:
124
111
  {
125
112
  host: "…",
126
113
 
127
- ssl: { verify: false }
114
+ ssl: { verify: false },
115
+ proxy: "http://user:password@proxy.host:4321"
128
116
  }
129
117
  ```
130
118
 
@@ -135,13 +123,13 @@ You can also pass a `:log` option for basic request logging, see the section on
135
123
 
136
124
  Option | Description | Format | Default
137
125
  --------------------|--------------------------------------------|-----------------------------|--------
138
- `:host` | Hostname with optional port, e.g. `"example.com:9000"` | String | None
126
+ `:host` | Hostname with optional port, e.g. `example.com:9000` | String | None
139
127
  `:database` | The name of the database to connect to | String | None
140
128
  `:username` | A Data API-ready account | String | None
141
129
  `:password` | Your password | String | None
142
130
  `:account_name` | Alias of `:username` | String | None
143
- `:ssl` | SSL options to be forwarded to Faraday | Faraday SSL options | None
144
- `:proxy` | Proxy URI e.g. `http://username:password@proxy.host:5000` | String / URI | None
131
+ `:ssl` | SSL options to be forwarded to Faraday | [Faraday SSL options](https://www.rubydoc.info/gems/faraday/Faraday/SSLOptions) hash | None
132
+ `:proxy` | Proxy URI, e.g. `http://user:password@proxy.host:4321` | String | None
145
133
  `:log` | Log JSON responses to STDOUT | Boolean | `false`
146
134
  `:log_level` | Which log level to log into | Values accepted by `Logger#level=` | `:debug`
147
135
  `:coerce_dates` | See section on [date fields](#date-fields-and-timezones) | Boolean \| `:hybrid` \| `:full` | `false`
@@ -561,13 +549,8 @@ FM Data API reference: https://help.claris.com/en/data-api-guide/
561
549
 
562
550
  ## Supported Ruby versions
563
551
 
564
- fmrest-ruby aims to support and is [tested against](https://github.com/beezwax/fmrest-ruby/actions?query=workflow%3ACI)
565
- the following Ruby implementations:
566
-
567
- * Ruby 2.5
568
- * Ruby 2.6
569
- * Ruby 2.7
570
- * Ruby 3.0
552
+ fmrest-ruby is [tested against](https://github.com/beezwax/fmrest-ruby/actions?query=workflow%3ACI)
553
+ Ruby 2.6 through 3.1.
571
554
 
572
555
  ## Gem development
573
556
 
@@ -141,7 +141,7 @@ module FmRest
141
141
  conn.use FmRest::V1::TypeCoercer, config
142
142
 
143
143
  # FmRest::Spyke::SpykeFormatter expects symbol keys
144
- conn.response :json, parser_options: { symbolize_names: true }, content_type: /\bjson$/
144
+ conn.response :json, parser_options: { symbolize_names: true }
145
145
  end
146
146
 
147
147
  @fmrest_connection = connection if memoize
@@ -22,7 +22,7 @@ module FmRest
22
22
 
23
23
  # Response Faraday middleware for converting FM API's response JSON into
24
24
  # Spyke's expected format
25
- class SpykeFormatter < ::Faraday::Response::Middleware
25
+ class SpykeFormatter < ::Faraday::Middleware
26
26
  SINGLE_RECORD_RE = %r(/records/\d+\z).freeze
27
27
  MULTIPLE_RECORDS_RE = %r(/records\z).freeze
28
28
  CONTAINER_RE = %r(/records/\d+/containers/[^/]+/\d+\z).freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmrest-spyke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Carbajal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fmrest-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.0
19
+ version: 0.21.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.20.0
26
+ version: 0.21.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spyke
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 5.3.3
33
+ version: '7.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 5.3.3
40
+ version: '7.0'
41
41
  description: fmrest-spyke is an ActiveRecord-like ORM client library for the FileMaker
42
42
  Data API built on top of fmrest-core and Spyke (https://github.com/balvig/spyke).
43
43
  email:
@@ -88,11 +88,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - ">"
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 1.3.1
94
94
  requirements: []
95
- rubygems_version: 3.2.3
95
+ rubygems_version: 3.3.3
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: FileMaker Data API ORM client library