site_search 0.0.1 → 0.0.2
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.
- data/README.md +2 -2
- metadata +25 -10
data/README.md
CHANGED
|
@@ -59,7 +59,7 @@ You can then access the results in the view like so:
|
|
|
59
59
|
|
|
60
60
|
``` ruby
|
|
61
61
|
<% @search.results.each do |result| %>
|
|
62
|
-
<%=
|
|
62
|
+
<%= result.title %>
|
|
63
63
|
<%= result.text %>
|
|
64
64
|
<%= result.url %>
|
|
65
65
|
<% end %>
|
|
@@ -71,7 +71,7 @@ You can also access the raw document that is received from the Google Custom Sea
|
|
|
71
71
|
@search.raw
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
The GoogleSearch class also accepts
|
|
74
|
+
The GoogleSearch class also accepts optional query parameters(check out the [Google Custom Search API](http://code.google.com/apis/customsearch/v1/using_rest.html#query-params) for details), for example the alt parameter for specifying the format
|
|
75
75
|
of the response, can either be json(default) or atom.
|
|
76
76
|
|
|
77
77
|
``` ruby
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: site_search
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gareth Allen
|
|
@@ -15,10 +15,23 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-08-
|
|
18
|
+
date: 2011-08-18 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
|
-
dependencies:
|
|
21
|
-
|
|
20
|
+
dependencies:
|
|
21
|
+
- !ruby/object:Gem::Dependency
|
|
22
|
+
name: json
|
|
23
|
+
prerelease: false
|
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 3
|
|
30
|
+
segments:
|
|
31
|
+
- 0
|
|
32
|
+
version: "0"
|
|
33
|
+
type: :runtime
|
|
34
|
+
version_requirements: *id001
|
|
22
35
|
description: SiteSearch allows for multiple Google Custom Search engines to be configured, and provides JSON and Atom formats
|
|
23
36
|
email: gaz.allen12@gmail.co.uk
|
|
24
37
|
executables: []
|
|
@@ -63,13 +76,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
76
|
requirements:
|
|
64
77
|
- - ">="
|
|
65
78
|
- !ruby/object:Gem::Version
|
|
66
|
-
hash:
|
|
79
|
+
hash: 19
|
|
67
80
|
segments:
|
|
68
|
-
-
|
|
69
|
-
|
|
81
|
+
- 1
|
|
82
|
+
- 3
|
|
83
|
+
- 4
|
|
84
|
+
version: 1.3.4
|
|
70
85
|
requirements: []
|
|
71
86
|
|
|
72
|
-
rubyforge_project:
|
|
87
|
+
rubyforge_project: site_search
|
|
73
88
|
rubygems_version: 1.3.7
|
|
74
89
|
signing_key:
|
|
75
90
|
specification_version: 3
|