take 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/take/unit/generator.rb +1 -1
- data/lib/take/unit.rb +3 -1
- data/lib/take/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876e2557abd3d9bd46630eef0fd1c670bb34b6d6
|
4
|
+
data.tar.gz: 0f5260a27735c76d369630d15b44cd884e2ec06c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd8974bf0b645758983abdedf9fdcfdd9483a3e3de176db9a36fcd08df39289af6d15d86f6a35bcf69ba4d256ee1b63a392ca5bb599f2b6afd435d82ca2fcd62
|
7
|
+
data.tar.gz: e2c51fc55daaa4a2f3f70424dc9d26d7974f1e2c80135d14823a1af2546193ba2bd4fb630f923b588acc4fe277536be7b90d5ba366104a0201d82212ff8414f1
|
data/lib/take/unit/generator.rb
CHANGED
data/lib/take/unit.rb
CHANGED
@@ -13,7 +13,9 @@ module Take
|
|
13
13
|
file = File.open(file, "r")
|
14
14
|
scanner = Scanner.new(file.read)
|
15
15
|
compiler = Compiler.new(file.path, scanner.scan)
|
16
|
-
generator = Generator.new(compiler.compile,
|
16
|
+
generator = Generator.new(compiler.compile,
|
17
|
+
directory: File.dirname(file.path)).tap(&:generate)
|
18
|
+
generator.write_file
|
17
19
|
end
|
18
20
|
|
19
21
|
end
|
data/lib/take/version.rb
CHANGED