Fixed bug with new Live Stylesheets. Bumped version

This commit is contained in:
Todd Werth
2015-04-14 21:27:45 -07:00
parent 039bf3c17d
commit 8ae878d2bf
3 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ruby_motion_query (1.3.1)
ruby_motion_query (1.3.2)
GEM
remote: https://rubygems.org/

View File

@@ -77,10 +77,11 @@ if RUBYMOTION_ENV == "development"
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(?<!['`])[a-z]/){ $&.capitalize }.gsub!(/\s/, "")
klassname = klassname.gsub("_", " ").gsub(/\b(?<!['`])[a-z]/){ $&.capitalize }.gsub(/\s/, "")
out[klassname] = {
path: stylesheet_path_file,
modified: File.mtime(stylesheet_path_file)

View File

@@ -1,5 +1,5 @@
module RubyMotionQuery
VERSION = "1.3.1"
VERSION = "1.3.2"
class RMQ
def version