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.
@@ -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 = "#{path}.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}"
@@ -1,3 +1,3 @@
1
1
  module Cog
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kevin Tonon