jsonapi-query_builder 0.1.5.pre → 0.1.6.pre

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: 0b50a745e0fcfc8d58634db7b58d956b5224c65f006da7adc0f1cff96f1ee558
4
- data.tar.gz: 49310d9172f4fe6898fae709d7c674ec170593e99f22dcf6247bd101b61aab46
3
+ metadata.gz: edcba945298b8eadf8c9eb952ee3fed13ba3c8c822afa15dea5126102b689584
4
+ data.tar.gz: acb2b63e334270e21874c4985467c29953faa2abda3af6065aac26b0963767af
5
5
  SHA512:
6
- metadata.gz: 2cb51151e0dfa54c039c6f3ebe6dea0ef6bb1564188ba9b95fab667cb433a3ee390c834d28fc14b4f283fafa79bbfb493fcb30d81e927a072edd25cc2a249b70
7
- data.tar.gz: 829f1696107d7241c850ec6b88f03a6e08ca4bb5b21ca535901afed283da1a13bfb2be44d94372b2aaf5603d21a79fa37af8aac1e19206f95db33496b8075abd
6
+ metadata.gz: d80d0e5ac1d07327c1f8737eb5b52439022914238a650ee926175c9f2e3b6f1bf0abecb15812e3e8f8241f8d607a5c2a8b9094169a1ba2e869363a4ecc588a0e
7
+ data.tar.gz: a17154de4293836988b82af81fef9e2a925f9a153d5ba1ae161178e75ad7b6571a0c5f38b2f0f3b96661f001ec3442191b70cdc85754489ebbd80cee78a4bb21
@@ -29,15 +29,15 @@ module Jsonapi
29
29
  end
30
30
 
31
31
  def find(id)
32
- find_by id: id
32
+ find_by! id: id
33
33
  end
34
34
 
35
35
  def record
36
- find_by id: params[:id]
36
+ find_by! id: params[:id]
37
37
  end
38
38
 
39
- def find_by(**kwargs)
40
- add_includes(collection).find_by(kwargs)
39
+ def find_by!(**kwargs)
40
+ add_includes(collection).find_by!(kwargs)
41
41
  end
42
42
  end
43
43
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jsonapi
4
4
  module QueryBuilder
5
- VERSION = "0.1.5.pre"
5
+ VERSION = "0.1.6.pre"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi-query_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.pre
4
+ version: 0.1.6.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jure Cindro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-31 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord