ruby_motion_query 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/motion/ext.rb +3 -2
- data/motion/ruby_motion_query/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f506811d1d67113c310ec502d535616f6b38f1
|
4
|
+
data.tar.gz: 37a3df0dc5b514d37b66f06cac433c8e284b742b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|