Skip to content

Commit

Permalink
Added less runtime dependency to gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Apr 17, 2010
1 parent ddd5b81 commit ffb9051
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rack-lesscss.rb
Expand Up @@ -5,7 +5,7 @@ class LessCss

def initialize(app, opts)
@app = app
@less_path = opts[:less_path] or raise ArgumentError, "You must specify less_path (path to directory containing .less files)"
@less_path = opts[:less_path] or raise ArgumentError, "You must specify :less_path option (path to directory containing .less files)"
css_route = opts[:css_route] || "/stylesheets"
css_route = css_route[0..-2] if css_route[-1] == "/"
@css_route_regexp = /#{Regexp.escape(css_route)}\/([^\.]+)\.css/
Expand Down
7 changes: 4 additions & 3 deletions rack-lesscss.gemspec
Expand Up @@ -2,14 +2,15 @@

Gem::Specification.new do |s|
s.name = %q{rack-lesscss}
s.version = "0.2"
s.version = "0.2.1"
s.platform = Gem::Platform::RUBY
s.date = %q{2009-10-18}
s.date = %q{2010-04-17}
s.authors = ["Marcin Kulik"]
s.email = %q{marcin.kulik@gmail.com}
s.has_rdoc = false
s.homepage = %q{http://sickill.net}
s.summary = %q{Rack middleware for compiling lesscss files into css}
s.files = [ "lib/rack-lesscss.rb", "spec/rack-lesscss-spec.rb" ]
# s.require_paths = ["lib"]
s.add_dependency "less"
s.require_path = "lib"
end

0 comments on commit ffb9051

Please sign in to comment.