lumiere 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lumiere.rb CHANGED
@@ -20,6 +20,10 @@ class Elluminate
20
20
  @provider ||= Lumiere::Provider.delegate(url)
21
21
  end
22
22
 
23
+ def self.useable?(url)
24
+ Lumiere::Provider.useable?(url)
25
+ end
26
+
23
27
  def_delegators :@provider, :video_id, :playlist_id
24
28
  def_delegators :@provider, :provider, :upload_date
25
29
  def_delegators :@provider, :title, :description, :duration
@@ -1,3 +1,3 @@
1
1
  module Lumiere
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/provider.rb CHANGED
@@ -18,6 +18,13 @@ module Lumiere
18
18
  raise NotImplementedError
19
19
  end
20
20
 
21
+ def self.useable?(url)
22
+ delegate(url)
23
+ true
24
+ rescue NotImplementedError
25
+ false
26
+ end
27
+
21
28
  def video_id
22
29
  raise NotImplementedError
23
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumiere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: