Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove before hook in favour of rake dependency #121

Merged
merged 3 commits into from
Nov 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Edge version

## v0.9.2

* remove before hook in favour of rake dependency by @itszootime and @carsomyr [#121][]

[#121]: https://github.com/42dev/bower-rails/pull/121

## v0.9.1

* add `bower:clean:cache` rake task by @ruprict [#115][]
Expand Down
2 changes: 1 addition & 1 deletion lib/bower-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding : utf-8 -*-
module BowerRails
VERSION = "0.9.1"
VERSION = "0.9.2"
end
13 changes: 6 additions & 7 deletions lib/tasks/bower.rake
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
require 'tasks/helpers/before_hook'
require 'bower-rails/performer'

include BeforeHook

namespace :bower do
desc "Install components from bower"
task :install, :options do |_, args|
Expand Down Expand Up @@ -86,10 +83,12 @@ namespace :bower do
end
end
end
end

before_rake_task 'assets:precompile' do
BowerRails.tasks.map do |task|
Rake::Task[task].invoke
task :before_precompile do
BowerRails.tasks.each do |task|
Rake::Task[task].invoke
end
end
end

task "assets:precompile" => ["bower:before_precompile"]
20 changes: 0 additions & 20 deletions lib/tasks/helpers/before_hook.rb

This file was deleted.