grande 0.0.1 → 0.0.2

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: de0c0ef55381a0884ab038b4b1405a8b5853304ad02429e546c36b4e43560cfd
4
- data.tar.gz: 5d6115b6cd99f6ea98230d9eb24f536c4a1b46906e6daf2b893aa7cdb4d8e8ea
3
+ metadata.gz: fc0d83f6bc071d18808ba8eb44806b372f98655449a58516f580115e263bff07
4
+ data.tar.gz: 9cbfe48682e4e9fd0180e7c4d7a9666792a727c92929a853daa15d5cc991a74e
5
5
  SHA512:
6
- metadata.gz: 4d299ba2e4ab4e4c7b623331a1626d7b002d4dd54646340a719cc599b6ff009910ef38b2e43fefd0bb05743989f5d2ece64a6c1a47ee5e90be762140afe16322
7
- data.tar.gz: 3130112b479bf4cc0d867a723266a9f0c8da2ac5055fe4c3f9e9b87fab49fc5d70bba237afc8d22b92134193df2fbaa2ca2044e4afcf51c7496408862e06b06d
6
+ metadata.gz: 98f64eaedf812216df9dc46298ea8a11e0d2a40848727094aed6cddb9e6a1736729bb433cc89e3ca1beb029643502f5d8e3591a52893af82b7b6da17afabcd2f
7
+ data.tar.gz: 46f576a78986c7499a1dde2932b3cda8e217a3f4742bbd66184f28a8b524eecff4da2d5fd5a0358636f82bc1c2e2978aa735b9614c83f4f6e94546c7c50da01d
@@ -27,6 +27,6 @@ class Grande::Context
27
27
  # If one is using forking servers,
28
28
  # this could should be run to re-setup all DB connections
29
29
  def run_after_fork
30
- @app.setup_db_connections
30
+ @app.restore_db_connections_after_fork
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grande
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
@@ -0,0 +1,10 @@
1
+
2
+ module Grande::WithConfigLoader
3
+ def with_config_loader
4
+ @config_loader = Grande::ConfigLoader.new
5
+
6
+ yield
7
+
8
+ @config_loader = nil # Config doesn't need to be kept in memory after it's loaded. Free up some memory here
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grande
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André D. Piske
@@ -29,6 +29,7 @@ files:
29
29
  - lib/grande/use_sequel_with_pg.rb
30
30
  - lib/grande/use_sinatra.rb
31
31
  - lib/grande/version.rb
32
+ - lib/grande/with_config_loader.rb
32
33
  homepage: https://github.com/andrepiske/grande
33
34
  licenses:
34
35
  - MIT