feedium 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0064852188c2d68708db991e6297149391da9623'
4
- data.tar.gz: 7de215a58d7c5e5fe7a7091910a32593bce78d40
3
+ metadata.gz: 693d68af4b2a4ee667dab9489976653329120312
4
+ data.tar.gz: 7b14b3eb1a4d6a5a31c580b1498bba468f3b6266
5
5
  SHA512:
6
- metadata.gz: 18a844dd46c6e6dfed06db1eafb6e9907f6b5cca68888c126f62fb07b177f3b7d1639bbd44bb287c07e945537303212bdce11ad40d8fc266ccef3f407d5e55bb
7
- data.tar.gz: 1efef4e254edf6157cfb58f490218d0cd88b84799e96ed24b865f949244d93c87287b398a80498d897311488b99625e03c0d5461223fba1b75a6aad7542e7f52
6
+ metadata.gz: 3eadf2234c5338aa378fabc9093c0abc4d288f51ddac0c75dc7ebebb192ec5cb6236f878d04299b72ed54022354693ed8f7b05223a951158bb68adb5da79a41d
7
+ data.tar.gz: 51b06aac9be896223673341f95354207deecb85130ba4656f64acbac06b1f627dfdd5778e4e11147a3afe5f1419073b55d49c2d661bbc866bb722687217ee4a9
@@ -1,3 +1,3 @@
1
1
  module Feedium
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/feedium.rb CHANGED
@@ -44,6 +44,14 @@ module Feedium
44
44
  nil
45
45
  end
46
46
 
47
+ def self.find!(url)
48
+ feed = self.find(url)
49
+
50
+ raise Feedium::RequestError.new('Feed not found') if feed.nil?
51
+
52
+ feed
53
+ end
54
+
47
55
  def self.feed?(url)
48
56
  @request = Request.new(url)
49
57
  @request.send
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex