podcast_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/errors.rb CHANGED
@@ -19,8 +19,5 @@ module PodcastApi
19
19
  end
20
20
 
21
21
  class NotFoundError < PodcastApiError
22
- end
23
-
24
- class APIConnectionError < PodcastApiError
25
- end
22
+ end
26
23
  end
data/lib/podcast_api.rb CHANGED
@@ -76,10 +76,12 @@ module PodcastApi
76
76
  end
77
77
 
78
78
  def batch_fetch_podcasts(**kwargs)
79
+ @headers['Content-Type'] = 'application/x-www-form-urlencoded'
79
80
  return send_http_request('post', "#{@base_url}/podcasts", {body: kwargs, headers: @headers})
80
81
  end
81
82
 
82
83
  def batch_fetch_episodes(**kwargs)
84
+ @headers['Content-Type'] = 'application/x-www-form-urlencoded'
83
85
  return send_http_request('post', "#{@base_url}/episodes", {body: kwargs, headers: @headers})
84
86
  end
85
87
 
@@ -89,7 +91,6 @@ module PodcastApi
89
91
  end
90
92
 
91
93
  def fetch_curated_podcasts_lists(**kwargs)
92
- id = kwargs.delete(:id)
93
94
  return send_http_request('get', "#{@base_url}/curated_podcasts", {query: kwargs, headers: @headers})
94
95
  end
95
96
 
@@ -129,6 +130,7 @@ module PodcastApi
129
130
  end
130
131
 
131
132
  def submit_podcast(**kwargs)
133
+ @headers['Content-Type'] = 'application/x-www-form-urlencoded'
132
134
  return send_http_request('post', "#{@base_url}/podcasts/submit", {body: kwargs, headers: @headers})
133
135
  end
134
136
 
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.2"
4
+ VERSION = "1.0.3"
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.2
4
+ version: 1.0.3
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-04-30 00:00:00.000000000 Z
11
+ date: 2021-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty