podcast_api 1.0.4 → 1.1.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.
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- podcast_api (1.0.1)
4
+ podcast_api (1.1.0)
5
5
  httparty
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- httparty (0.18.1)
10
+ httparty (0.20.0)
11
11
  mime-types (~> 3.0)
12
12
  multi_xml (>= 0.5.2)
13
13
  mime-types (3.3.1)
14
14
  mime-types-data (~> 3.2015)
15
- mime-types-data (3.2021.0225)
15
+ mime-types-data (3.2021.0901)
16
16
  multi_xml (0.6.0)
17
17
 
18
18
  PLATFORMS
data/examples/sample.rb CHANGED
@@ -24,6 +24,14 @@ else
24
24
  puts "Next billing date: #{response.headers['X-Listenapi-NextBillingDate']}"
25
25
  end
26
26
 
27
+ # response = client.spellcheck(q: 'evergrand stok')
28
+ # puts JSON.parse(response.body)
29
+
30
+ # response = client.fetch_related_searches(q: 'evergrande')
31
+ # puts JSON.parse(response.body)
32
+
33
+ # response = client.fetch_trending_searches()
34
+ # puts JSON.parse(response.body)
27
35
 
28
36
  # response = client.typeahead(q: 'startup', show_podcasts: 1)
29
37
  # puts JSON.parse(response.body)
data/lib/podcast_api.rb CHANGED
@@ -61,6 +61,18 @@ module PodcastApi
61
61
  return send_http_request('get', "#{@base_url}/typeahead", {query: kwargs, headers: @headers})
62
62
  end
63
63
 
64
+ def spellcheck(**kwargs)
65
+ return send_http_request('get', "#{@base_url}/spellcheck", {query: kwargs, headers: @headers})
66
+ end
67
+
68
+ def fetch_related_searches(**kwargs)
69
+ return send_http_request('get', "#{@base_url}/related_searches", {query: kwargs, headers: @headers})
70
+ end
71
+
72
+ def fetch_trending_searches(**kwargs)
73
+ return send_http_request('get', "#{@base_url}/trending_searches", {query: kwargs, headers: @headers})
74
+ end
75
+
64
76
  def fetch_best_podcasts(**kwargs)
65
77
  return send_http_request('get', "#{@base_url}/best_podcasts", {query: kwargs, headers: @headers})
66
78
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodcastApi
4
- VERSION = "1.0.4"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podcast_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Listen Notes, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-02 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty