grape-starter 2.1.2 → 2.1.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: c50b0ef0ce589ca3088cb3121a58283efe78668452f701828bad102dc4741c09
4
- data.tar.gz: 7812b85b1af2049f0b8ff27f164f687d4344b9ad7e55a4af94c4b9c6c9264cdc
3
+ metadata.gz: d3c1d52c31b0631f1ea31beeaeff14f2336979b0c3c187e5d13b1a57a4d1d30f
4
+ data.tar.gz: d8943b15a89ec8ade4a356acffb790d490887c528e6a5a38434f2f8b7d795db8
5
5
  SHA512:
6
- metadata.gz: 6e2be7745d04670d560980c10ae2749821642f9daf13157a225fa21849ec1062ed0730e50f901446fdc88f6a42cf07c36bdac5ab10d97e5f6d13b47fad105555
7
- data.tar.gz: 459e4012b8cdce1a924fb58d8738d77e61d325fc958f836ab83dd55ed4179dc64795cb50cda78c5d3fd9d2ea19ab07b33087da700ae76e78229b7664462f1eb6
6
+ metadata.gz: f1a6e22693674c78bc15a24ac2f32500998ae236d0c1cb9828840eba8c52d4a0408e1440546b739c143f1cc4eaa4bee88a0a0a8f6371cf1f215281fb44d4dce2
7
+ data.tar.gz: 652defd0f40d8ad17e7543f18cfe71f6fe171d442a54f283e80cbf572fa14a1c22bd361a405a7ab58661bf86a3e1e6730887dcc056a4bd4559544ecf19ea9524
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  - contributions
4
4
 
5
+ ### v2.1.3 / 2023-10-31
6
+
7
+ - [(#47)](https://github.com/LeFnord/grape-starter/pull/47) Minor Fixes. [LeFnord](https://github.com/LeFnord)
8
+
5
9
  ### v2.1.2 / 2023-10-30
6
10
 
7
11
  - [(#45)](https://github.com/LeFnord/grape-starter/pull/45) Corrects AR file name, to load correct. [LeFnord](https://github.com/LeFnord)
@@ -26,7 +26,7 @@ module Starter
26
26
  logger = if %w[development test].include? env
27
27
  log_dir = File.join(Dir.getwd, 'log')
28
28
  log_file = File.join(log_dir, 'db.log')
29
- FileUtils.mkdir(log_dir) unless Dir.exist?(log_dir)
29
+ FileUtils.mkdir_p(log_dir)
30
30
  Logger.new(File.open(log_file, 'a'))
31
31
  else
32
32
  Logger.new($stdout)
@@ -46,12 +46,12 @@ module Starter
46
46
  def call(env)
47
47
  response = @app.call(env)
48
48
  response[2] = ::Rack::BodyProxy.new(response[2]) do
49
- ActiveRecord::Base.clear_active_connections!
49
+ ActiveRecord::Base.connection_handler.clear_active_connections!
50
50
  end
51
51
 
52
52
  return response
53
53
  rescue StandardError
54
- ActiveRecord::Base.clear_active_connections!
54
+ ActiveRecord::Base.connection_handler.clear_active_connections!
55
55
  raise
56
56
  end
57
57
  end
data/lib/starter/orms.rb CHANGED
@@ -36,21 +36,18 @@ module Starter
36
36
  adapter: #{adapter}
37
37
  encoding: unicode
38
38
  timeout: 5000
39
- user: postgres
40
39
  database: #{@name}_development
41
40
 
42
41
  test:
43
42
  adapter: #{adapter}
44
43
  encoding: unicode
45
44
  timeout: 5000
46
- user: postgres
47
45
  database: #{@name}_test
48
46
 
49
47
  production:
50
48
  adapter: #{adapter}
51
49
  encoding: unicode
52
50
  timeout: 5000
53
- user: postgres
54
51
  database: #{@name}_production
55
52
  FILE
56
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '2.1.2'
4
+ VERSION = '2.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-30 00:00:00.000000000 Z
11
+ date: 2023-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli