muri 1.1.6 → 1.1.8
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.
- data/CHANGELOG +7 -1
- data/VERSION.yml +2 -1
- data/lib/muri/base.rb +1 -1
- data/lib/muri/filters/youtube.rb +1 -1
- data/muri.gemspec +4 -5
- metadata +17 -5
data/CHANGELOG
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
Muri Changelog
|
2
2
|
===================================
|
3
3
|
|
4
|
-
Version 1.1.
|
4
|
+
Version 1.1.8
|
5
|
+
* Fix to allow youtube short URL's to properly work (youtu.be/blah style)
|
6
|
+
|
7
|
+
Version 1.1.7
|
8
|
+
* Minor fix for issue with ruby 1.9.2, closes [https://github.com/bananastalktome/muri/issues/1]
|
9
|
+
|
10
|
+
Version 1.1.6
|
5
11
|
* Reenabled Facebook album parsing ability
|
6
12
|
* Enabled short URL's for youtube (ex/ http://youtu.be/ZL1Jta1j42c)
|
7
13
|
|
data/VERSION.yml
CHANGED
data/lib/muri/base.rb
CHANGED
@@ -20,7 +20,7 @@ class Muri
|
|
20
20
|
define_method(service) { self.media_service == parser }
|
21
21
|
self.constants.reject { |c| c !~ /^#{parser.upcase}/ }.each do |exp|
|
22
22
|
define_method("#{exp.downcase}?") do
|
23
|
-
self.media_api_type == eval(exp) && self.instance_eval(service)
|
23
|
+
self.media_api_type == eval("#{exp}") && self.instance_eval(service)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
const_set "#{parser.upcase}_SERVICE_NAME", "#{parser}"
|
data/lib/muri/filters/youtube.rb
CHANGED
@@ -10,7 +10,7 @@ class Muri
|
|
10
10
|
REGEX_YOUTUBE_VIDEO_DIRECT = /\/v\/([a-z0-9\-\_]+)/i
|
11
11
|
REGEX_YOUTUBE_PLAYLIST_WATCH = /^\/view\_play\_list\/?$/i
|
12
12
|
REGEX_YOUTUBE_PLAYLIST_DIRECT = /^\/p\/([a-z0-9\-\_]+)/i
|
13
|
-
REGEX_YOUTUBE_SHORTURL = /^\/([a-z0-9]+)$/i
|
13
|
+
REGEX_YOUTUBE_SHORTURL = /^\/([a-z0-9\-\_]+)$/i
|
14
14
|
|
15
15
|
def self.included(base)
|
16
16
|
base.class_eval do
|
data/muri.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muri}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["William Schneider"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-08-23}
|
13
13
|
s.description = %q{Automatically get media information from the URL.}
|
14
14
|
s.email = %q{bananastalktome@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.homepage = %q{http://github.com/bananastalktome/muri/}
|
47
47
|
s.rdoc_options = ["--charset=UTF-8"]
|
48
48
|
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version = %q{1.
|
49
|
+
s.rubygems_version = %q{1.4.2}
|
50
50
|
s.summary = %q{Media URI Parser}
|
51
51
|
s.test_files = [
|
52
52
|
"spec/vimeo_spec.rb",
|
@@ -61,10 +61,9 @@ Gem::Specification.new do |s|
|
|
61
61
|
]
|
62
62
|
|
63
63
|
if s.respond_to? :specification_version then
|
64
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
65
64
|
s.specification_version = 3
|
66
65
|
|
67
|
-
if Gem::Version.new(Gem::
|
66
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
68
67
|
else
|
69
68
|
end
|
70
69
|
else
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 8
|
10
|
+
version: 1.1.8
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- William Schneider
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2011-
|
18
|
+
date: 2011-08-23 00:00:00 -04:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -58,21 +64,27 @@ rdoc_options:
|
|
58
64
|
require_paths:
|
59
65
|
- lib
|
60
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
61
68
|
requirements:
|
62
69
|
- - ">="
|
63
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
64
74
|
version: "0"
|
65
|
-
version:
|
66
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
67
77
|
requirements:
|
68
78
|
- - ">="
|
69
79
|
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
70
83
|
version: "0"
|
71
|
-
version:
|
72
84
|
requirements: []
|
73
85
|
|
74
86
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.4.2
|
76
88
|
signing_key:
|
77
89
|
specification_version: 3
|
78
90
|
summary: Media URI Parser
|