lib/semantics3.rb in semantics3-0.10 vs lib/semantics3.rb in semantics3-0.11

- old
+ new

@@ -29,12 +29,13 @@ private #def oauth(response) #returns a value def _make_request(endpoint,method = "GET",params) - base_url = 'https://api-staging.semantics3.com/v1/' #+ endpoint + '?q=' + CGI.escape(params) + base_url = 'https://api.semantics3.com/v1/' #+ endpoint + '?q=' + CGI.escape(params) + if method == "GET" request_data = CGI.escape(params) encoded_url = base_url + endpoint + '?q=' + request_data response = @auth.get(encoded_url) JSON.parse response.body @@ -275,6 +276,6 @@ JSON.parse(foo).all? rescue JSON::ParserError false end end -end \ No newline at end of file +end