yboss 0.3.0 → 0.4.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/yboss/base.rb +1 -1
- data/spec/yboss_spec.rb +4 -0
- data/yboss.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3077700d2e48b0f202cdbfd4ceb033614e651ddf
|
4
|
+
data.tar.gz: 4ac4f8387acab265732bd9c9d4b257a704748490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a022b832394feee3325a42b1f8a7dce594fcaa62293c13ad8e8c40f3309785099616e060d69ad0a78108476827b57b7891a370c9a856222db36927866f7da644
|
7
|
+
data.tar.gz: 797710ac7e2241aea9b0fbded6cea784efb70253e613511630812c7b536cd87e96cfcfabfd771838ad52aa6befe0042d55e1ddc93e342e464168ae2a5c85ccf1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/yboss/base.rb
CHANGED
@@ -35,7 +35,7 @@ module YBoss
|
|
35
35
|
@options.merge!(options)
|
36
36
|
|
37
37
|
url = base_uri + '?'
|
38
|
-
url += @options.find_all { |k,v| ! v.nil? }.map { |k,v| "#{k}=#{
|
38
|
+
url += @options.find_all { |k,v| ! v.nil? }.map { |k,v| "#{k}=#{CGI.escape(v)}" }.join('&')
|
39
39
|
|
40
40
|
parsed_url = URI.parse(url)
|
41
41
|
url += "?" + @oauth.sign(parsed_url).query_string
|
data/spec/yboss_spec.rb
CHANGED
@@ -82,4 +82,8 @@ describe "Yboss Basic Queries" do
|
|
82
82
|
it "should return some results for a query string with an equals sign" do
|
83
83
|
trySearch(:web, "1 + 1 = 3")
|
84
84
|
end
|
85
|
+
|
86
|
+
it "should return some results for a query string with ampersand sign" do
|
87
|
+
trySearch(:web, "h&m")
|
88
|
+
end
|
85
89
|
end
|
data/yboss.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: yboss 0.
|
5
|
+
# stub: yboss 0.4.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "yboss"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.4.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Tobias Begalke"]
|
14
|
-
s.date = "2015-01
|
14
|
+
s.date = "2015-04-01"
|
15
15
|
s.description = "yboss is a ruby library for the Yahoo BOSS API"
|
16
16
|
s.email = "tob@spyz.org"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Begalke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|