I got an error when trying to push an app to heroku.
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
When I scroll up I see the following error:
NoMethodError: undefined method `specificity' for [:not(.button)]:Array
(in /tmp/build_3060eff8-6b06-48b5-8d0d-51ce090945b4/app/assets/stylesheets/foundation_and_overrides.scss)
The app exists for quite a while, and I updated it last week with no problems. In this push I only have minor changes.
I don't see anything in foundation_and_overrides.scss that relates to 'specificity' or the :not(button) selector
When running locally:
rake assets:precompiled --trace
Got the same error:
** Execute assets:precompile:primary
rake aborted!
NoMethodError: undefined method `specificity' for [:not(.button)]:Array
(in C:/Sites/..../app/assets/stylesheets/foundation_and_overrides.scss)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:96:in `block in _specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:94:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:94:in `_specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:86:in `specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:96:in `block in _specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:94:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:94:in `_specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:86:in `specificity'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.4.6/lib/sass/selector/sequence.rb:550:in `block (3 levels) in trim'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/set.rb:222:in `block in each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/set.rb:222:in `each_key'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/set.rb:222:in `each'