serverless_hub 1.0.0 → 1.0.1

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: 78dddd07d3a363073ad81fcdca3e33f85edd52c8cd3d2a9dbe5e689a988285fc
4
- data.tar.gz: 92d40764480304a0b80faca2fb9c249e72d8fc4dc041aeff2aeb4f1988a8d294
3
+ metadata.gz: 0e483461afb6cd5669c76204595b56d195a7064d157cd4b89edea100e8657264
4
+ data.tar.gz: 9ed76e35c6c7d014bf41c99a96b09df8f7bb95f503d9fc387660ae622a7c3b9e
5
5
  SHA512:
6
- metadata.gz: b1f069e12f40dad8c04f33eb5e2b1398f1b718e48c2d0e0d96ef0f9d56a32057f529417231beaac60496322c59358baf9c7f64d8b1ecfe2fb68019aef6691f0c
7
- data.tar.gz: 98af094fbf04b7ccdc24aa275e19c8f5b3b5844ef65c8d2b26833f697e7c0bdeb6f6aa52532d22a6301128914375d0d9e6315dd44941d983913f7b9372d531db
6
+ metadata.gz: 523be73ee0075a87fa3ddcc1bbdd32b1a43dbcf1c601b2ee5b8a86b5f685a472ae52fb1954965bcfc1bcc1407634cb68f4bc19fba85138ab1c5224d333cdb9ff
7
+ data.tar.gz: f4a53565f47037ce26ba9f54e2d17338aae845a4709bf27017bbe1b551ab460842d17ac77424d1cd13bcabcc7eb7cb18c1ed74a41de14f31ee3d9daafa464e63
@@ -1,4 +1,18 @@
1
- ActiveSupport::Dependencies.autoload_paths += Dir[ "#{ENV["LAMBDA_TASK_ROOT"]}/app/**" ]
1
+ if ENV["LAMBDA_TASK_ROOT"].present?
2
+ ENV["RAILS_ENV"] ||= "production"
3
+
4
+ require "bundler"
5
+ Bundler.setup(:default, ENV["RAILS_ENV"])
6
+
7
+ require "active_record"
8
+
9
+ Bundler.require(:default, ENV["RAILS_ENV"])
10
+
11
+ ActiveSupport::Dependencies.autoload_paths += Dir[ "#{ENV["LAMBDA_TASK_ROOT"]}/app/**" ]
12
+
13
+ ActiveRecord::Base.configurations = {}
14
+ ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[ENV["RAILS_ENV"]])
15
+ end
2
16
 
3
17
  class DefaultApiEntry
4
18
  def self.call(env)
@@ -1,3 +1,3 @@
1
1
  module ServerlessHub
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will