randomyoutube 0.1.0 → 0.1.1

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/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))
@@ -1,3 +1,3 @@
1
1
  module RandomYouTube
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-25 00:00:00 Z
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: 3
28
+ hash: 27
29
29
  segments:
30
30
  - 0
31
- version: "0"
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: "0"
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.