mirror of
https://github.com/zhigang1992/rmq.git
synced 2026-01-12 09:33:43 +08:00
Fixed bug with new Live Stylesheets. Bumped version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
ruby_motion_query (1.3.1)
|
||||
ruby_motion_query (1.3.2)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module RubyMotionQuery
|
||||
VERSION = "1.3.1"
|
||||
VERSION = "1.3.2"
|
||||
|
||||
class RMQ
|
||||
def version
|
||||
|
||||
Reference in New Issue
Block a user