From 8ae878d2bf39baaa9505c53cd1ac1641e723508b Mon Sep 17 00:00:00 2001 From: Todd Werth Date: Tue, 14 Apr 2015 21:27:45 -0700 Subject: [PATCH] Fixed bug with new Live Stylesheets. Bumped version --- Gemfile.lock | 2 +- motion/ext.rb | 3 ++- motion/ruby_motion_query/version.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index eb89e78..6081b9e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ruby_motion_query (1.3.1) + ruby_motion_query (1.3.2) GEM remote: https://rubygems.org/ diff --git a/motion/ext.rb b/motion/ext.rb index 3608f6c..23ceba4 100644 --- a/motion/ext.rb +++ b/motion/ext.rb @@ -77,10 +77,11 @@ def enable_rmq_live_stylesheets(interval) puts path_query if @live_reload_debug stylesheet_file_paths = Dir.glob(path_query) stylesheet_file_paths.delete_if{|stylesheet| stylesheet =~ /application_stylesheet\.rb$/} + puts stylesheet_file_paths if @live_reload_debug stylesheets = stylesheet_file_paths.inject({}) do |out, stylesheet_path_file| klassname = File.basename(stylesheet_path_file, '.rb') - klassname.gsub!("_", " ").gsub!(/\b(?