lib/jets/commands/build.rb in jets-1.6.1 vs lib/jets/commands/build.rb in jets-1.6.2

- old
+ new

@@ -107,16 +107,16 @@ # because Jets.boot set ups autoload_paths and this is how project # classes are loaded. # TODO: rework code so that Dir.pwd does not have to be in tmp_code for build to work. def self.app_files paths = [] - expression = "#{Jets.root}app/**/**/*.rb" + expression = "#{Jets.root}/app/**/**/*.rb" Dir.glob(expression).each do |path| return false unless File.file?(path) next unless app_file?(path) - relative_path = path.sub(Jets.root.to_s, '') + relative_path = path.sub("#{Jets.root}/", '') # Rids of the Jets.root at beginning paths << relative_path end paths += internal_app_files paths @@ -126,15 +126,15 @@ self.class.shared_files end def self.shared_files paths = [] - expression = "#{Jets.root}app/**/**/*.rb" + expression = "#{Jets.root}/app/**/**/*.rb" Dir.glob(expression).each do |path| return false unless File.file?(path) next unless path.include?("app/shared/resources") - relative_path = path.sub(Jets.root.to_s, '') + relative_path = path.sub("#{Jets.root}/", '') # Rids of the Jets.root at beginning paths << relative_path end paths end