duck-duck-go 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/VERSION +1 -1
- data/duck-duck-go.gemspec +2 -2
- data/test/tc_live.rb +5 -5
- metadata +4 -4
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/duck-duck-go.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{duck-duck-go}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["andrewrjones"]
|
12
|
-
s.date = %q{2012-
|
12
|
+
s.date = %q{2012-07-02}
|
13
13
|
s.description = %q{A Ruby library to access the DuckDuckGo Zero Click Info API.}
|
14
14
|
s.email = %q{andrew@arjones.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/tc_live.rb
CHANGED
@@ -6,14 +6,14 @@ require 'duck_duck_go/zero_click_info'
|
|
6
6
|
|
7
7
|
class TestLive < Test::Unit::TestCase
|
8
8
|
|
9
|
-
# test a live search for '
|
9
|
+
# test a live search for 'jack wilshere'
|
10
10
|
def test_live
|
11
11
|
|
12
12
|
ddg = DuckDuckGo.new(nil, false)
|
13
|
-
zci = ddg.zci('
|
13
|
+
zci = ddg.zci('jack wilshere')
|
14
14
|
|
15
15
|
assert_instance_of(DuckDuckGo::ZeroClickInfo, zci)
|
16
|
-
assert_equal("
|
16
|
+
assert_equal("Jack Wilshere", zci.heading)
|
17
17
|
assert_equal("Wikipedia", zci.abstract_source)
|
18
18
|
assert_equal("A", zci.type)
|
19
19
|
end
|
@@ -22,10 +22,10 @@ class TestLive < Test::Unit::TestCase
|
|
22
22
|
def test_live_http
|
23
23
|
|
24
24
|
ddg = DuckDuckGo.new(nil, true)
|
25
|
-
zci = ddg.zci('
|
25
|
+
zci = ddg.zci('jack wilshere')
|
26
26
|
|
27
27
|
assert_instance_of(DuckDuckGo::ZeroClickInfo, zci)
|
28
|
-
assert_equal("
|
28
|
+
assert_equal("Jack Wilshere", zci.heading)
|
29
29
|
assert_equal("Wikipedia", zci.abstract_source)
|
30
30
|
assert_equal("A", zci.type)
|
31
31
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duck-duck-go
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- andrewrjones
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-07-02 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|