Skip to content

Commit

Permalink
fix-sprockets3-support (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gafrom authored and aaronjensen committed Jun 9, 2016
1 parent 67cac85 commit 0808acb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/sprockets/media_query_combiner/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ module Sprockets
module MediaQueryCombiner
class Engine < ::Rails::Engine
initializer :setup_media_query_combiner, after: 'sprockets.environment', group: :all do |app|
app.assets.register_postprocessor 'text/css', Sprockets::MediaQueryCombiner::Processor
app.assets.register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor
sprockets_env = app.assets || Sprockets
sprockets_env.register_postprocessor 'text/css', Sprockets::MediaQueryCombiner::Processor
sprockets_env.register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/sprockets/media_query_combiner/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Sprockets
module MediaQueryCombiner
VERSION = "0.0.8"
VERSION = "0.0.9"
end
end
2 changes: 1 addition & 1 deletion sprockets-media_query_combiner.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = '>= 1.9.2'

gem.add_runtime_dependency "sprockets", "~>2.1"
gem.add_runtime_dependency "sprockets", ">= 2.1"
gem.add_runtime_dependency "sass-media_query_combiner", "~>0.0.4"

gem.add_development_dependency "rspec"
Expand Down

0 comments on commit 0808acb

Please sign in to comment.