aws-lambda-runner 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lambda_runner.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9deef3294eaceddab1deed86424fd6125708787c
|
4
|
+
data.tar.gz: e2f1e5c9186acc26de923ec024cf8ee7aa8700e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3953eea6de12d1bd95403d1734ed2ca885ce0f329f7dc48b029e51d50c6a42a271bf77a8c8dd1c6c8413e737e02bcec0a11aedaff1fac5e5af6381d6d945a1be
|
7
|
+
data.tar.gz: 08ba985ea2454f49586071c800d2116943d35e1f610c260c7a2219e8cb816007120e08880217f3a4d0e40b56b79d9f5e80a26d2d9c1451300f26ab75ab8fc243
|
data/lib/lambda_runner.rb
CHANGED
@@ -24,7 +24,6 @@ module LambdaRunner
|
|
24
24
|
|
25
25
|
def add_aws_sdk
|
26
26
|
STDOUT.puts("Copying aws-sdk into the lambda function's node_modules.")
|
27
|
-
# cp -r File.expand_path(../../js/node_modules/aws-sdk, __FILE__) $(dirname @module_path)/node_modules
|
28
27
|
FileUtils.cp_r File.expand_path('../../js/node_modules/aws-sdk', __FILE__), "#{File.dirname(@module_path)}/node_modules"
|
29
28
|
end
|
30
29
|
|
@@ -33,7 +32,10 @@ module LambdaRunner
|
|
33
32
|
opts[:timeout] = '30000'
|
34
33
|
end
|
35
34
|
install_deps
|
36
|
-
|
35
|
+
#copy over aws sdk only if it is not already there
|
36
|
+
if !File.directory?("#{File.dirname(@module_path)}/node_modules/aws-sdk")
|
37
|
+
add_aws_sdk
|
38
|
+
end
|
37
39
|
# start node in a way that emulates how it's run in production
|
38
40
|
cmd = ['node']
|
39
41
|
cmd = [File.join(@npm_cwd, 'node_modules/.bin/istanbul'), 'cover', '--root', File.dirname(@module_path), '--'] if opts[:cover]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-lambda-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrew wheat
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.5.1
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: AWS Lambda testing helper
|