fishplate 1.1.2 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/PULL_REQUEST_TEMPLATE.md +3 -15
- data/.github/workflows/auto-approve.yml +1 -1
- data/.github/workflows/ci.yml +28 -0
- data/Gemfile.lock +39 -37
- data/README.md +8 -1
- data/Rakefile +2 -1
- data/fishplate.gemspec +6 -5
- data/lib/fishplate/tasks.rake +1 -1
- data/lib/fishplate/version.rb +1 -1
- data/lib/fishplate.rb +2 -2
- metadata +14 -13
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2431680113b62da1a71a17b8df3503b0c450781d28c09f4d6afec09dd2f2766e
|
4
|
+
data.tar.gz: cb0fdf35cba582737b649f6b516e67e088805c529697dfbc892d670f79a295db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b4b827d28fc3d0e24a6b42ad4ee72e1c73de0394b2e84a0fcf02fc9474b74177d025b63cadd3a29b948801d95ae1a746f926b929ec2849d9a5316552414978a
|
7
|
+
data.tar.gz: 20137b02c380ae5da9a08bf0e68275e3fe5c562bad41554660b10c9eadb7d30a7b2796f6f2bede98300208d69d2244514d91301c39768b8925550a06888c4730
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.5
|
@@ -1,18 +1,6 @@
|
|
1
|
-
## Description
|
1
|
+
## Description, motivation and context
|
2
2
|
<!--- Describe your changes in detail -->
|
3
|
-
|
4
|
-
## Related issue(s)
|
5
|
-
<!--- GH issue number -->
|
6
|
-
|
7
|
-
## Motivation and Context
|
8
3
|
<!--- Why is this change required? What problem does it solve? -->
|
9
|
-
<!--- If it fixes an open issue, please link to the issue here. -->
|
10
4
|
|
11
|
-
##
|
12
|
-
<!---
|
13
|
-
|
14
|
-
## Screenshots (if appropriate):
|
15
|
-
<!--- Please add any screenshots of the feature. -->
|
16
|
-
|
17
|
-
## Related PRs
|
18
|
-
<!--- Please add links to any related PRs (backend, component packages, etc). -->
|
5
|
+
## Related issue(s) or PR(s)
|
6
|
+
<!--- GH issue number -->
|
@@ -10,7 +10,7 @@ jobs:
|
|
10
10
|
auto-approve:
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
steps:
|
13
|
-
- uses: hmarr/auto-approve-action@v2
|
13
|
+
- uses: hmarr/auto-approve-action@v2
|
14
14
|
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
|
15
15
|
with:
|
16
16
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Ruby CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version: ['3.0']
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby
|
19
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
20
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
21
|
+
# uses: ruby/setup-ruby@v1
|
22
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
25
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
26
|
+
|
27
|
+
- name: Run tests
|
28
|
+
run: bundle exec rake ci
|
data/Gemfile.lock
CHANGED
@@ -1,47 +1,46 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fishplate (
|
4
|
+
fishplate (7.0.1)
|
5
5
|
a9n (~> 1.0)
|
6
|
-
activemodel (~>
|
7
|
-
activerecord (~>
|
8
|
-
activesupport (~>
|
9
|
-
rake (~> 13
|
6
|
+
activemodel (~> 7.0)
|
7
|
+
activerecord (~> 7.0)
|
8
|
+
activesupport (~> 7.0)
|
9
|
+
rake (~> 13)
|
10
10
|
tzinfo-data
|
11
11
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
a9n (1.2.
|
16
|
-
activemodel (
|
17
|
-
activesupport (=
|
18
|
-
activerecord (
|
19
|
-
activemodel (=
|
20
|
-
activesupport (=
|
21
|
-
activesupport (
|
15
|
+
a9n (1.2.3)
|
16
|
+
activemodel (7.0.1)
|
17
|
+
activesupport (= 7.0.1)
|
18
|
+
activerecord (7.0.1)
|
19
|
+
activemodel (= 7.0.1)
|
20
|
+
activesupport (= 7.0.1)
|
21
|
+
activesupport (7.0.1)
|
22
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
23
|
i18n (>= 1.6, < 2)
|
24
24
|
minitest (>= 5.1)
|
25
25
|
tzinfo (~> 2.0)
|
26
|
-
zeitwerk (~> 2.3)
|
27
26
|
ast (2.4.2)
|
28
27
|
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.1.
|
30
|
-
diff-lcs (1.
|
31
|
-
i18n (1.8.
|
28
|
+
concurrent-ruby (1.1.9)
|
29
|
+
diff-lcs (1.5.0)
|
30
|
+
i18n (1.8.11)
|
32
31
|
concurrent-ruby (~> 1.0)
|
33
32
|
method_source (1.0.0)
|
34
|
-
minitest (5.
|
35
|
-
parallel (1.
|
36
|
-
parser (3.
|
33
|
+
minitest (5.15.0)
|
34
|
+
parallel (1.21.0)
|
35
|
+
parser (3.1.0.0)
|
37
36
|
ast (~> 2.4.1)
|
38
|
-
pry (0.14.
|
37
|
+
pry (0.14.1)
|
39
38
|
coderay (~> 1.1)
|
40
39
|
method_source (~> 1.0)
|
41
40
|
rainbow (3.0.0)
|
42
|
-
rake (13.0.
|
43
|
-
regexp_parser (2.0
|
44
|
-
rexml (3.2.
|
41
|
+
rake (13.0.6)
|
42
|
+
regexp_parser (2.2.0)
|
43
|
+
rexml (3.2.5)
|
45
44
|
rspec (3.10.0)
|
46
45
|
rspec-core (~> 3.10.0)
|
47
46
|
rspec-expectations (~> 3.10.0)
|
@@ -54,34 +53,37 @@ GEM
|
|
54
53
|
rspec-mocks (3.10.2)
|
55
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
55
|
rspec-support (~> 3.10.0)
|
57
|
-
rspec-support (3.10.
|
58
|
-
rubocop (1.
|
56
|
+
rspec-support (3.10.3)
|
57
|
+
rubocop (1.24.1)
|
59
58
|
parallel (~> 1.10)
|
60
59
|
parser (>= 3.0.0.0)
|
61
60
|
rainbow (>= 2.2.2, < 4.0)
|
62
61
|
regexp_parser (>= 1.8, < 3.0)
|
63
62
|
rexml
|
64
|
-
rubocop-ast (>= 1.
|
63
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
65
64
|
ruby-progressbar (~> 1.7)
|
66
65
|
unicode-display_width (>= 1.4.0, < 3.0)
|
67
|
-
rubocop-ast (1.
|
68
|
-
parser (>=
|
69
|
-
rubocop-rake (0.
|
70
|
-
rubocop
|
71
|
-
rubocop-rspec (2.2.0)
|
66
|
+
rubocop-ast (1.15.1)
|
67
|
+
parser (>= 3.0.1.1)
|
68
|
+
rubocop-rake (0.6.0)
|
72
69
|
rubocop (~> 1.0)
|
73
|
-
|
70
|
+
rubocop-rspec (2.7.0)
|
71
|
+
rubocop (~> 1.19)
|
74
72
|
ruby-progressbar (1.11.0)
|
75
73
|
sqlite3 (1.4.2)
|
76
74
|
tzinfo (2.0.4)
|
77
75
|
concurrent-ruby (~> 1.0)
|
78
|
-
tzinfo-data (1.2021.
|
76
|
+
tzinfo-data (1.2021.5)
|
79
77
|
tzinfo (>= 1.0.0)
|
80
|
-
unicode-display_width (2.
|
81
|
-
zeitwerk (2.4.2)
|
78
|
+
unicode-display_width (2.1.0)
|
82
79
|
|
83
80
|
PLATFORMS
|
84
|
-
|
81
|
+
aarch64-linux-musl
|
82
|
+
x86_64-darwin-18
|
83
|
+
x86_64-darwin-19
|
84
|
+
x86_64-darwin-20
|
85
|
+
x86_64-darwin-21
|
86
|
+
x86_64-linux
|
85
87
|
|
86
88
|
DEPENDENCIES
|
87
89
|
bundler
|
@@ -95,4 +97,4 @@ DEPENDENCIES
|
|
95
97
|
sqlite3
|
96
98
|
|
97
99
|
BUNDLED WITH
|
98
|
-
2.
|
100
|
+
2.3.5
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/fishplate.svg)](https://rubygems.org/gems/fishplate)
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/RenoFi/fishplate/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/fishplate/actions/workflows/ci.yml?query=branch%3Amain)
|
3
3
|
|
4
4
|
# fishplate
|
5
5
|
|
@@ -65,6 +65,13 @@ rake db:structure:load # Recreates the databases from the struc
|
|
65
65
|
rake db:version # Retrieves the current schema version number
|
66
66
|
```
|
67
67
|
|
68
|
+
### Rack Middleware
|
69
|
+
|
70
|
+
To free up DB connections after each request, add middleware to your `config.ru`:
|
71
|
+
```ruby
|
72
|
+
use Fishplate::Rack
|
73
|
+
```
|
74
|
+
|
68
75
|
## Contributing
|
69
76
|
|
70
77
|
Bug reports and pull requests are welcome on GitHub at https://github.com/RenoFi/fishplate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/Rakefile
CHANGED
data/fishplate.gemspec
CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/fishplate'
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/fishplate'
|
17
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
17
18
|
|
18
19
|
spec.files = Dir.chdir(__dir__) do
|
19
20
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
@@ -22,13 +23,13 @@ Gem::Specification.new do |spec|
|
|
22
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
24
|
spec.require_paths = ['lib']
|
24
25
|
|
25
|
-
spec.required_ruby_version = '>=
|
26
|
+
spec.required_ruby_version = '>= 3.0'
|
26
27
|
|
27
28
|
spec.add_dependency 'a9n', '~> 1.0'
|
28
|
-
spec.add_dependency 'activemodel', '~>
|
29
|
-
spec.add_dependency 'activerecord', '~>
|
30
|
-
spec.add_dependency 'activesupport', '~>
|
31
|
-
spec.add_dependency 'rake', '~> 13
|
29
|
+
spec.add_dependency 'activemodel', '~> 7.0'
|
30
|
+
spec.add_dependency 'activerecord', '~> 7.0'
|
31
|
+
spec.add_dependency 'activesupport', '~> 7.0'
|
32
|
+
spec.add_dependency 'rake', '~> 13'
|
32
33
|
spec.add_dependency 'tzinfo-data'
|
33
34
|
|
34
35
|
spec.add_development_dependency 'bundler'
|
data/lib/fishplate/tasks.rake
CHANGED
data/lib/fishplate/version.rb
CHANGED
data/lib/fishplate.rb
CHANGED
@@ -12,6 +12,7 @@ module Fishplate
|
|
12
12
|
class << self
|
13
13
|
def load_seed
|
14
14
|
return unless A9n.root.join('db/seeds.rb').exist?
|
15
|
+
|
15
16
|
Kernel.load A9n.root.join('db/seeds.rb')
|
16
17
|
end
|
17
18
|
|
@@ -54,10 +55,9 @@ module Fishplate
|
|
54
55
|
private
|
55
56
|
|
56
57
|
def configure_active_record
|
58
|
+
ActiveRecord.default_timezone = :utc
|
57
59
|
ActiveRecord::Base.logger = logger
|
58
60
|
ActiveRecord::Base.time_zone_aware_attributes = true
|
59
|
-
ActiveRecord::Base.default_timezone = :utc
|
60
|
-
ActiveRecord::Base.connection_handlers = { ActiveRecord::Base.writing_role => ActiveRecord::Base.default_connection_handler }
|
61
61
|
ActiveRecord::Base.configurations = database_configuration
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fishplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: a9n
|
@@ -30,56 +30,56 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '7.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '7.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '7.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '7.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '7.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '13
|
75
|
+
version: '13'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '13
|
82
|
+
version: '13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: tzinfo-data
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,9 +221,9 @@ files:
|
|
221
221
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
222
222
|
- ".github/workflows/auto-approve.yml"
|
223
223
|
- ".github/workflows/auto-merge.yml"
|
224
|
+
- ".github/workflows/ci.yml"
|
224
225
|
- ".gitignore"
|
225
226
|
- ".rspec"
|
226
|
-
- ".travis.yml"
|
227
227
|
- Gemfile
|
228
228
|
- Gemfile.lock
|
229
229
|
- LICENSE
|
@@ -241,6 +241,7 @@ licenses:
|
|
241
241
|
metadata:
|
242
242
|
homepage_uri: https://github.com/RenoFi/fishplate
|
243
243
|
source_code_uri: https://github.com/RenoFi/fishplate
|
244
|
+
rubygems_mfa_required: 'true'
|
244
245
|
post_install_message:
|
245
246
|
rdoc_options: []
|
246
247
|
require_paths:
|
@@ -249,14 +250,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
249
250
|
requirements:
|
250
251
|
- - ">="
|
251
252
|
- !ruby/object:Gem::Version
|
252
|
-
version: '
|
253
|
+
version: '3.0'
|
253
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
255
|
requirements:
|
255
256
|
- - ">="
|
256
257
|
- !ruby/object:Gem::Version
|
257
258
|
version: '0'
|
258
259
|
requirements: []
|
259
|
-
rubygems_version: 3.2.
|
260
|
+
rubygems_version: 3.2.32
|
260
261
|
signing_key:
|
261
262
|
specification_version: 4
|
262
263
|
summary: Fishplate is a library allowing running ActiveRecord without Railties.
|