semantics3 0.03 → 0.04

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- data.tar.gz: 94cd2416099186ac9473a42d472f9a6e87688adc
4
- metadata.gz: 2d2546ddf78dd461a0bb92224a0786df0ed7a3d4
5
2
  SHA512:
6
- data.tar.gz: 7ab76290fea5adb2da17155f8369dc0931a1cb95a39d8347d8f2396599236fa9f990c8f7bbfe567a95da7a7b329a91fabc7f4b40bb581b1d521ec4c2d4429840
7
- metadata.gz: 57b29c4925b1d2bb272c4fc6c84f4b06d0cfe0115fd9d94a6e41dd9eba05d85a2fd264b3053288ff1e4c45ca33b31b3f5c67b89915da2145ce8bb111510ff266
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=' + URI.escape(params)
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.03'
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.03"
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-02-08 00:00:00 Z
12
+ date: 2014-03-11 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json