fishplate 7.0.2 → 7.0.5

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: 96b918a4bc5e94318675e0aeac58954512f1cb0562c4624b735ec4f3a1e94cc7
4
- data.tar.gz: c9cf2bcdd447b6c4e2f6fddfdbb8810d21c97610c1e6d4b71134b874b5f5e658
3
+ metadata.gz: 6e07e9978bee7b68f4f6f9c3298b412e4464ec0e56122a1b18c85932ea65b513
4
+ data.tar.gz: f1764c269ddf606c4c6530d8dcca5bf222239d34b2c0ded9529404653ddc5478
5
5
  SHA512:
6
- metadata.gz: f4533ab3bb8e877b9f22a55efcba5f608b4a35767e7aa4cb4191ed0b2f6fb14e9d56e7e028a5bd5b1c70269f2b0cdb079e22fc2f95ba97a10bfacda8a4dbd5bb
7
- data.tar.gz: 22e324d3a3d2d36aed578fd490e7173012ecdd50e162e7a351f735e4460d2a447b7c14e13deff5a3ac34845217ab0ed64f1eee58b7911c3ca1d4e884fd1c0e4f
6
+ metadata.gz: 32d442ca5c041a3ae954e2719162f1a80ce1d76636deb5f2f9641c80edbc8628ce48f34c6f85eb2ba62c3b4f987dd3485ae98936b14fa8c953cc1dcee28ff581
7
+ data.tar.gz: a7615053d7f21ae2c890f1274633453fff5cb647c5f55298b19e4791151e24a00bb51e2fb423e044ba4344cf82e22a5b125af5b5e550bf2998119080d7ae4313
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.11
1
+ 2.3.26
@@ -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.5)
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,63 +27,62 @@ 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.3.0)
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.6.1)
43
45
  rexml (3.2.5)
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)
46
+ rspec (3.12.0)
47
+ rspec-core (~> 3.12.0)
48
+ rspec-expectations (~> 3.12.0)
49
+ rspec-mocks (~> 3.12.0)
50
+ rspec-core (3.12.0)
51
+ rspec-support (~> 3.12.0)
52
+ rspec-expectations (3.12.0)
51
53
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.11.0)
53
- rspec-mocks (3.11.1)
54
+ rspec-support (~> 3.12.0)
55
+ rspec-mocks (3.12.0)
54
56
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.11.0)
56
- rspec-support (3.11.0)
57
- rubocop (1.27.0)
57
+ rspec-support (~> 3.12.0)
58
+ rspec-support (3.12.0)
59
+ rubocop (1.39.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.23.0, < 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.23.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.15.0)
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.4)
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.6)
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.5".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
 
@@ -64,6 +66,7 @@ module Fishplate
64
66
  def configure_active_record
65
67
  ActiveRecord.default_timezone = :utc
66
68
  ActiveRecord::Base.logger = logger
69
+ ActiveRecord::Base.logger.level = ENV['LOG_LEVEL'] || 'debug'
67
70
  ActiveRecord::Base.time_zone_aware_attributes = true
68
71
  ActiveRecord::Base.configurations = database_configuration
69
72
  end
@@ -89,6 +92,10 @@ module Fishplate
89
92
  A9n.root.join('config/initializers').glob('*.rb').sort.each { |f| require f }
90
93
  end
91
94
 
95
+ def add_i18n_load_paths
96
+ I18n.load_path |= A9n.root.join('config/locales').glob('**/*.yml')
97
+ end
98
+
92
99
  def add_sidekiq_middleware
93
100
  Sidekiq.configure_server do |config|
94
101
  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.5
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-11-28 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.