lib/synonymous/client.rb in synonymous-0.1.0 vs lib/synonymous/client.rb in synonymous-0.2.0

- old
+ new

@@ -11,10 +11,10 @@ def initialize(api_key:) @api_key = api_key end def get(word) - Response.new(word, client.get("#{URI.escape(word)}?key=#{api_key}")) + Response.new(word, client.get("#{URI.encode_www_form_component(word).gsub("+", "%20")}?key=#{api_key}")) end private attr_reader :client