caprese 0.3.4 → 0.3.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ca4c84e5919ce00359d805fbbbfd4da7e26c769
4
- data.tar.gz: bd3df0c2fc3a9f29f91c9577c18ebf9a48b9a9df
3
+ metadata.gz: e53a4d1080bc4655a3529a041a1a7329eac302ac
4
+ data.tar.gz: cf62b7680549e00d34188a070b77b5174ab306aa
5
5
  SHA512:
6
- metadata.gz: 46b96f45c77864c3ae31ec75291a0ae9e1e4c3ce4480c952896c5a07751cd799678fe9d525237abb16ba8df485d76340232819cb390ab374916352fadbb32471
7
- data.tar.gz: b8fad22479e137399a200458e706bf632c18dceda7be71b8e61fa3295381a773100fd232852d48639ca695df6449fbcb697c4589d775454adb878c10035ecdf0
6
+ metadata.gz: fd8a8306c0556c6032f90397b07979f386fa1d926263075b9b724dd4406229c269ca991156ac8f207bd44d7b94a2d50487944f5d4e464876919bca97b874f27c
7
+ data.tar.gz: 2cff04fbf97d0afee4810e3cc42fa333599957deba7ed29ddeb8f9789eff52e31546a25ad713735e2358d617f38f722b8227fbc354a4266a376fe8476f3d3f33
data/CHANGELOG.md CHANGED
@@ -23,3 +23,7 @@
23
23
 
24
24
  * Fix bug in processing of collection relationship data (5e21582)
25
25
  * Fix bug in persisting of collection relationship data on create (1eb4720)
26
+
27
+ ## 0.3.5
28
+
29
+ * Ensure that `record_scope` is always provided a symbol as an argument (c61ac0d)
@@ -283,7 +283,7 @@ module Caprese
283
283
 
284
284
  # { type: '...', attributes: { ... } }
285
285
  elsif contains_constructable_data?(resource_identifier)
286
- record_scope(resource_identifier[:type]).build
286
+ record_scope(resource_identifier[:type].to_sym).build
287
287
 
288
288
  # { type: '...' }
289
289
  else
@@ -100,7 +100,7 @@ module Caprese
100
100
  # @param [Value] value the value to match to a column/row value
101
101
  # @return [APIRecord] the record that was found
102
102
  def get_record(scope, column, value)
103
- scope = record_scope(scope) unless scope.respond_to?(:find_by)
103
+ scope = record_scope(scope.to_sym) unless scope.respond_to?(:find_by)
104
104
 
105
105
  scope.find_by(column => value)
106
106
  end
@@ -110,7 +110,7 @@ module Caprese
110
110
  #
111
111
  # @see get_record
112
112
  def get_record!(scope, column, value)
113
- scope = record_scope(scope) unless scope.respond_to?(:find_by!)
113
+ scope = record_scope(scope.to_sym) unless scope.respond_to?(:find_by!)
114
114
 
115
115
  begin
116
116
  scope.find_by!(column => value)
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caprese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe