Skip to content
Browse files

Made small changes on top of kematzy's pull request. Close #3

  • Loading branch information...
1 parent d41a620 commit abb5d9b09c7d6e6b9d919f36ff01f4c9e8cca07c @pferdefleisch committed Dec 16, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 guard-sprockets.gemspec
  2. +2 −2 lib/guard/sprockets.rb
View
2 guard-sprockets.gemspec
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "guard-sprockets"
s.add_dependency 'guard', '>= 0.2.2'
- s.add_dependency "sprockets"
+ s.add_dependency "sprockets", '~> 2'
s.files = Dir.glob('{lib}/**/*') #+ %w[LICENSE README.rdoc]
s.require_path = 'lib'
View
4 lib/guard/sprockets.rb
@@ -45,8 +45,8 @@ def sprocketize(path)
@sprockets_env.append_path changed.dirname
output_basename = changed.basename.to_s
- if m = output_basename.match(/^(.*\.(?:js|css))\.[^.]+$/)
- output_basename = m[1]
+ if match = output_basename.match(/^(.*\.(?:js|css))\.[^.]+$/)
+ output_basename = match[1]
end
output_file = Pathname.new(File.join(@destination, output_basename))

0 comments on commit abb5d9b

Please sign in to comment.
Something went wrong with that request. Please try again.