randomyoutube 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/randomyoutube.rb +3 -0
- data/lib/randomyoutube/version.rb +1 -1
- metadata +11 -7
data/lib/randomyoutube.rb
CHANGED
@@ -17,6 +17,9 @@ module RandomYouTube
|
|
17
17
|
|
18
18
|
def self.local_exec
|
19
19
|
@mywords = `#{THREE_WORDS}`
|
20
|
+
if $? != 0
|
21
|
+
raise "Error! '#{THREE_WORDS}' failed.\nSet RandomYouTube::THREE_WORDS to a valid shell script for random words."
|
22
|
+
end
|
20
23
|
@mywords = @mywords.strip_byac(ACC_CHARS).split("\n")
|
21
24
|
urlsearch = REQUESTOR + @mywords.join('+')
|
22
25
|
Nokogiri::XML(open(urlsearch))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: randomyoutube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel P. Clark / 6ftDan(TM)
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-11-
|
18
|
+
date: 2012-11-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: mightystring
|
@@ -25,10 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 27
|
29
29
|
segments:
|
30
30
|
- 0
|
31
|
-
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
version: 0.1.0
|
32
34
|
type: :runtime
|
33
35
|
version_requirements: *id001
|
34
36
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +43,10 @@ dependencies:
|
|
41
43
|
- !ruby/object:Gem::Version
|
42
44
|
hash: 3
|
43
45
|
segments:
|
46
|
+
- 1
|
47
|
+
- 5
|
44
48
|
- 0
|
45
|
-
version:
|
49
|
+
version: 1.5.0
|
46
50
|
type: :runtime
|
47
51
|
version_requirements: *id002
|
48
52
|
description: Grab a random youtube video link from any linux box. Parsable and human readable.
|