semantics3 0.03 → 0.04
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 +5 -5
- data/lib/semantics3.rb +2 -1
- data/semantics3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: 94cd2416099186ac9473a42d472f9a6e87688adc
|
4
|
-
metadata.gz: 2d2546ddf78dd461a0bb92224a0786df0ed7a3d4
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: ec1c393a4622410f28f72e856d70bcfb86a2ae4fa7a833379d699900d51a9b91e0e81b179227db0163083bbe8212e9bfc10d13eda005dac9a73810a9f397dafe
|
4
|
+
data.tar.gz: c31391dfd60d7d21a02fb485c162eeb23d3d24fb58cf8f60ff5de29feb4aae22358295cb5285290b9ecce49c2b104d0e12d649e9dc9c4a6930047654dc387ce8
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: af7ad4b7caafa920f0ba0f66e27e4d94d1d02600
|
7
|
+
data.tar.gz: 2dbc54c3143cfc6adebd9e82a83f5fded103e13b
|
data/lib/semantics3.rb
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
require 'rubygems'
|
9
9
|
require 'oauth'
|
10
10
|
require 'uri'
|
11
|
+
require 'cgi'
|
11
12
|
require 'json'
|
12
13
|
|
13
14
|
module Semantics3
|
@@ -29,7 +30,7 @@ module Semantics3
|
|
29
30
|
|
30
31
|
#returns a value
|
31
32
|
def _make_request(endpoint, params)
|
32
|
-
url = 'https://api.semantics3.com/v1/' + endpoint + '?q=' +
|
33
|
+
url = 'https://api.semantics3.com/v1/' + endpoint + '?q=' + CGI.escape(params)
|
33
34
|
|
34
35
|
#puts "url = #{url}"
|
35
36
|
response = @auth.get(url)
|
data/semantics3.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |s|
|
4
4
|
s.name = 'semantics3'
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.04'
|
6
6
|
s.summary = 'Ruby bindings for the Semantics3 API'
|
7
7
|
s.description = 'Get access to a constantly updated database of product and price data. See https://semantics3.com/ for more information.'
|
8
8
|
s.authors = ['Sivamani Varun']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantics3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.04"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sivamani Varun
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-11 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|