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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lambda_runner.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52e0a81453f70501cc5b844c4c4ef37472cccc2f
4
- data.tar.gz: 4dce2cced21fb99f87a2d2e7227279c439843700
3
+ metadata.gz: 9deef3294eaceddab1deed86424fd6125708787c
4
+ data.tar.gz: e2f1e5c9186acc26de923ec024cf8ee7aa8700e6
5
5
  SHA512:
6
- metadata.gz: f18c50be66cb5ee4627937c4a75f6c69c0211d7c8af8eece7c76c320da2f9be2a0648ba584d79cb1c89d4b026bdd59ed367ae545d463e1b63a1d8907bfda0d10
7
- data.tar.gz: 543e287863a37a158e01ad8611921243964707a6acd553c44df3e3892d526de1d210c9b085d25e85ce6838b6556b8770d974dd8dc60a8af02a0f117b809f518c
6
+ metadata.gz: 3953eea6de12d1bd95403d1734ed2ca885ce0f329f7dc48b029e51d50c6a42a271bf77a8c8dd1c6c8413e737e02bcec0a11aedaff1fac5e5af6381d6d945a1be
7
+ data.tar.gz: 08ba985ea2454f49586071c800d2116943d35e1f610c260c7a2219e8cb816007120e08880217f3a4d0e40b56b79d9f5e80a26d2d9c1451300f26ab75ab8fc243
@@ -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
- add_aws_sdk
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
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.4.3
178
+ rubygems_version: 2.5.1
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: AWS Lambda testing helper