downthetube 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- downthetube (0.0.9)
4
+ downthetube (1.0.2)
5
5
  gdata_19 (>= 1.0.0)
6
6
 
7
7
  GEM
data/downthetube.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  specification = Gem::Specification.new do |spec|
2
2
  # Descriptive and source information for this gem.
3
3
  spec.name = "downthetube"
4
- spec.version = "1.0.1"
4
+ spec.version = "1.0.2"
5
5
  spec.description = "A library to make downloading playlists and videos from Youtube less nasty."
6
6
  spec.summary = "Downloads playlists and videos from Youtube."
7
7
  spec.author = "Mike Williamson"
@@ -37,11 +37,11 @@ module Youtube
37
37
  populate_attrs
38
38
 
39
39
  elsif((entry.class==String)&&(entry =~ /\w{16}/))
40
- @url = "http://gdata.youtube.com/feeds/api/playlists/#{entry}"
41
40
  @id = entry.to_s
42
41
  else
43
42
  raise "The Playlist class did not understand the parameter it was initialized with."
44
43
  end
44
+ @url = "http://gdata.youtube.com/feeds/api/playlists/#{@id}"
45
45
  end
46
46
 
47
47
 
@@ -89,7 +89,6 @@ module Youtube
89
89
  @title = @xml.elements['title'].text
90
90
  @author = @xml.elements['author/name'].text
91
91
  @human_url = @xml.elements['link'].attribute('href').value
92
- @url = @xml.elements.collect('link'){|l| l}[1].attribute('href').value
93
92
  end
94
93
 
95
94
  def define_attrs # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: downthetube
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-06 00:00:00.000000000Z
12
+ date: 2011-12-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gdata_19
16
- requirement: &17181520 !ruby/object:Gem::Requirement
16
+ requirement: &23389920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17181520
24
+ version_requirements: *23389920
25
25
  description: A library to make downloading playlists and videos from Youtube less
26
26
  nasty.
27
27
  email: blessedbyvirtuosity@gmail.com