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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf6a5985315df51adac5c579beabbf9606d060e4
4
- data.tar.gz: 85361457e005631838c8b2d8b8bef657d3b14286
3
+ metadata.gz: 3055bf035ff419a75e5c6f6261ad16b853441c04
4
+ data.tar.gz: 1fddee91702c1c7cb8490741ab60735602ae7fff
5
5
  SHA512:
6
- metadata.gz: a62a040cb8ed2a76d77db9af14d41793ea7b22be088d0e043233ee75ab14a5611933b0055c22679af1a95c66c983b56368a72cfcba2c7f698b34537b03812839
7
- data.tar.gz: 07ccfb2011e1f8e622304481799e5826bee1fcde74902f9ff3777fa0fcc206dc13285ce38432a69eaf0b09276fccad9455e9ad1fe62ae75ce3ae61958370ffe8
6
+ metadata.gz: 0acd2cef06da20eacb335b0c1710ff18b3159f6c197ff7d07c08bd5286cd99e84fd34cd19ab42b1f54d3caa2a96c7a8d9d5720775b86856b188c0c8ec2fd102d
7
+ data.tar.gz: 80d53ddba1a726c9703ae4b59764677a2db1ee1f2a579decfced0cd5aa8949405f94483bca25dee0a119f70d4d2228a48f629d5e483b953f4bd91316bc9c38f6
@@ -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(src, nil, '-').result
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
 
@@ -1,3 +1,3 @@
1
1
  module Lambchop
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambchop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara