fmrest-cloud 0.23.1 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +30 -0
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e1bbca6db3dfbc8a164b344df0f515a7133123c0b3d183b8e9b0b005b44ce6b
4
- data.tar.gz: ab3b5508f6fe27a886d7bbc272e58382da1ade54f56af235d923b89fbb29f742
3
+ metadata.gz: b00b132325e2817e746917ba34f88147b77eb9a4332e655cc96b81d1ce955197
4
+ data.tar.gz: 13e21e739e0c138c93beba1a71775d2dc2001b6e73d4c65ba4d6b4c278739458
5
5
  SHA512:
6
- metadata.gz: e3c6802a3f7f316df704c1d1621be59391829b3145d131365b380aa87d001e6a637c676e2e7fcdd063238d3ae30145f9a3628100b25e35ddebe8d0b892309114
7
- data.tar.gz: 734bea88edb9e3a6f4e7e42a8295b7195511703439aeb62622ed23e82b95504c091c219b50bee6ebcea03036a0740dbd803748de9ed269c2b3d612c61e1b3aa1
6
+ metadata.gz: 4f4d0bc8e48cde0ced2ae3fbc79632af5ca5418e4f55b480b85af1d997400b7d50971efba44714a939e9eac630b7087ba8d26e540d38f5d691f327d540d120ac
7
+ data.tar.gz: 6e4ffcfd6cc28dd260dcc6eb5c7ecc6862f251d52f85a32ad448214986f8cf72ed76faf248cfe53623a68995594602de541f88b1f057068f2b6df8138d0c0acf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.24.0
4
+
5
+ * Add `FmRest::Layout.ignore_mod_id` flag
6
+
3
7
  ### 0.23.1
4
8
 
5
9
  * Fix crash when booting in Rails and `config/fmrest.yml` didn't exist
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-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
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-07-14 00:00:00.000000000 Z
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.23.1
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.23.1
26
+ version: 0.24.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-cognito-srp
29
29
  requirement: !ruby/object:Gem::Requirement