take 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 876e2557abd3d9bd46630eef0fd1c670bb34b6d6
4
- data.tar.gz: 0f5260a27735c76d369630d15b44cd884e2ec06c
3
+ metadata.gz: bd7fcbfad25e72bc99e09158ce86f8b529e75b1c
4
+ data.tar.gz: 07763bf83c6d5cb7aaab57139df50a7bc9be273c
5
5
  SHA512:
6
- metadata.gz: bd8974bf0b645758983abdedf9fdcfdd9483a3e3de176db9a36fcd08df39289af6d15d86f6a35bcf69ba4d256ee1b63a392ca5bb599f2b6afd435d82ca2fcd62
7
- data.tar.gz: e2c51fc55daaa4a2f3f70424dc9d26d7974f1e2c80135d14823a1af2546193ba2bd4fb630f923b588acc4fe277536be7b90d5ba366104a0201d82212ff8414f1
6
+ metadata.gz: 93dada6629d166017c0503c44d8d723af019c60b562896a736bb4f4ba1cb3eccec5293d635c737e56c13898cd74948f9cbe58316317075b70222da2322d2eefb
7
+ data.tar.gz: 97360d4ed97417075bf93c0a9cc9d93d3c885f90b7d7cbb5ee088f90c1fba7d6cc59125f0b06b1ae492a26395ab14cad928939eedd9bb1ccb94e0ef8710e3108
@@ -16,8 +16,8 @@ module Take
16
16
  end
17
17
  end
18
18
 
19
- def write_file
20
- File.open("#{@options[:directory]}#{@parent.name}.c", "w") do |f|
19
+ def write_file(output)
20
+ File.open(output, "w") do |f|
21
21
  f.write generate
22
22
  end
23
23
  end
data/lib/take/unit.rb CHANGED
@@ -15,7 +15,7 @@ module Take
15
15
  compiler = Compiler.new(file.path, scanner.scan)
16
16
  generator = Generator.new(compiler.compile,
17
17
  directory: File.dirname(file.path)).tap(&:generate)
18
- generator.write_file
18
+ generator.write_file(file.path.gsub(/\..*\z/, ".c")
19
19
  end
20
20
 
21
21
  end
data/lib/take/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Take
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: take
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-10 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler