fishplate 7.0.0.beta → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/workflows/auto-approve.yml +1 -3
- data/.github/workflows/ci.yml +2 -2
- data/Gemfile.lock +35 -34
- data/lib/fishplate/tasks.rake +1 -1
- data/lib/fishplate/version.rb +1 -1
- data/lib/fishplate.rb +9 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96b918a4bc5e94318675e0aeac58954512f1cb0562c4624b735ec4f3a1e94cc7
|
|
4
|
+
data.tar.gz: c9cf2bcdd447b6c4e2f6fddfdbb8810d21c97610c1e6d4b71134b874b5f5e658
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4533ab3bb8e877b9f22a55efcba5f608b4a35767e7aa4cb4191ed0b2f6fb14e9d56e7e028a5bd5b1c70269f2b0cdb079e22fc2f95ba97a10bfacda8a4dbd5bb
|
|
7
|
+
data.tar.gz: 22e324d3a3d2d36aed578fd490e7173012ecdd50e162e7a351f735e4460d2a447b7c14e13deff5a3ac34845217ab0ed64f1eee58b7911c3ca1d4e884fd1c0e4f
|
data/.bundler-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.3.11
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
# this will allow Dependabot to automatically merge dependency update PRs where CI passes
|
|
3
3
|
# from: https://github.com/hmarr/auto-approve-action
|
|
4
4
|
name: Auto approve dependency upgrades PRs
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
pull_request
|
|
5
|
+
on: pull_request_target
|
|
8
6
|
|
|
9
7
|
jobs:
|
|
10
8
|
auto-approve:
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -11,7 +11,7 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
strategy:
|
|
13
13
|
matrix:
|
|
14
|
-
ruby-version: ['
|
|
14
|
+
ruby-version: ['3.0', 3.1]
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
17
|
- uses: actions/checkout@v2
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
20
20
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
21
21
|
# uses: ruby/setup-ruby@v1
|
|
22
|
-
uses: ruby/setup-ruby@
|
|
22
|
+
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
|
|
23
23
|
with:
|
|
24
24
|
ruby-version: ${{ matrix.ruby-version }}
|
|
25
25
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fishplate (7.0.
|
|
4
|
+
fishplate (7.0.2)
|
|
5
5
|
a9n (~> 1.0)
|
|
6
6
|
activemodel (~> 7.0)
|
|
7
7
|
activerecord (~> 7.0)
|
|
@@ -12,68 +12,68 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
a9n (1.
|
|
16
|
-
activemodel (7.0.
|
|
17
|
-
activesupport (= 7.0.
|
|
18
|
-
activerecord (7.0.
|
|
19
|
-
activemodel (= 7.0.
|
|
20
|
-
activesupport (= 7.0.
|
|
21
|
-
activesupport (7.0.
|
|
15
|
+
a9n (1.3.1)
|
|
16
|
+
activemodel (7.0.2.3)
|
|
17
|
+
activesupport (= 7.0.2.3)
|
|
18
|
+
activerecord (7.0.2.3)
|
|
19
|
+
activemodel (= 7.0.2.3)
|
|
20
|
+
activesupport (= 7.0.2.3)
|
|
21
|
+
activesupport (7.0.2.3)
|
|
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
26
|
ast (2.4.2)
|
|
27
27
|
coderay (1.1.3)
|
|
28
|
-
concurrent-ruby (1.1.
|
|
29
|
-
diff-lcs (1.
|
|
30
|
-
i18n (1.
|
|
28
|
+
concurrent-ruby (1.1.10)
|
|
29
|
+
diff-lcs (1.5.0)
|
|
30
|
+
i18n (1.10.0)
|
|
31
31
|
concurrent-ruby (~> 1.0)
|
|
32
32
|
method_source (1.0.0)
|
|
33
33
|
minitest (5.15.0)
|
|
34
|
-
parallel (1.
|
|
35
|
-
parser (3.
|
|
34
|
+
parallel (1.22.1)
|
|
35
|
+
parser (3.1.2.0)
|
|
36
36
|
ast (~> 2.4.1)
|
|
37
37
|
pry (0.14.1)
|
|
38
38
|
coderay (~> 1.1)
|
|
39
39
|
method_source (~> 1.0)
|
|
40
|
-
rainbow (3.
|
|
40
|
+
rainbow (3.1.1)
|
|
41
41
|
rake (13.0.6)
|
|
42
|
-
regexp_parser (2.
|
|
42
|
+
regexp_parser (2.3.0)
|
|
43
43
|
rexml (3.2.5)
|
|
44
|
-
rspec (3.
|
|
45
|
-
rspec-core (~> 3.
|
|
46
|
-
rspec-expectations (~> 3.
|
|
47
|
-
rspec-mocks (~> 3.
|
|
48
|
-
rspec-core (3.
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-expectations (3.
|
|
44
|
+
rspec (3.11.0)
|
|
45
|
+
rspec-core (~> 3.11.0)
|
|
46
|
+
rspec-expectations (~> 3.11.0)
|
|
47
|
+
rspec-mocks (~> 3.11.0)
|
|
48
|
+
rspec-core (3.11.0)
|
|
49
|
+
rspec-support (~> 3.11.0)
|
|
50
|
+
rspec-expectations (3.11.0)
|
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
-
rspec-support (~> 3.
|
|
53
|
-
rspec-mocks (3.
|
|
52
|
+
rspec-support (~> 3.11.0)
|
|
53
|
+
rspec-mocks (3.11.1)
|
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
-
rspec-support (~> 3.
|
|
56
|
-
rspec-support (3.
|
|
57
|
-
rubocop (1.
|
|
55
|
+
rspec-support (~> 3.11.0)
|
|
56
|
+
rspec-support (3.11.0)
|
|
57
|
+
rubocop (1.27.0)
|
|
58
58
|
parallel (~> 1.10)
|
|
59
|
-
parser (>= 3.
|
|
59
|
+
parser (>= 3.1.0.0)
|
|
60
60
|
rainbow (>= 2.2.2, < 4.0)
|
|
61
61
|
regexp_parser (>= 1.8, < 3.0)
|
|
62
62
|
rexml
|
|
63
|
-
rubocop-ast (>= 1.
|
|
63
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
|
64
64
|
ruby-progressbar (~> 1.7)
|
|
65
65
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
66
|
-
rubocop-ast (1.
|
|
67
|
-
parser (>= 3.
|
|
66
|
+
rubocop-ast (1.17.0)
|
|
67
|
+
parser (>= 3.1.1.0)
|
|
68
68
|
rubocop-rake (0.6.0)
|
|
69
69
|
rubocop (~> 1.0)
|
|
70
|
-
rubocop-rspec (2.
|
|
70
|
+
rubocop-rspec (2.10.0)
|
|
71
71
|
rubocop (~> 1.19)
|
|
72
72
|
ruby-progressbar (1.11.0)
|
|
73
73
|
sqlite3 (1.4.2)
|
|
74
74
|
tzinfo (2.0.4)
|
|
75
75
|
concurrent-ruby (~> 1.0)
|
|
76
|
-
tzinfo-data (1.
|
|
76
|
+
tzinfo-data (1.2022.1)
|
|
77
77
|
tzinfo (>= 1.0.0)
|
|
78
78
|
unicode-display_width (2.1.0)
|
|
79
79
|
|
|
@@ -82,6 +82,7 @@ PLATFORMS
|
|
|
82
82
|
x86_64-darwin-18
|
|
83
83
|
x86_64-darwin-19
|
|
84
84
|
x86_64-darwin-20
|
|
85
|
+
x86_64-darwin-21
|
|
85
86
|
x86_64-linux
|
|
86
87
|
|
|
87
88
|
DEPENDENCIES
|
|
@@ -96,4 +97,4 @@ DEPENDENCIES
|
|
|
96
97
|
sqlite3
|
|
97
98
|
|
|
98
99
|
BUNDLED WITH
|
|
99
|
-
2.
|
|
100
|
+
2.3.11
|
data/lib/fishplate/tasks.rake
CHANGED
data/lib/fishplate/version.rb
CHANGED
data/lib/fishplate.rb
CHANGED
|
@@ -23,7 +23,14 @@ module Fishplate
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def database_configuration
|
|
26
|
-
@database_configuration ||=
|
|
26
|
+
@database_configuration ||= begin
|
|
27
|
+
content = ERB.new(A9n.root.join('config/database.yml').read).result
|
|
28
|
+
if RUBY_VERSION >= '3.1'
|
|
29
|
+
YAML.load(content, aliases: true)
|
|
30
|
+
else
|
|
31
|
+
YAML.load(content)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
27
34
|
end
|
|
28
35
|
|
|
29
36
|
def time_zone=(value)
|
|
@@ -55,10 +62,9 @@ module Fishplate
|
|
|
55
62
|
private
|
|
56
63
|
|
|
57
64
|
def configure_active_record
|
|
65
|
+
ActiveRecord.default_timezone = :utc
|
|
58
66
|
ActiveRecord::Base.logger = logger
|
|
59
67
|
ActiveRecord::Base.time_zone_aware_attributes = true
|
|
60
|
-
ActiveRecord::Base.default_timezone = :utc
|
|
61
|
-
ActiveRecord::Base.connection_handlers = { ActiveRecord::Base.writing_role => ActiveRecord::Base.default_connection_handler }
|
|
62
68
|
ActiveRecord::Base.configurations = database_configuration
|
|
63
69
|
end
|
|
64
70
|
|
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: 7.0.
|
|
4
|
+
version: 7.0.2
|
|
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-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: a9n
|
|
@@ -253,11 +253,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
253
253
|
version: '3.0'
|
|
254
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
requirements:
|
|
256
|
-
- - "
|
|
256
|
+
- - ">="
|
|
257
257
|
- !ruby/object:Gem::Version
|
|
258
|
-
version:
|
|
258
|
+
version: '0'
|
|
259
259
|
requirements: []
|
|
260
|
-
rubygems_version: 3.
|
|
260
|
+
rubygems_version: 3.3.11
|
|
261
261
|
signing_key:
|
|
262
262
|
specification_version: 4
|
|
263
263
|
summary: Fishplate is a library allowing running ActiveRecord without Railties.
|