lib/bower-rails.rb in bower-rails-0.9.2 vs lib/bower-rails.rb in bower-rails-0.10.0

- old
+ new

@@ -24,20 +24,25 @@ # If set to true then rake bower:install:deployment will be invoked # instead of rake bower:install before assets precompilation attr_accessor :use_bower_install_deployment + # If set to true then rake bower:install[-f] will be invoked + # instead of rake bower:install before assets precompilation + attr_accessor :force_install + def configure &block yield self if block_given? collect_tasks end private def collect_tasks install_cmd = 'bower:install' install_cmd = 'bower:install:deployment' if @use_bower_install_deployment + install_cmd += '[-F]' if @force_install @tasks << [install_cmd] if @install_before_precompile @tasks << [install_cmd, 'bower:clean'] if @clean_before_precompile @tasks << [install_cmd, 'bower:resolve'] if @resolve_before_precompile @tasks.flatten! @@ -51,6 +56,7 @@ @tasks = [] @install_before_precompile = false @resolve_before_precompile = false @clean_before_precompile = false @use_bower_install_deployment = false + @force_install = false end