ruby_motion_query 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9eb30a7a93515b83eec06678d84d454f2a886a7
4
- data.tar.gz: 3d1f5a83228e5da2ae5c65049c4be900b96f19c4
3
+ metadata.gz: 76f506811d1d67113c310ec502d535616f6b38f1
4
+ data.tar.gz: 37a3df0dc5b514d37b66f06cac433c8e284b742b
5
5
  SHA512:
6
- metadata.gz: 9e650c864d96733422b6e8f7f61d0dd00ef8a420302d014d3b1b74f9b28c2575abfbe4d324f66ce5aa9b21c39edf9d70cca8519ae68f62142f35fde71bfecf24
7
- data.tar.gz: e5a7b72a5156d499fb5167688a95193105c7431b32f14da937cd03fad1222734dd67e182d99d958bd9ff437dc379b34569b19bd120585dda9c6de772f9a64e07
6
+ metadata.gz: fcb6596b2d269f2f6f5a4516f8d2a2d4962a3f4bf1fba20428370f9a5cf64cbdc3ba6d7bc758be356670f9ffe1dad72599079c7d7e8ac9a6dc8fceee92905357
7
+ data.tar.gz: 2b373b59ba3a839755e3fa24d930871723dfea9a974a63ae045ae7bff3e0fb928249665f7e51695fbdb6ec1447561b6722af7101c701338c92581400bffa2a0c
data/motion/ext.rb CHANGED
@@ -77,10 +77,11 @@ if RUBYMOTION_ENV == "development"
77
77
  puts path_query if @live_reload_debug
78
78
  stylesheet_file_paths = Dir.glob(path_query)
79
79
  stylesheet_file_paths.delete_if{|stylesheet| stylesheet =~ /application_stylesheet\.rb$/}
80
+ puts stylesheet_file_paths if @live_reload_debug
80
81
 
81
82
  stylesheets = stylesheet_file_paths.inject({}) do |out, stylesheet_path_file|
82
83
  klassname = File.basename(stylesheet_path_file, '.rb')
83
- klassname.gsub!("_", " ").gsub!(/\b(?<!['’`])[a-z]/){ $&.capitalize }.gsub!(/\s/, "")
84
+ klassname = klassname.gsub("_", " ").gsub(/\b(?<!['’`])[a-z]/){ $&.capitalize }.gsub(/\s/, "")
84
85
  out[klassname] = {
85
86
  path: stylesheet_path_file,
86
87
  modified: File.mtime(stylesheet_path_file)
@@ -96,7 +97,7 @@ if RUBYMOTION_ENV == "development"
96
97
  code = File.read(stylesheet[:path])
97
98
  puts "Reloaded #{klass_name}." if @live_reload_debug
98
99
  eval(code)
99
- vc_rmq.all.reapply_styles
100
+ vc_rmq.all.and_self.reapply_styles
100
101
  stylesheets[klass_name][:modified] = File.mtime(stylesheet[:path])
101
102
  end
102
103
  end
@@ -1,5 +1,5 @@
1
1
  module RubyMotionQuery
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
 
4
4
  class RMQ
5
5
  def version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_motion_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Werth