summaryrefslogtreecommitdiff
path: root/lib/chef_zero/solr
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-03 10:02:37 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-03 11:56:22 -0700
commitb244346c1e8d500e82603d0dace7a84a8031c89c (patch)
treef0a705d73a643ebe4bde13754b5eedd4bd4a970e /lib/chef_zero/solr
parent694c8cb8a3c564dc27a06cefbaff4c3f6369da50 (diff)
downloadchef-zero-b244346c1e8d500e82603d0dace7a84a8031c89c.tar.gz
fixes for new chefstyle
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef_zero/solr')
-rw-r--r--lib/chef_zero/solr/query/range_query.rb2
-rw-r--r--lib/chef_zero/solr/query/regexpable_query.rb6
-rw-r--r--lib/chef_zero/solr/solr_parser.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef_zero/solr/query/range_query.rb b/lib/chef_zero/solr/query/range_query.rb
index 76ec828..67ce1ce 100644
--- a/lib/chef_zero/solr/query/range_query.rb
+++ b/lib/chef_zero/solr/query/range_query.rb
@@ -39,7 +39,7 @@ module ChefZero
matches_values?(doc[DEFAULT_FIELD])
end
- DEFAULT_FIELD = "text"
+ DEFAULT_FIELD = "text".freeze
end
end
end
diff --git a/lib/chef_zero/solr/query/regexpable_query.rb b/lib/chef_zero/solr/query/regexpable_query.rb
index 62d7fc7..4cf6748 100644
--- a/lib/chef_zero/solr/query/regexpable_query.rb
+++ b/lib/chef_zero/solr/query/regexpable_query.rb
@@ -21,9 +21,9 @@ module ChefZero
values.any? { |value| !@regexp.match(value).nil? }
end
- DEFAULT_FIELD = "text"
- WORD_CHARACTER = "[A-Za-z0-9@._':\-]"
- NON_WORD_CHARACTER = "[^A-Za-z0-9@._':\-]"
+ DEFAULT_FIELD = "text".freeze
+ WORD_CHARACTER = "[A-Za-z0-9@._':\-]".freeze
+ NON_WORD_CHARACTER = "[^A-Za-z0-9@._':\-]".freeze
end
end
end
diff --git a/lib/chef_zero/solr/solr_parser.rb b/lib/chef_zero/solr/solr_parser.rb
index cec1b34..86c232f 100644
--- a/lib/chef_zero/solr/solr_parser.rb
+++ b/lib/chef_zero/solr/solr_parser.rb
@@ -200,7 +200,7 @@ module ChefZero
end
end
- DEFAULT_FIELD = "text"
+ DEFAULT_FIELD = "text".freeze
end
end
end