lib/css_parser.rb in css_parser-1.0.1 vs lib/css_parser.rb in css_parser-1.1.1
- old
+ new
@@ -1,15 +1,14 @@
-$:.unshift File.dirname(__FILE__)
require 'uri'
+require 'open-uri'
require 'digest/md5'
require 'zlib'
require 'iconv'
-require 'css_parser/rule_set'
-require 'css_parser/regexps'
-require 'css_parser/parser'
module CssParser
+ VERSION = '1.1.1'
+
# Merge multiple CSS RuleSets by cascading according to the CSS 2.1 cascading rules
# (http://www.w3.org/TR/REC-CSS2/cascade.html#cascading-order).
#
# Takes one or more RuleSet objects.
#
@@ -144,6 +143,10 @@
end
"url('" + uri.to_s + "')"
end
out
end
-end
\ No newline at end of file
+end
+
+require File.dirname(__FILE__) + '/css_parser/rule_set'
+require File.dirname(__FILE__) + '/css_parser/regexps'
+require File.dirname(__FILE__) + '/css_parser/parser'