video_info 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -3
- data/lib/providers/youtube.rb +2 -2
- data/lib/video_info/version.rb +1 -1
- metadata +33 -61
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dce1fb0ec69e907c6d6c798f51052ed60882c965
|
4
|
+
data.tar.gz: f0188a15dcf6f5d6db89fedb76ccab7f44227f5d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cbdbe04a47dc8cb2b1af689e9047101b14541499e89b8d0d716a39f848981c9778c2f2bfc9526e49aad081a7f105608a3bd19ae77af756d48cf73ede645c7c51
|
7
|
+
data.tar.gz: d135a10ac5445aad8a57936a1b5f44fe640d2f689835311f86f723616511745eea6d321002d10bb33bafe81d9bf025cb54cb3d42fd76d58393d34340895f28fd
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
VideoInfo [![Build Status](https://secure.travis-ci.org/thibaudgg/video_info.png?branch=master)](http://travis-ci.org/thibaudgg/video_info)
|
2
|
-
=========
|
1
|
+
# VideoInfo [![Gem Version](https://badge.fury.io/rb/video_info.png)](http://badge.fury.io/rb/video_info) [![Build Status](https://secure.travis-ci.org/thibaudgg/video_info.png?branch=master)](http://travis-ci.org/thibaudgg/video_info) [![Dependency Status](https://gemnasium.com/thibaudgg/video_info.png)](https://gemnasium.com/thibaudgg/video_info) [![Code Climate](https://codeclimate.com/github/thibaudgg/video_info.png)](https://codeclimate.com/github/thibaudgg/video_info) [![Coverage Status](https://coveralls.io/repos/thibaudgg/video_info/badge.png?branch=master)](https://coveralls.io/r/thibaudgg/video_info)
|
3
2
|
|
4
|
-
|
3
|
+
Simple Ruby Gem to get video info from youtube and vimeo url.
|
5
4
|
Tested against Ruby 1.8.7, 1.9.2, REE and the latest versions of JRuby & Rubinius.
|
6
5
|
|
7
6
|
Install
|
data/lib/providers/youtube.rb
CHANGED
@@ -17,12 +17,12 @@ module VideoInfo
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def regex
|
20
|
-
/youtube\.com\/watch\?v=([A-Za-z0-9._%-]*)?|youtu\.be\/([A-Za-z0-9._%-]*)?/
|
20
|
+
/youtube\.com\/watch\?v=([A-Za-z0-9._%-]*)?|youtu\.be\/([A-Za-z0-9._%-]*)?|youtube\.com\/embed\/([A-Za-z0-9._%-]*)?/
|
21
21
|
end
|
22
22
|
|
23
23
|
def video_id_for(url)
|
24
24
|
url.gsub(regex) do
|
25
|
-
@video_id = $1 || $2
|
25
|
+
@video_id = $1 || $2 || $3
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/video_info/version.rb
CHANGED
metadata
CHANGED
@@ -1,112 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.1.1
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Thibaud Guillaume-Gentil
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
type: :runtime
|
16
|
-
prerelease: false
|
17
14
|
name: multi_json
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
|
-
requirements:
|
21
|
-
- - ! '>='
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: '0'
|
24
15
|
requirement: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
16
|
requirements:
|
27
|
-
- -
|
17
|
+
- - '>='
|
28
18
|
- !ruby/object:Gem::Version
|
29
19
|
version: '0'
|
30
|
-
|
31
|
-
type: :development
|
20
|
+
type: :runtime
|
32
21
|
prerelease: false
|
33
|
-
name: bundler
|
34
22
|
version_requirements: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
23
|
requirements:
|
37
|
-
- -
|
24
|
+
- - '>='
|
38
25
|
- !ruby/object:Gem::Version
|
39
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
40
29
|
requirement: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
30
|
requirements:
|
43
|
-
- -
|
31
|
+
- - '>='
|
44
32
|
- !ruby/object:Gem::Version
|
45
33
|
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
34
|
type: :development
|
48
35
|
prerelease: false
|
49
|
-
name: rspec
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
37
|
requirements:
|
53
|
-
- -
|
38
|
+
- - '>='
|
54
39
|
- !ruby/object:Gem::Version
|
55
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
56
43
|
requirement: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
44
|
requirements:
|
59
|
-
- -
|
45
|
+
- - '>='
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
48
|
type: :development
|
64
49
|
prerelease: false
|
65
|
-
name: guard-rspec
|
66
50
|
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
51
|
requirements:
|
69
|
-
- -
|
52
|
+
- - '>='
|
70
53
|
- !ruby/object:Gem::Version
|
71
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
72
57
|
requirement: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
58
|
requirements:
|
75
|
-
- -
|
59
|
+
- - '>='
|
76
60
|
- !ruby/object:Gem::Version
|
77
61
|
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
62
|
type: :development
|
80
63
|
prerelease: false
|
81
|
-
name: fakeweb
|
82
64
|
version_requirements: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
65
|
requirements:
|
85
|
-
- -
|
66
|
+
- - '>='
|
86
67
|
- !ruby/object:Gem::Version
|
87
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
88
71
|
requirement: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
72
|
requirements:
|
91
|
-
- -
|
73
|
+
- - '>='
|
92
74
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
94
|
-
-
|
75
|
+
version: 1.8.0
|
76
|
+
- - <
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '1.10'
|
95
79
|
type: :development
|
96
80
|
prerelease: false
|
97
|
-
name: vcr
|
98
81
|
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
82
|
requirements:
|
101
|
-
- -
|
83
|
+
- - '>='
|
102
84
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
104
|
-
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
85
|
+
version: 1.8.0
|
86
|
+
- - <
|
108
87
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
88
|
+
version: '1.10'
|
110
89
|
description: Get video info from youtube and vimeo url.
|
111
90
|
email:
|
112
91
|
- thibaud@thibaud.me
|
@@ -122,32 +101,25 @@ files:
|
|
122
101
|
- README.md
|
123
102
|
homepage: http://rubygems.org/gems/video_info
|
124
103
|
licenses: []
|
104
|
+
metadata: {}
|
125
105
|
post_install_message:
|
126
106
|
rdoc_options: []
|
127
107
|
require_paths:
|
128
108
|
- lib
|
129
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
110
|
requirements:
|
132
|
-
- -
|
111
|
+
- - '>='
|
133
112
|
- !ruby/object:Gem::Version
|
134
|
-
segments:
|
135
|
-
- 0
|
136
|
-
hash: 753158899111595136
|
137
113
|
version: '0'
|
138
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
115
|
requirements:
|
141
|
-
- -
|
116
|
+
- - '>='
|
142
117
|
- !ruby/object:Gem::Version
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
hash: 753158899111595136
|
146
118
|
version: '0'
|
147
119
|
requirements: []
|
148
120
|
rubyforge_project: video_info
|
149
|
-
rubygems_version:
|
121
|
+
rubygems_version: 2.0.3
|
150
122
|
signing_key:
|
151
|
-
specification_version:
|
123
|
+
specification_version: 4
|
152
124
|
summary: Vimeo & Youtube parser
|
153
125
|
test_files: []
|