fishplate 7.0.1 → 7.0.4

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: 2431680113b62da1a71a17b8df3503b0c450781d28c09f4d6afec09dd2f2766e
4
- data.tar.gz: cb0fdf35cba582737b649f6b516e67e088805c529697dfbc892d670f79a295db
3
+ metadata.gz: dbf295c44dd25360243486fe32975544fdb7a30232999857703c8c6f9f546e2b
4
+ data.tar.gz: d15861a0edca900f1293e789ad6ea7472e117aa0322fb60113dca740e94dd136
5
5
  SHA512:
6
- metadata.gz: 9b4b827d28fc3d0e24a6b42ad4ee72e1c73de0394b2e84a0fcf02fc9474b74177d025b63cadd3a29b948801d95ae1a746f926b929ec2849d9a5316552414978a
7
- data.tar.gz: 20137b02c380ae5da9a08bf0e68275e3fe5c562bad41554660b10c9eadb7d30a7b2796f6f2bede98300208d69d2244514d91301c39768b8925550a06888c4730
6
+ metadata.gz: 5e533f78a36273e09150f97ba0e94c350476dd30332026b2ab0ba368badb4a84b1dbd1d0595889d7028e8be058cb897f9dd1b353656170e6d28d1ebba016ff98
7
+ data.tar.gz: f5241568354f7b5134bd4546ca81c37d30b0a9a96a42f8f724334a8041726e11c255fb422cbd4f445354f7204c5b5a7a128d14ebe293c28aa7d27673bea871c8
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.5
1
+ 2.3.22
@@ -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,15 +11,12 @@ 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
- - uses: actions/checkout@v2
17
+ - uses: actions/checkout@v3
18
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
19
+ uses: ruby/setup-ruby@v1
23
20
  with:
24
21
  ruby-version: ${{ matrix.ruby-version }}
25
22
  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.4)
5
5
  a9n (~> 1.0)
6
6
  activemodel (~> 7.0)
7
7
  activerecord (~> 7.0)
@@ -12,78 +12,77 @@ 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.4)
17
+ activesupport (= 7.0.4)
18
+ activerecord (7.0.4)
19
+ activemodel (= 7.0.4)
20
+ activesupport (= 7.0.4)
21
+ activesupport (7.0.4)
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.12.0)
31
31
  concurrent-ruby (~> 1.0)
32
+ json (2.6.2)
32
33
  method_source (1.0.0)
33
- minitest (5.15.0)
34
- parallel (1.21.0)
35
- parser (3.1.0.0)
34
+ mini_portile2 (2.8.0)
35
+ minitest (5.16.3)
36
+ parallel (1.22.1)
37
+ parser (3.1.2.1)
36
38
  ast (~> 2.4.1)
37
39
  pry (0.14.1)
38
40
  coderay (~> 1.1)
39
41
  method_source (~> 1.0)
40
- rainbow (3.0.0)
42
+ rainbow (3.1.1)
41
43
  rake (13.0.6)
42
- regexp_parser (2.2.0)
44
+ regexp_parser (2.5.0)
43
45
  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)
46
+ rspec (3.11.0)
47
+ rspec-core (~> 3.11.0)
48
+ rspec-expectations (~> 3.11.0)
49
+ rspec-mocks (~> 3.11.0)
50
+ rspec-core (3.11.0)
51
+ rspec-support (~> 3.11.0)
52
+ rspec-expectations (3.11.1)
51
53
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.10.0)
53
- rspec-mocks (3.10.2)
54
+ rspec-support (~> 3.11.0)
55
+ rspec-mocks (3.11.1)
54
56
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.10.0)
56
- rspec-support (3.10.3)
57
- rubocop (1.24.1)
57
+ rspec-support (~> 3.11.0)
58
+ rspec-support (3.11.1)
59
+ rubocop (1.36.0)
60
+ json (~> 2.3)
58
61
  parallel (~> 1.10)
59
- parser (>= 3.0.0.0)
62
+ parser (>= 3.1.2.1)
60
63
  rainbow (>= 2.2.2, < 4.0)
61
64
  regexp_parser (>= 1.8, < 3.0)
62
- rexml
63
- rubocop-ast (>= 1.15.1, < 2.0)
65
+ rexml (>= 3.2.5, < 4.0)
66
+ rubocop-ast (>= 1.20.1, < 2.0)
64
67
  ruby-progressbar (~> 1.7)
65
68
  unicode-display_width (>= 1.4.0, < 3.0)
66
- rubocop-ast (1.15.1)
67
- parser (>= 3.0.1.1)
69
+ rubocop-ast (1.21.0)
70
+ parser (>= 3.1.1.0)
68
71
  rubocop-rake (0.6.0)
69
72
  rubocop (~> 1.0)
70
- rubocop-rspec (2.7.0)
71
- rubocop (~> 1.19)
73
+ rubocop-rspec (2.13.1)
74
+ rubocop (~> 1.33)
72
75
  ruby-progressbar (1.11.0)
73
- sqlite3 (1.4.2)
74
- tzinfo (2.0.4)
76
+ sqlite3 (1.5.0)
77
+ mini_portile2 (~> 2.8.0)
78
+ tzinfo (2.0.5)
75
79
  concurrent-ruby (~> 1.0)
76
- tzinfo-data (1.2021.5)
80
+ tzinfo-data (1.2022.3)
77
81
  tzinfo (>= 1.0.0)
78
- unicode-display_width (2.1.0)
82
+ unicode-display_width (2.3.0)
79
83
 
80
84
  PLATFORMS
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
+ ruby
87
86
 
88
87
  DEPENDENCIES
89
88
  bundler
@@ -97,4 +96,4 @@ DEPENDENCIES
97
96
  sqlite3
98
97
 
99
98
  BUNDLED WITH
100
- 2.3.5
99
+ 2.3.22
data/Rakefile CHANGED
@@ -6,4 +6,4 @@ RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
8
  task ci: %i[spec rubocop]
9
- task default: %i[spec rubocop:auto_correct]
9
+ task default: %i[spec rubocop:autocorrect]
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "7.0.1".freeze
2
+ VERSION = "7.0.4".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)
@@ -49,6 +56,8 @@ module Fishplate
49
56
 
50
57
  load_initializers
51
58
 
59
+ add_i18n_load_paths if defined?(I18n)
60
+
52
61
  add_sidekiq_middleware if defined?(Sidekiq)
53
62
  end
54
63
 
@@ -82,6 +91,10 @@ module Fishplate
82
91
  A9n.root.join('config/initializers').glob('*.rb').sort.each { |f| require f }
83
92
  end
84
93
 
94
+ def add_i18n_load_paths
95
+ I18n.load_path |= A9n.root.join('config/locales').glob('**/*.yml')
96
+ end
97
+
85
98
  def add_sidekiq_middleware
86
99
  Sidekiq.configure_server do |config|
87
100
  config.server_middleware do |chain|
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.4
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-09-19 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.7
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Fishplate is a library allowing running ActiveRecord without Railties.