xspf 0.4.1 → 0.4.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,17 @@
12
12
  #++
13
13
 
14
14
  require 'rexml/document'
15
- require 'xml/xslt'
15
+
16
+ begin
17
+ require 'xml/xslt_lib' # For ruby-xslt 0.9.3 or newer
18
+ rescue LoadError => e
19
+ begin
20
+ require 'xml/xslt' # For ruby-xslt 0.9.2 or older
21
+ rescue LoadError => e
22
+ puts "You need to install ruby-xslt to use ruby-xspf"
23
+ exit
24
+ end
25
+ end
16
26
 
17
27
  # :include: USAGE
18
28
  # :main: USAGE
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: xspf
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.1
7
- date: 2006-12-03 00:00:00 +01:00
6
+ version: 0.4.1.1
7
+ date: 2007-04-10 00:00:00 +02:00
8
8
  summary: A library to parse XML Shareable Playlist Format (XSPF) files
9
9
  require_paths:
10
10
  - lib