tsc-ruby 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/tsc-ruby/version.rb +1 -1
- data/lib/tsc-ruby.rb +3 -5
- 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: d4e0f93422504eb3b5eb3035b4df949b4df8d8de
|
4
|
+
data.tar.gz: 8ba113a859ff426dae87e60dda597c90ef66a901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c348182e2ae7860a10257763cd1b565b144bb2dba37d7d10d8e8a117586449279cc4f1341b2656c7cbed6e9db8687f35385b9bb82be31d19b350bc4fd7bd932a
|
7
|
+
data.tar.gz: bf82d0a967525de89e6d83116684c096dae6b331a41d9719cb15224d10c18b6d2fbeb843eb4f374d7de1a22761df68f56526ab9e37178c46ebeb0d61cbeb7f3a
|
data/lib/tsc-ruby/version.rb
CHANGED
data/lib/tsc-ruby.rb
CHANGED
@@ -31,7 +31,7 @@ module TypeScript
|
|
31
31
|
script = script.read if script.respond_to?(:read)
|
32
32
|
js_file = Tempfile.new(%w(tsc-ruby .ts))
|
33
33
|
begin
|
34
|
-
js_file.write(
|
34
|
+
js_file.write(script)
|
35
35
|
js_file.close
|
36
36
|
result = compile_file(js_file.path, *tsc_options)
|
37
37
|
if result.success?
|
@@ -44,13 +44,11 @@ module TypeScript
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
# Compile TypeScript source file to JavaScript source file.
|
47
|
+
# Compile TypeScript script file to JavaScript script file.
|
50
48
|
#
|
51
49
|
# Compilation is a one to one process, not implicit concatenation of referenced dependencies is performed.
|
52
50
|
#
|
53
|
-
# @param [String]
|
51
|
+
# @param [String] TypeScript script file
|
54
52
|
# @return [TypeScript::Ruby::CompileResult] compile result
|
55
53
|
def compile_file(source_file, *tsc_options)
|
56
54
|
Dir.mktmpdir do |output_dir|
|