google_search_cse 0.0.1 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 294ce271e342412aa5a7d5472490ea778bf4746c
4
- data.tar.gz: 8b2fef860bd5f30a2ee916e2c23e1920c6c29c0a
2
+ SHA256:
3
+ metadata.gz: 33cf6b709fc10e912d900c5fd0f0488e91246f7d5c20d126b5d895e380891b9e
4
+ data.tar.gz: a4fea602bb89ce7c25da00d236cb36ee6fcf28ffc3b01c1cb16200a420c2df0b
5
5
  SHA512:
6
- metadata.gz: 2b213b0ed94358143d6e1d58ec0c6476925770fed44157747bdfe9f2a47d1072a863492f73990d5a8d146086ab37cc8fd1d209796c0e2e199616d0add354b50e
7
- data.tar.gz: 2fb0722e327032ef08b411706fab181b5cd21fb924763a13e5fbe722fc7490af1bd13410405da0b59b4aebfccd943b1fec960da2bb4b96e90a6cdef64cfeefd2
6
+ metadata.gz: 03b1a964fade7c2d480b437d23ab71416775d84e96a4c1dc27cd6a8054e08aff0fa552f476828150b946735b5235bea51d184083f51feb792c9b921722a094a4
7
+ data.tar.gz: 954c059fc3fc291f58d9f363a918d3c93a1084cef2495b2e1a9f8847e384fd9c142438afa08b218d81a56a95b2096d4e5805706b71ffdddfd78fbd3e24d82385
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # google_search_cse
2
+
3
+ A Ruby library to integrate [Google Custom Search Engine (CSE)](https://programmablesearchengine.google.com/) into Rails applications. Lets you add Google-powered search to your site using your own custom search engine ID.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your `Gemfile`:
8
+
9
+ ```ruby
10
+ gem 'google_search_cse'
11
+ ```
12
+
13
+ Then run:
14
+
15
+ ```bash
16
+ bundle install
17
+ ```
18
+
19
+ ## Setup
20
+
21
+ 1. Create a Custom Search Engine at [programmablesearchengine.google.com](https://programmablesearchengine.google.com/)
22
+ 2. Note your **Search Engine ID (cx)**
23
+ 3. Enable the **Custom Search JSON API** in Google Cloud Console and grab an **API key**
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ search = GoogleSearchCse.new
29
+ results = search.query("YOUR_API_KEY", "YOUR_CX_ID", "ruby on rails")
30
+ ```
31
+
32
+ ## Links
33
+
34
+ - [Google Custom Search JSON API docs](https://developers.google.com/custom-search/v1/overview)
35
+ - [Get an API key](https://console.cloud.google.com/)
@@ -0,0 +1,18 @@
1
+ require_relative "lib/google_search_cse/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "google_search_cse"
5
+ spec.version = GoogleSearchCse::VERSION
6
+ spec.authors = ["Abhishek Sharma"]
7
+ spec.email = ["abhsss96@gmail.com"]
8
+ spec.summary = "A library to use Google Custom Search in Rails applications"
9
+ spec.description = "Provides a Ruby interface for the Google Custom Search JSON API."
10
+ spec.homepage = "https://github.com/abhsss96/google_search_cse"
11
+ spec.license = "MIT"
12
+ spec.required_ruby_version = ">= 2.7"
13
+
14
+ spec.files = Dir["lib/**/*", "README.md", "*.gemspec"]
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_development_dependency "rspec", "~> 3.12"
18
+ end
@@ -0,0 +1,3 @@
1
+ class GoogleSearchCse
2
+ VERSION = "0.0.3"
3
+ end
@@ -1,3 +1,13 @@
1
+ require_relative "google_search_cse/version"
2
+
1
3
  class GoogleSearchCse
2
-
4
+ class DeprecatedError < StandardError; end
5
+
6
+ def initialize(*)
7
+ raise DeprecatedError,
8
+ "[DEPRECATED] google_search_cse: Google Custom Search API is being shut down on " \
9
+ "January 1, 2027. This gem has no implementation. " \
10
+ "Please migrate to Algolia (https://www.algolia.com/), " \
11
+ "Meilisearch (https://www.meilisearch.com/), or Typesense (https://typesense.org/)."
12
+ end
3
13
  end
metadata CHANGED
@@ -1,27 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_search_cse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhishek Sharma
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A library to use google search in Rails application.
14
- email: abhsss96@gmail.com
11
+ date: 2026-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.12'
27
+ description: Provides a Ruby interface for the Google Custom Search JSON API.
28
+ email:
29
+ - abhsss96@gmail.com
15
30
  executables: []
16
31
  extensions: []
17
32
  extra_rdoc_files: []
18
33
  files:
34
+ - README.md
35
+ - google_search_cse.gemspec
19
36
  - lib/google_search_cse.rb
20
- homepage: http://rubygems.org/gems/google_search_cse
37
+ - lib/google_search_cse/version.rb
38
+ homepage: https://github.com/abhsss96/google_search_cse
21
39
  licenses:
22
- - Intelliswift
40
+ - MIT
23
41
  metadata: {}
24
- post_install_message:
42
+ post_install_message:
25
43
  rdoc_options: []
26
44
  require_paths:
27
45
  - lib
@@ -29,17 +47,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
29
47
  requirements:
30
48
  - - ">="
31
49
  - !ruby/object:Gem::Version
32
- version: '0'
50
+ version: '2.7'
33
51
  required_rubygems_version: !ruby/object:Gem::Requirement
34
52
  requirements:
35
53
  - - ">="
36
54
  - !ruby/object:Gem::Version
37
55
  version: '0'
38
56
  requirements: []
39
- rubyforge_project:
40
- rubygems_version: 2.4.8
41
- signing_key:
57
+ rubygems_version: 3.5.22
58
+ signing_key:
42
59
  specification_version: 4
43
- summary: Gem to use google custom search engine API. It uses various filter of Google.
44
- Provided by Google Custom Search V2 API.
60
+ summary: A library to use Google Custom Search in Rails applications
45
61
  test_files: []