serverless_hub 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverless_hub/handler.rb +7 -7
- data/lib/serverless_hub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4fbef685ee6599dd6d8da8c5fd32e6f078f28f97edf9569515020beecc53873
|
4
|
+
data.tar.gz: a1bc01b472bdfe793861caffef86f4c859aa4893f0030248f361f730ddfe10b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d6f080b50ff2b6776d6c60f6bd8d86333d717ebd8847fc07aab198a00ab26eb83734eb873ba5ce9726757ead9c7792bec2afd7ab1c3cd149653c1a4158f035
|
7
|
+
data.tar.gz: c4aa13f8d8d6d3ce935f5517c59df62ad8224cc2d544c735ff24ca638b9d8c06c4d648efaf2ed31fa7b846c9aebc0e1ece89d84c86e7edb4b27c65b08e3babf3
|
@@ -1,3 +1,5 @@
|
|
1
|
+
ActiveSupport::Dependencies.autoload_paths += Dir[ "#{ENV["LAMBDA_TASK_ROOT"]}/app/**" ]
|
2
|
+
|
1
3
|
class DefaultApiEntry
|
2
4
|
def self.call(env)
|
3
5
|
status = 200
|
@@ -10,15 +12,13 @@ end
|
|
10
12
|
|
11
13
|
module ServerlessHub
|
12
14
|
module Handler
|
13
|
-
ActiveSupport::Dependencies.autoload_paths += Dir[ "#{ENV["LAMBDA_TASK_ROOT"]}/app/**" ]
|
14
|
-
|
15
15
|
$app ||= Rack::Builder.new do
|
16
|
-
app =
|
17
|
-
ApiEntry
|
18
|
-
|
19
|
-
|
16
|
+
app = begin
|
17
|
+
Kernel.const_get(ENV.fetch('API_ENTRY_CLASS_NAME', 'ApiEntry'))
|
18
|
+
rescue
|
19
|
+
DefaultApiEntry
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
run app
|
23
23
|
end.to_app
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverless_hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|