duck-duck-go 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,11 +15,12 @@ begin
15
15
  gem.name = "duck-duck-go"
16
16
  gem.summary = %Q{Access the DuckDuckGo Zero Click Info API}
17
17
  gem.description = %Q{A Ruby library to access the DuckDuckGo Zero Click Info API.}
18
- gem.email = "andrwe@arjones.co.uk"
18
+ gem.email = "andrew@arjones.co.uk"
19
19
  gem.homepage = "https://github.com/andrewrjones/ruby-duck-duck-go"
20
20
  gem.authors = ["andrewrjones"]
21
21
  gem.add_dependency('httpclient')
22
22
  gem.add_dependency('json')
23
+ gem.files.exclude 'scripts'
23
24
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
24
25
  end
25
26
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{duck-duck-go}
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["andrewrjones"]
12
+ s.date = %q{2011-04-08}
13
+ s.description = %q{A Ruby library to access the DuckDuckGo Zero Click Info API.}
14
+ s.email = %q{andrew@arjones.co.uk}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "LICENSE",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "duck-duck-go.gemspec",
25
+ "lib/duck_duck_go.rb",
26
+ "lib/duck_duck_go/icon.rb",
27
+ "lib/duck_duck_go/link.rb",
28
+ "lib/duck_duck_go/zero_click_info.rb",
29
+ "test/tc_icon.rb",
30
+ "test/tc_link.rb",
31
+ "test/tc_live.rb",
32
+ "test/tc_zero_click_info.rb"
33
+ ]
34
+ s.homepage = %q{https://github.com/andrewrjones/ruby-duck-duck-go}
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.6.1}
37
+ s.summary = %q{Access the DuckDuckGo Zero Click Info API}
38
+ s.test_files = [
39
+ "test/tc_icon.rb",
40
+ "test/tc_link.rb",
41
+ "test/tc_live.rb",
42
+ "test/tc_zero_click_info.rb"
43
+ ]
44
+
45
+ if s.respond_to? :specification_version then
46
+ s.specification_version = 3
47
+
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<httpclient>, [">= 0"])
50
+ s.add_runtime_dependency(%q<json>, [">= 0"])
51
+ else
52
+ s.add_dependency(%q<httpclient>, [">= 0"])
53
+ s.add_dependency(%q<json>, [">= 0"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<httpclient>, [">= 0"])
57
+ s.add_dependency(%q<json>, [">= 0"])
58
+ end
59
+ end
60
+
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - andrewrjones
@@ -47,7 +47,7 @@ dependencies:
47
47
  type: :runtime
48
48
  version_requirements: *id002
49
49
  description: A Ruby library to access the DuckDuckGo Zero Click Info API.
50
- email: andrwe@arjones.co.uk
50
+ email: andrew@arjones.co.uk
51
51
  executables: []
52
52
 
53
53
  extensions: []
@@ -60,11 +60,11 @@ files:
60
60
  - README.rdoc
61
61
  - Rakefile
62
62
  - VERSION
63
+ - duck-duck-go.gemspec
63
64
  - lib/duck_duck_go.rb
64
65
  - lib/duck_duck_go/icon.rb
65
66
  - lib/duck_duck_go/link.rb
66
67
  - lib/duck_duck_go/zero_click_info.rb
67
- - scripts/search_dump.rb
68
68
  - test/tc_icon.rb
69
69
  - test/tc_link.rb
70
70
  - test/tc_live.rb
@@ -1,23 +0,0 @@
1
- # dumps out the result of the query, in JSON and Ruby
2
- # used during development
3
- #
4
- # usage: ruby scripts/search_dump.rb foo
5
-
6
- require 'rubygems'
7
- require 'httpclient'
8
- require 'json'
9
- require 'pp'
10
-
11
- http = HTTPClient.new
12
- query = { 'q' => ARGV[0], 'o' => 'json' }
13
-
14
- json = http.get_content('http://api.duckduckgo.com/', query)
15
- ruby = JSON.parse(json)
16
-
17
- puts 'JSON'
18
- puts '----'
19
- puts json
20
- puts
21
- puts 'Ruby'
22
- puts '----'
23
- pp ruby