reddavis-oembed-with-ruby 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/lib/oembed/media.rb +1 -4
  2. metadata +2 -2
data/lib/oembed/media.rb CHANGED
@@ -41,11 +41,8 @@ module Oembed
41
41
  #find Oembed provider - set in ../providers.yaml
42
42
  def find_provider
43
43
  @sites.keys.each do |key|
44
- unless @url.match(/#{key}/).nil?
44
+ if @url.match(/#{key}/)
45
45
  @base_url = prepare_url(@sites[key])
46
- else
47
- raise TypeError, "URL was not an Oembed provider"
48
- #check_for_other_service
49
46
  end
50
47
  end
51
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reddavis-oembed-with-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-25 13:45:39 -07:00
12
+ date: 2008-08-26 01:57:21 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15