lambchop 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lambchop/client.rb +4 -4
- data/lib/lambchop/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: 3055bf035ff419a75e5c6f6261ad16b853441c04
|
4
|
+
data.tar.gz: 1fddee91702c1c7cb8490741ab60735602ae7fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0acd2cef06da20eacb335b0c1710ff18b3159f6c197ff7d07c08bd5286cd99e84fd34cd19ab42b1f54d3caa2a96c7a8d9d5720775b86856b188c0c8ec2fd102d
|
7
|
+
data.tar.gz: 80d53ddba1a726c9703ae4b59764677a2db1ee1f2a579decfced0cd5aa8949405f94483bca25dee0a119f70d4d2228a48f629d5e483b953f4bd91316bc9c38f6
|
data/lib/lambchop/client.rb
CHANGED
@@ -11,13 +11,13 @@ class Lambchop::Client
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def start
|
14
|
-
src = Lambchop::Utils.remove_shebang(@source)
|
15
|
-
config, src = Lambchop::Utils.parse_magic_comment(src)
|
16
|
-
|
17
14
|
if @options[:use_erb]
|
18
|
-
src = ERB.new(
|
15
|
+
src = ERB.new(@source, nil, '-').result
|
19
16
|
end
|
20
17
|
|
18
|
+
src = Lambchop::Utils.remove_shebang(src)
|
19
|
+
config, src = Lambchop::Utils.parse_magic_comment(src)
|
20
|
+
|
21
21
|
config['function_name'] ||= File.basename(@path, '.js')
|
22
22
|
function_name = config['function_name']
|
23
23
|
|
data/lib/lambchop/version.rb
CHANGED