deep_unrest 0.1.3 → 0.1.4

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: 674e3acd0ec850d525c09666ef0d72b3d753a177
4
- data.tar.gz: 1b9b82f0cd452f52b15eb186d377bbbfda238c3f
3
+ metadata.gz: 6f717bfb628fffff42b0c527f08ab2ef3326ce35
4
+ data.tar.gz: cb1b1d5078c77fd7091aae3cfa98dbba3c3f5c74
5
5
  SHA512:
6
- metadata.gz: f40e66bdba886fccb494a5dad60c11cba8a49ef67f706a1d024550902827988d948299332d99eefe3af1fadb5de888ea617fa2dac1adff7a0a5b8693e335f35a
7
- data.tar.gz: 724c3e1fc92e134e9445f876dd801a8688b9c9953b38a65aa43731e9492ba881b75cc2cf03340561f8d077357eba8630791e8f624f8e2b71214ee49e5b514410
6
+ metadata.gz: 35c90c8413e1186500ceb02dc3eb6409774c5ee7c50d827c7c09d5b9ca4e5d217e23932df17b3932a293e291789c3a60423cc50dfa0a069cc630781a2e2ca779
7
+ data.tar.gz: 1950cc80610063bb97fdf39427cd93cead04d83ac993da8a04cd571cfbe38f53fc391e4d723cc32d2f679749d7e722750b49803084a081197b5c9c6bf73d1ba4
data/lib/deep_unrest.rb CHANGED
@@ -33,11 +33,11 @@ module DeepUnrest
33
33
  end
34
34
 
35
35
  def self.to_assoc(str)
36
- str.pluralize.underscore.to_sym
36
+ str.underscore.to_sym
37
37
  end
38
38
 
39
39
  def self.to_update_body_key(str)
40
- "#{str.pluralize}Attributes".underscore.to_sym
40
+ "#{str}Attributes".underscore.to_sym
41
41
  end
42
42
 
43
43
  def self.get_resource(type)
@@ -251,7 +251,7 @@ module DeepUnrest
251
251
  end
252
252
 
253
253
  def self.build_mutation_body(ops, user)
254
- ops.each_with_object({}) do |op, memo|
254
+ ops.each_with_object(HashWithIndifferentAccess.new({})) do |op, memo|
255
255
  memo.deeper_merge(build_mutation_fragment(op, user))
256
256
  end
257
257
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DeepUnrest
2
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley