Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-06-25 19:13:00 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-06-25 19:13:00 +0400
commit63c007067f3cef9521157f6b7994f03c5ae54d3d (patch)
treecb4d21643db2d1b4bac0f84f9c5c816df4e7c5a3
parent1990398d8e30279ff49ae86dbc2100422e85fb38 (diff)
update bower:generate task
-rw-r--r--tasks/bower.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/bower.rake b/tasks/bower.rake
index 9534c64f..16e484fd 100644
--- a/tasks/bower.rake
+++ b/tasks/bower.rake
@@ -12,11 +12,11 @@ namespace :bower do
}
desc 'update main and version in bower.json'
- task :spec do
+ task :generate do
Dir.chdir Bootstrap.gem_path do
spec = JSON.parse(File.read 'bower.json')
- js_paths = File.read(File.join Bootstrap.javascripts_path, 'bootstrap.js').lines.map do |line|
- line.strip if line.sub!(%r(//\s*=\s*require\s*(.*)\s*), 'assets/javascripts/\1.js')
+ js_paths = File.read(File.join Bootstrap.javascripts_path, 'bootstrap-sprockets.js').lines.map do |line|
+ line.strip if line.sub!(%r(//\s*=\s*require\s*(?:./)?(.*)\s*), 'assets/javascripts/\1.js')
end.compact
spec['main'] =