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

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/bower.rake')
-rw-r--r--tasks/bower.rake5
1 files changed, 1 insertions, 4 deletions
diff --git a/tasks/bower.rake b/tasks/bower.rake
index 9cbe993..5598e88 100644
--- a/tasks/bower.rake
+++ b/tasks/bower.rake
@@ -15,14 +15,11 @@ namespace :bower do
require 'bootstrap-sass'
Dir.chdir Bootstrap.gem_path do
spec = JSON.parse(File.read 'bower.json')
- 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'] =
find_files.(File.join(Bootstrap.stylesheets_path, '_bootstrap.scss')) +
find_files.(Bootstrap.fonts_path) +
- js_paths
+ %w(assets/javascripts/bootstrap.js)
spec['version'] = Bootstrap::VERSION[0..-3]