fmrest 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/fmrest/spyke/model/orm.rb +1 -1
- data/lib/fmrest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94745e25176074d96540a4a7659dce7ee15d6ea88867a58c35c3f38af8cd466f
|
|
4
|
+
data.tar.gz: 512669f188c9abe0c403318d50da19ac5376b6cc6bed74880eff9aebb5d642af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 620ee792b4b585d80358857d5464870c3384211d4311385a034ff6b941c40672d48bfa9f42b48935885131c2fe579d8a51b7e84544dbe08483d467d27966ba0c
|
|
7
|
+
data.tar.gz: e422690817ba000c9bbecd828a0c58118e223238ba44b76e86a6160cd87cb854cad0a584efd7932237cb58f125a5e567f292c0849022b897dc3f4c89ab66d96d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -246,14 +246,14 @@ to automatically "coerce" them into Ruby date objects.
|
|
|
246
246
|
The connection option `:coerce_dates` controls this feature. Possible values
|
|
247
247
|
are:
|
|
248
248
|
|
|
249
|
-
* `:full
|
|
249
|
+
* `:full` - whenever a string matches the given date/timestamp/time format,
|
|
250
250
|
convert them to `Date` or `DateTime` objects as appropriate
|
|
251
|
-
* `:hybrid` or `true
|
|
251
|
+
* `:hybrid` or `true` - similar as above, but instead of converting to regular
|
|
252
252
|
`Date`/`DateTime` it converts strings to `FmRest::StringDate` and
|
|
253
253
|
`FmRest::StringDateTime`, "hybrid" classes provided by fmrest-ruby that
|
|
254
254
|
retain the functionality of `String` while also providing most the
|
|
255
255
|
functionality of `Date`/`DateTime` (more on this below)
|
|
256
|
-
* `false
|
|
256
|
+
* `false` - disable date coercion entirely (default), leave original string
|
|
257
257
|
values untouched
|
|
258
258
|
|
|
259
259
|
Enabling date coercion works with both basic fmrest-ruby connections and Spyke
|
|
@@ -24,7 +24,7 @@ module FmRest
|
|
|
24
24
|
# Methods delegated to FmRest::Spyke::Relation
|
|
25
25
|
delegate :limit, :offset, :sort, :order, :query, :omit, :portal,
|
|
26
26
|
:portals, :includes, :with_all_portals, :without_portals,
|
|
27
|
-
:script, to: :all
|
|
27
|
+
:script, :find_one, :find_some, to: :all
|
|
28
28
|
|
|
29
29
|
def all
|
|
30
30
|
# Use FmRest's Relation instead of Spyke's vanilla one
|
data/lib/fmrest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fmrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pedro Carbajal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|