lib/ninjs/project.rb in ninjs-0.16.5 vs lib/ninjs/project.rb in ninjs-0.16.6

- old
+ new

@@ -52,11 +52,12 @@ def create_ninjs_lib_file operation = File.exists?("#{@root}/lib/nin.js") ? 'updated' : 'created' ninjs_lib_secretary = Sprockets::Secretary.new( :root => "#{Ninjs::BASE_DIR}", :load_path => ["repository"], - source_files: ["repository/ninjs/core/nin.js"] + source_files: ["repository/ninjs/core/nin.js"], + interpolate_constants: false ) ninjs_lib_secretary.concatenation.save_to "#{@root}/lib/nin.js" puts Ninjs::Notification.added "lib/nin.js #{operation}" @@ -64,11 +65,12 @@ def create_utility_lib_file utility_lib_secretary = Sprockets::Secretary.new( root: "#{Ninjs::BASE_DIR}", load_path: ["repository"], - source_files: ["repository/ninjs/utilities/all.js"] + source_files: ["repository/ninjs/utilities/all.js"], + interpolate_constants: false ) utility_lib_secretary.concatenation.save_to "#{@root}/lib/utilities.js" puts Ninjs::Notification.added "lib/utilities.js created" @@ -150,11 +152,12 @@ begin ninjs_lib_secretary = Sprockets::Secretary.new( :root => "#{Ninjs::BASE_DIR}", :asset_root => @config.asset_root, :load_path => ["repository"], - source_files: ["#{module_file}"] + source_files: ["#{module_file}"], + interpolate_constants: false ) module_file = ninjs_lib_secretary.concatenation message = File.exists?("#{@root}/#{@config.dest_dir}/#{module_name}.js") ? "\e[32m>>>\e[0m #{@config.dest_dir}/#{module_name}.js updated" : "\e[32m>>>\e[0m #{@config.dest_dir}/#{module_name}.js created" module_file.save_to "#{@root}/#{@config.dest_dir}/#{module_name}.js" @@ -204,10 +207,11 @@ begin ninjs_lib_secretary = Sprockets::Secretary.new( :root => "#{Ninjs::BASE_DIR}", :asset_root => @config.asset_root, :load_path => ["repository"], - source_files: ["#{file}"] + source_files: ["#{file}"], + interpolate_constants: false ) application_file = ninjs_lib_secretary.concatenation ninjs_lib_secretary.install_assets application_file.save_to "#{file}" \ No newline at end of file