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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/starter/builder/active_record.rb +3 -3
- data/lib/starter/orms.rb +0 -3
- data/lib/starter/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: d3c1d52c31b0631f1ea31beeaeff14f2336979b0c3c187e5d13b1a57a4d1d30f
|
4
|
+
data.tar.gz: d8943b15a89ec8ade4a356acffb790d490887c528e6a5a38434f2f8b7d795db8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/starter/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|