serverless_hub 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: 7f702400f8ebe1419d8e54b3a54f3804d9fe7471174dd9cfe1db05a1b6a34c16
4
- data.tar.gz: 43de7f1e021a674fd3622e8cac008f22c6b3c1c13753839eb17f6d1b76617349
3
+ metadata.gz: 640d3cc5c64dfdeb422c1a0c2ee11b9456fe847383ae30189cd0a2551cf33b3d
4
+ data.tar.gz: 47813ad83a3662827c7ea504f463e69f1fa34c8547786abf00ca1d257afd9c68
5
5
  SHA512:
6
- metadata.gz: 2d3cbe571b2dfef2b8c9ca50f7281ae576cb31dd11d44388bd902aaf6a6840b413eb09cdeeba52b488f937d3e3642797880f175b815df732c3183bbcade6c95e
7
- data.tar.gz: a24416791d92749b8b672b56204c616c3d1b97a2bb20d81fdfe83ed8bf1a8f10136dfa3c362a554ea6f2a2ffb3de5634dd3ce3619d217f07b8178878f32d021b
6
+ metadata.gz: 0e3cf17b7ba60a949d3eef193f3aacff4bffdaf2a63683c01120f3bec234a9361b1554081fbea8781e64f6213281275d68690bfeda77ee5cc4d54738200b8a88
7
+ data.tar.gz: 36dfad80e6bb3aa47ab0aa2f6042b97281661c66ae6b73c61b994216522e4e714131c09360ad74480ffa84c7514581d8fa5d9097dc8150e9e920cff10ad1a79f
@@ -1,5 +1,6 @@
1
1
  if ENV["LAMBDA_TASK_ROOT"].present?
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('./Gemfile.serverless', __dir__)
2
+
3
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("#{ENV["LAMBDA_TASK_ROOT"]}/Gemfile.serverless", __dir__) rescue nil
3
4
 
4
5
  ENV["RAILS_ENV"] ||= "production"
5
6
 
@@ -41,10 +42,10 @@ module ServerlessHub
41
42
  run app
42
43
  end.to_app
43
44
 
44
- def self.call(event:, context:)
45
+ def self.call(event: {}, context: {})
45
46
  return "Warm Up" if event["source"] == "serverless-plugin-warmup"
46
47
 
47
- Lamby.handler $app, event, context, rack: :api
48
+ Lamby.handler $app, event, context, rack: :api
48
49
  rescue Exception => msg
49
50
  p "errors: #{msg}"
50
51
  response = {
@@ -1,3 +1,3 @@
1
1
  module ServerlessHub
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverless_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will