From a902472f464d7d3250d5be6888b452729c602541 Mon Sep 17 00:00:00 2001 From: Jack Noble Date: Tue, 22 Jan 2019 11:21:53 -0800 Subject: [PATCH 1/2] Remove destructive operation on search body The bang method is dangerous and doesn't let us pass frozen constants. --- lib/elasticity/search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elasticity/search.rb b/lib/elasticity/search.rb index 2ca2c6f..1b64e68 100644 --- a/lib/elasticity/search.rb +++ b/lib/elasticity/search.rb @@ -13,7 +13,7 @@ class Definition def initialize(index_name, document_types, body, search_args = {}) @index_name = index_name @document_types = document_types - @body = body.deep_symbolize_keys! + @body = body.deep_symbolize_keys @search_args = search_args end From 63724fc2e31bc042fc4c5689d9a0fca961e95508 Mon Sep 17 00:00:00 2001 From: Jack Noble Date: Tue, 22 Jan 2019 11:27:11 -0800 Subject: [PATCH 2/2] Bump version --- lib/elasticity/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elasticity/version.rb b/lib/elasticity/version.rb index 4bb86e3..40f90b8 100644 --- a/lib/elasticity/version.rb +++ b/lib/elasticity/version.rb @@ -1,3 +1,3 @@ module Elasticity - VERSION = "0.12.0" + VERSION = "0.12.1" end