fishplate 7.0.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2431680113b62da1a71a17b8df3503b0c450781d28c09f4d6afec09dd2f2766e
4
- data.tar.gz: cb0fdf35cba582737b649f6b516e67e088805c529697dfbc892d670f79a295db
3
+ metadata.gz: 96b918a4bc5e94318675e0aeac58954512f1cb0562c4624b735ec4f3a1e94cc7
4
+ data.tar.gz: c9cf2bcdd447b6c4e2f6fddfdbb8810d21c97610c1e6d4b71134b874b5f5e658
5
5
  SHA512:
6
- metadata.gz: 9b4b827d28fc3d0e24a6b42ad4ee72e1c73de0394b2e84a0fcf02fc9474b74177d025b63cadd3a29b948801d95ae1a746f926b929ec2849d9a5316552414978a
7
- data.tar.gz: 20137b02c380ae5da9a08bf0e68275e3fe5c562bad41554660b10c9eadb7d30a7b2796f6f2bede98300208d69d2244514d91301c39768b8925550a06888c4730
6
+ metadata.gz: f4533ab3bb8e877b9f22a55efcba5f608b4a35767e7aa4cb4191ed0b2f6fb14e9d56e7e028a5bd5b1c70269f2b0cdb079e22fc2f95ba97a10bfacda8a4dbd5bb
7
+ data.tar.gz: 22e324d3a3d2d36aed578fd490e7173012ecdd50e162e7a351f735e4460d2a447b7c14e13deff5a3ac34845217ab0ed64f1eee58b7911c3ca1d4e884fd1c0e4f
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.5
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:
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['3.0']
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@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
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.1)
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.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)
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.9)
28
+ concurrent-ruby (1.1.10)
29
29
  diff-lcs (1.5.0)
30
- i18n (1.8.11)
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.21.0)
35
- parser (3.1.0.0)
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.0.0)
40
+ rainbow (3.1.1)
41
41
  rake (13.0.6)
42
- regexp_parser (2.2.0)
42
+ regexp_parser (2.3.0)
43
43
  rexml (3.2.5)
44
- rspec (3.10.0)
45
- rspec-core (~> 3.10.0)
46
- rspec-expectations (~> 3.10.0)
47
- rspec-mocks (~> 3.10.0)
48
- rspec-core (3.10.1)
49
- rspec-support (~> 3.10.0)
50
- rspec-expectations (3.10.1)
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.10.0)
53
- rspec-mocks (3.10.2)
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.10.0)
56
- rspec-support (3.10.3)
57
- rubocop (1.24.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.0.0.0)
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.15.1, < 2.0)
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.15.1)
67
- parser (>= 3.0.1.1)
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.7.0)
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.2021.5)
76
+ tzinfo-data (1.2022.1)
77
77
  tzinfo (>= 1.0.0)
78
78
  unicode-display_width (2.1.0)
79
79
 
@@ -97,4 +97,4 @@ DEPENDENCIES
97
97
  sqlite3
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.5
100
+ 2.3.11
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "7.0.1".freeze
2
+ VERSION = "7.0.2".freeze
3
3
  end
data/lib/fishplate.rb CHANGED
@@ -23,7 +23,14 @@ module Fishplate
23
23
  end
24
24
 
25
25
  def database_configuration
26
- @database_configuration ||= YAML.load(ERB.new(A9n.root.join('config/database.yml').read).result) # rubocop:disable Security/YAMLLoad
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)
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.1
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: 2022-01-13 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.2.32
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.