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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 501dbef74a376e6b148d57d2b86363f925918f521d984a1b998c7457b8782095
4
- data.tar.gz: 0f2c5734f54c730b3a43f17d0c40e8760011f24a3a74fa12d9e5904b382432d8
3
+ metadata.gz: e4fbef685ee6599dd6d8da8c5fd32e6f078f28f97edf9569515020beecc53873
4
+ data.tar.gz: a1bc01b472bdfe793861caffef86f4c859aa4893f0030248f361f730ddfe10b5
5
5
  SHA512:
6
- metadata.gz: 34dbbf698c08fe03037f69d4f0dca112cbdf5b591e237c4f45728c8004ac03dd5838cf714774a40492f8d01561cefcfd3edb85b49b1ac8e571d8875c3c7412c8
7
- data.tar.gz: 54eb8ec3b16f83bcc75a90f4a12db141a54066ce13ca76ef4ab8f3f36f0c2a6e66fb738e229aa1eac32cea24c7a1f03477b920a49af9222bfe1e1b75704af496
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 = if defined?(ApiEntry) == 'constant' && ApiEntry.class == Class
17
- ApiEntry
18
- else
19
- Kernel.const_get(ENV.fetch('API_ENTRY_CLASS_NAME', 'DefaultApiEntry'))
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
 
@@ -1,3 +1,3 @@
1
1
  module ServerlessHub
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-16 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler