fishplate 7.0.2 → 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: 96b918a4bc5e94318675e0aeac58954512f1cb0562c4624b735ec4f3a1e94cc7
4
- data.tar.gz: c9cf2bcdd447b6c4e2f6fddfdbb8810d21c97610c1e6d4b71134b874b5f5e658
3
+ metadata.gz: dbf295c44dd25360243486fe32975544fdb7a30232999857703c8c6f9f546e2b
4
+ data.tar.gz: d15861a0edca900f1293e789ad6ea7472e117aa0322fb60113dca740e94dd136
5
5
  SHA512:
6
- metadata.gz: f4533ab3bb8e877b9f22a55efcba5f608b4a35767e7aa4cb4191ed0b2f6fb14e9d56e7e028a5bd5b1c70269f2b0cdb079e22fc2f95ba97a10bfacda8a4dbd5bb
7
- data.tar.gz: 22e324d3a3d2d36aed578fd490e7173012ecdd50e162e7a351f735e4460d2a447b7c14e13deff5a3ac34845217ab0ed64f1eee58b7911c3ca1d4e884fd1c0e4f
6
+ metadata.gz: 5e533f78a36273e09150f97ba0e94c350476dd30332026b2ab0ba368badb4a84b1dbd1d0595889d7028e8be058cb897f9dd1b353656170e6d28d1ebba016ff98
7
+ data.tar.gz: f5241568354f7b5134bd4546ca81c37d30b0a9a96a42f8f724334a8041726e11c255fb422cbd4f445354f7204c5b5a7a128d14ebe293c28aa7d27673bea871c8
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.11
1
+ 2.3.22
@@ -14,12 +14,9 @@ jobs:
14
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@bd94d6a504586da892a5753afdd1480096ed30df
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.2)
4
+ fishplate (7.0.4)
5
5
  a9n (~> 1.0)
6
6
  activemodel (~> 7.0)
7
7
  activerecord (~> 7.0)
@@ -13,12 +13,12 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
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)
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)
@@ -27,19 +27,21 @@ GEM
27
27
  coderay (1.1.3)
28
28
  concurrent-ruby (1.1.10)
29
29
  diff-lcs (1.5.0)
30
- i18n (1.10.0)
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
+ mini_portile2 (2.8.0)
35
+ minitest (5.16.3)
34
36
  parallel (1.22.1)
35
- parser (3.1.2.0)
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
42
  rainbow (3.1.1)
41
43
  rake (13.0.6)
42
- regexp_parser (2.3.0)
44
+ regexp_parser (2.5.0)
43
45
  rexml (3.2.5)
44
46
  rspec (3.11.0)
45
47
  rspec-core (~> 3.11.0)
@@ -47,43 +49,40 @@ GEM
47
49
  rspec-mocks (~> 3.11.0)
48
50
  rspec-core (3.11.0)
49
51
  rspec-support (~> 3.11.0)
50
- rspec-expectations (3.11.0)
52
+ rspec-expectations (3.11.1)
51
53
  diff-lcs (>= 1.2.0, < 2.0)
52
54
  rspec-support (~> 3.11.0)
53
55
  rspec-mocks (3.11.1)
54
56
  diff-lcs (>= 1.2.0, < 2.0)
55
57
  rspec-support (~> 3.11.0)
56
- rspec-support (3.11.0)
57
- rubocop (1.27.0)
58
+ rspec-support (3.11.1)
59
+ rubocop (1.36.0)
60
+ json (~> 2.3)
58
61
  parallel (~> 1.10)
59
- parser (>= 3.1.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.16.0, < 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.17.0)
69
+ rubocop-ast (1.21.0)
67
70
  parser (>= 3.1.1.0)
68
71
  rubocop-rake (0.6.0)
69
72
  rubocop (~> 1.0)
70
- rubocop-rspec (2.10.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.2022.1)
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.11
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.2".freeze
2
+ VERSION = "7.0.4".freeze
3
3
  end
data/lib/fishplate.rb CHANGED
@@ -56,6 +56,8 @@ module Fishplate
56
56
 
57
57
  load_initializers
58
58
 
59
+ add_i18n_load_paths if defined?(I18n)
60
+
59
61
  add_sidekiq_middleware if defined?(Sidekiq)
60
62
  end
61
63
 
@@ -89,6 +91,10 @@ module Fishplate
89
91
  A9n.root.join('config/initializers').glob('*.rb').sort.each { |f| require f }
90
92
  end
91
93
 
94
+ def add_i18n_load_paths
95
+ I18n.load_path |= A9n.root.join('config/locales').glob('**/*.yml')
96
+ end
97
+
92
98
  def add_sidekiq_middleware
93
99
  Sidekiq.configure_server do |config|
94
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.2
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-04-20 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.3.11
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.