podcast_index 0.2.0 → 0.2.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/lib/podcast_index/podcast.rb +2 -0
- data/lib/podcast_index/version.rb +1 -1
- data/lib/podcast_index.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc3ddf4428c6108e1b2e5c3e5a9886283d34234cd85ccb8c6d927129d73d09fc
|
4
|
+
data.tar.gz: ebe518a53c0aeed362d57922464c13caae545b7535c7ea8622442286a55e2bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83fe55e0065975fe9c6ee193247dacf1ba710cbf41660065ca81b1bdf7964f626f2540f7d2f63b6ef74b8937e6c5a3161e4d401777e23e0bee7bcdd74cfa4f55
|
7
|
+
data.tar.gz: 69a5aef31c4658c5934029522dd66f8e5e9b7d8c4040978302e03457b6ba181c6a70ddad786a12c8dab0d7d5de74fbb770d54daef08f197b4aada0a6e7818351
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.2.1] - 2023-07-06
|
4
|
+
|
5
|
+
* Raise exception when `Podcast.find` returns no result ([#6](https://github.com/jasonyork/podcast-index/issues/6))
|
6
|
+
|
3
7
|
## [0.2.0] - 2023-04-24
|
4
8
|
|
5
9
|
* BREAKING: Switching to be more consistent with ActiveRecord conventions, using `find_by` and `where` methods for all models
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -56,6 +56,16 @@ podcast = PodcastIndex::Podcast.find(920666)
|
|
56
56
|
podcast.title # => "Podcasting 2.0"
|
57
57
|
```
|
58
58
|
|
59
|
+
When the podcast cannot be found:
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
begin
|
63
|
+
podcast = PodcastIndex::Podcast.find("invalid")
|
64
|
+
rescue PodcastIndex::PodcastNotFound
|
65
|
+
puts "Podcast not found"
|
66
|
+
end
|
67
|
+
```
|
68
|
+
|
59
69
|
Find an episode by guid:
|
60
70
|
|
61
71
|
```ruby
|
data/lib/podcast_index.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podcast_index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason York
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|