Skip to content

Commit

Permalink
Fixed bug with new Live Stylesheets. Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
twerth committed Apr 15, 2015
1 parent 039bf3c commit 8ae878d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ruby_motion_query (1.3.1)
ruby_motion_query (1.3.2)

GEM
remote: https://rubygems.org/
Expand Down
3 changes: 2 additions & 1 deletion motion/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(?<!['’`])[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)
Expand Down
2 changes: 1 addition & 1 deletion motion/ruby_motion_query/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module RubyMotionQuery
VERSION = "1.3.1"
VERSION = "1.3.2"

class RMQ
def version
Expand Down

0 comments on commit 8ae878d

Please sign in to comment.