front-end-blender 0.17 → 0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/front_end_architect/blender.rb +11 -6
- metadata +3 -3
@@ -19,7 +19,7 @@ require 'front_end_architect/hash'
|
|
19
19
|
|
20
20
|
module FrontEndArchitect
|
21
21
|
class Blender
|
22
|
-
VERSION
|
22
|
+
VERSION = '0.18'
|
23
23
|
|
24
24
|
FILTER_REGEX = /filter: ?[^?]+\(src=(['"])([^\?'"]+)(\?(?:[^'"]+)?)?\1,[^?]+\1\);/im
|
25
25
|
IMPORT_REGEX = /@import(?: url\(| )(['"]?)([^\?'"\)\s]+)(\?(?:[^'"\)]+)?)?\1\)?(?:[^?;]+)?;/im
|
@@ -43,7 +43,8 @@ module FrontEndArchitect
|
|
43
43
|
raise "Couldn't find '#{@options[:blendfile]}'"
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
blendfile_mtime = File.mtime(@options[:blendfile])
|
47
|
+
blender = YAML::load_file @options[:blendfile]
|
47
48
|
|
48
49
|
Dir.chdir(File.dirname(@options[:blendfile]))
|
49
50
|
|
@@ -67,10 +68,14 @@ module FrontEndArchitect
|
|
67
68
|
|
68
69
|
oldest_output = output_files.sort.first
|
69
70
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
if blendfile_mtime > oldest_output
|
72
|
+
output_new = true
|
73
|
+
else
|
74
|
+
sources.each do |i|
|
75
|
+
if File.mtime(i) > oldest_output
|
76
|
+
output_new = true
|
77
|
+
break
|
78
|
+
end
|
74
79
|
end
|
75
80
|
end
|
76
81
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: front-end-blender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.18"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Elshire & Chris Griego
|
@@ -9,7 +9,7 @@ autorequire: front_end_architect/blend
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09-
|
12
|
+
date: 2008-09-27 00:00:00 -07:00
|
13
13
|
default_executable: blend
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -71,6 +71,6 @@ rubyforge_project: frontendblender
|
|
71
71
|
rubygems_version: 1.2.0
|
72
72
|
signing_key:
|
73
73
|
specification_version: 2
|
74
|
-
summary: Blender
|
74
|
+
summary: Blender outputs efficient, production-ready CSS and/or JavaScript assets.
|
75
75
|
test_files: []
|
76
76
|
|