cog 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cog/mixins/uses_templates.rb +6 -1
- data/lib/cog_version.rb +1 -1
- metadata +3 -3
|
@@ -62,7 +62,12 @@ module Cog
|
|
|
62
62
|
File.join Config.for_project.app_dir, target
|
|
63
63
|
end
|
|
64
64
|
FileUtils.mkpath File.dirname(target) unless File.exists? target
|
|
65
|
-
scratch =
|
|
65
|
+
scratch = case target_type.to_s
|
|
66
|
+
when /cog/i
|
|
67
|
+
File.join Config.for_project.cog_dir, "#{opt[:target]}.scratch"
|
|
68
|
+
when /app/i
|
|
69
|
+
File.join Config.for_project.app_dir, "#{opt[:target]}.scratch"
|
|
70
|
+
end
|
|
66
71
|
File.open(scratch, 'w') {|file| file.write t.result(b)}
|
|
67
72
|
unless same? target, scratch
|
|
68
73
|
puts "Generated #{target}"
|
data/lib/cog_version.rb
CHANGED
metadata
CHANGED