lib/jets/commands/build.rb in jets-1.9.0 vs lib/jets/commands/build.rb in jets-1.9.1
- old
+ new
@@ -111,10 +111,11 @@
paths = []
expression = "#{Jets.root}/app/**/**/*.rb"
Dir.glob(expression).each do |path|
return false unless File.file?(path)
next unless app_file?(path)
+ next if concerns?(path)
relative_path = path.sub("#{Jets.root}/", '')
# Rids of the Jets.root at beginning
paths << relative_path
end
@@ -211,9 +212,13 @@
app/rules
]
return true if includes.detect { |p| path.include?(p) }
false
+ end
+
+ def self.concerns?(path)
+ path =~ %r{app/\w+/concerns/}
end
def self.tmp_code(full_build_path=false)
full_build_path ? "#{Jets.build_root}/stage/code" : "stage/code"
end