fmrest 0.7.0 → 0.7.1

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: ab46f70bffcfea32ef2bfd5021f03fa654bb43134e22b8e22a20d9955afe9caf
4
- data.tar.gz: 32ce4378ff291d2c41d9b255b032d4562d7544a477765748c87c49a655449405
3
+ metadata.gz: 94745e25176074d96540a4a7659dce7ee15d6ea88867a58c35c3f38af8cd466f
4
+ data.tar.gz: 512669f188c9abe0c403318d50da19ac5376b6cc6bed74880eff9aebb5d642af
5
5
  SHA512:
6
- metadata.gz: a68af2d8e53631b1d5c4d9e5e0849d224ff3918d1138d437463e30318ae81c36ca968d226f2f3631dbaa0d21b6287c1899e3b322a716729ad0d8b77aff80fd8d
7
- data.tar.gz: ace50f913960e6b2edd190c8c1cbb75a0ebf15c0c3f0e8343720155f1c53b78bb9fd942be0a5e9bf2a2bc1ff729277f86360ffa4bba397ba48abe86c07db02ad
6
+ metadata.gz: 620ee792b4b585d80358857d5464870c3384211d4311385a034ff6b941c40672d48bfa9f42b48935885131c2fe579d8a51b7e84544dbe08483d467d27966ba0c
7
+ data.tar.gz: e422690817ba000c9bbecd828a0c58118e223238ba44b76e86a6160cd87cb854cad0a584efd7932237cb58f125a5e567f292c0849022b897dc3f4c89ab66d96d
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.7.1
4
+
5
+ * Made sure `Model.find_one` and `Model.find_some` work without needing to call
6
+ `Model.all` in between
7
+
3
8
  ### 0.7.0
4
9
 
5
10
  * Added date coercion feature
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`: whenever a string matches the given date/timestamp/time format,
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`: similar as above, but instead of converting to regular
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`: disable date coercion entirely (default), leave original string
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FmRest
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday