fmrest-rails 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +30 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0033faa26f239c27f7e86c267df0eaca339d2ba5ac6d948ee9ba894f6e895fe1
|
4
|
+
data.tar.gz: a99adfbdbd7901759e33f7dd0ca7effae5c85453c808cce09fe5761efa7dc186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21524546d0c28127e35976cee66398b4e354e0a7dd101eb7bedc3a80f5db5db44a02c01e3d418244491581d99025522e674962fd163970ce8786514fd93e6494
|
7
|
+
data.tar.gz: fe6f0ef2448a190865bfbcf24ae9d3a48ab2f7c995c9b374313ceeb072206f9b131985e89b2d811feb378ae06d28ee77cbd3698a7fa81a646d908ace3ebe2ff7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -469,6 +469,36 @@ class method. Also note that this will only catch exceptions raised during an
|
|
469
469
|
API call to the Data API server (in other words, only on actions that perform
|
470
470
|
an HTTP request).
|
471
471
|
|
472
|
+
### Optional `modId`
|
473
|
+
|
474
|
+
The Data API provides an optional `modId` value that gets set on a record every
|
475
|
+
time you fetch or update it. This value then gets included in the API request
|
476
|
+
when you save the record, and FileMaker compares it against the current value,
|
477
|
+
preventing the update in case of a mismatch.
|
478
|
+
|
479
|
+
This safety feature is enabled by default in `fmrest-spyke` models, but you can
|
480
|
+
disable it using the inheritable `ignore_mod_id` flag on your model classes or
|
481
|
+
instances. E.g.
|
482
|
+
|
483
|
+
```ruby
|
484
|
+
class Bee < FmRest::Layout
|
485
|
+
# This disables modId for all instances and subclasses
|
486
|
+
self.ignore_mod_id = true
|
487
|
+
end
|
488
|
+
|
489
|
+
# Or set it on instances:
|
490
|
+
bee = Bee.new
|
491
|
+
bee.ignore_mod_id # => true (set in class)
|
492
|
+
bee.ignore_mod_id = false # (affects only this instance)
|
493
|
+
```
|
494
|
+
|
495
|
+
You can also set it directly on `FmRest::Layout` if you want to disable it for
|
496
|
+
your entire app:
|
497
|
+
|
498
|
+
```ruby
|
499
|
+
FmRest::Layout.ignore_mod_id = true
|
500
|
+
```
|
501
|
+
|
472
502
|
## Logging
|
473
503
|
|
474
504
|
If using `fmrest-spyke` with Rails then pretty log output will be set up for
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fmrest-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Carbajal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fmrest-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
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.
|
26
|
+
version: 0.24.0
|
27
27
|
description: fmrest-rails provides Rails integration for the fmrest gem.
|
28
28
|
email:
|
29
29
|
- pedro_c@beezwax.net
|