fmrest-cloud 0.23.0 → 0.24.0.rc1

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 +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee1b951b814eacc91a9d313d1e0a7bcd38e90acdf6951ee08cb52404675b817
4
- data.tar.gz: 2676a68575c5aa780f05429b8ea20172f8a09939478684e65c69c90c6ab13855
3
+ metadata.gz: f7822b07e373077e7dd74b854471fc19ab1abc7cc61a85779ef77e0ec23d7c50
4
+ data.tar.gz: 843bf7c25cc285fcd4c35a4d7f3605d021b3fd99cbab9a7133ea65d6d2956aae
5
5
  SHA512:
6
- metadata.gz: 38f3c0da0f1bac7becbb3be3722c05968ad649a26f423bf65a27532bb9148831e0e1030b7b8929963377fe257a127394d9233afcf9022ad22d391dca5099675a
7
- data.tar.gz: eabba078d4159bbbbb12b9cf797eef188584b99b027e01fbb2591401830ff6af4f4a64abba4ce8b5a31cbc09266828726f8558fbf35c7053f4391bb6edbfbbe4
6
+ metadata.gz: 26c05a2c3d17bc2f9f124769ff6baa299049c6467040f21e9fd712d79b68dd2592567656cb8536bc0c1d9a7959403679ced9d99c6cde2da0efc6af4b22b80006
7
+ data.tar.gz: 8ecd3c5b57d40717bb0db440482d58e481fa250e2ed6a8f9e5b9b213dae5c086f454d5f3d29796f696c6898412d06b0fac66fd0a9be4ebd0af72b89fd97766ce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.23.1
4
+
5
+ * Fix crash when booting in Rails and `config/fmrest.yml` didn't exist
6
+
3
7
  ### 0.23.0
4
8
 
5
9
  * Add `find_one!` (aliased as `first!`) exception-raising method
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.0
4
+ version: 0.24.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: 2022-06-24 00:00:00.000000000 Z
11
+ date: 2022-10-12 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.0
19
+ version: 0.24.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.23.0
26
+ version: 0.24.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-cognito-srp
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,9 +69,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - ">"
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: 1.3.1
75
75
  requirements: []
76
76
  rubygems_version: 3.3.3
77
77
  signing_key: