ruby-lsp-rails 0.3.22 → 0.3.24

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: 87907f659bf3723d803685fb91ee9ff1f83b9c3b63f8c394ac48a4592be40ab6
4
- data.tar.gz: dc9ba5353f094aa02d4f73a97de484c9a5a6086ad74427083e61366729620462
3
+ metadata.gz: 48996127a800b5450baaa8ace61a91fd292005d73ee607ce8577b028e451838e
4
+ data.tar.gz: be8de3ba4b390495d7075948f2e5698cf162930b4e4bf7c53855590d0519d3f7
5
5
  SHA512:
6
- metadata.gz: 9eb10192041cde7218dc73bbb9a315f3d9ad3c9c19580371839a21744f9bede5d0063d44bb4c78d53815bbd8811b6b5b33cdc05f6e3f14fd84b9afcb603e444f
7
- data.tar.gz: e97d8e5f5000cade9b6d876f0c2a261e0a91f3a4201ba249dbbf8385503cb237c796507a0c5901d5814bd2d78f3ae898e7ae42fd43bb98898502ddb56cd8cf05
6
+ metadata.gz: 70aaa8e246313469a5277aa0353b49e08ec5aec3fdeb551f08aa3414241986b38920b6c56bc502c84986a420a256866c9ab7fd005e643e9ea9b12b6afe54bab1
7
+ data.tar.gz: ae9de99e7de876062d2b2c6eb60fce7b2ed9e6dad51177485f5fcff7750fb87c2107987df6a80a9791bc39f4bd56eb5a2c74d4fa1cba70ccd6ea3fe356062387
@@ -71,7 +71,7 @@ module RubyLsp
71
71
  primary_key_suffix = " (PK)" if model[:primary_keys].include?(name)
72
72
  suffixes = []
73
73
  suffixes << "default: #{format_default(default_value, type)}" if default_value
74
- suffixes << "not null" unless nullable || primary_key_suffix.present?
74
+ suffixes << "not null" unless nullable || primary_key_suffix
75
75
  suffix_string = " - #{suffixes.join(" - ")}" if suffixes.any?
76
76
  "**#{name}**: #{type}#{primary_key_suffix}#{suffix_string}\n"
77
77
  end.join("\n"),
@@ -259,7 +259,8 @@ module RubyLsp
259
259
  end
260
260
 
261
261
  def pending_migrations_message
262
- return unless defined?(ActiveRecord)
262
+ # `check_all_pending!` is only available since Rails 7.1
263
+ return unless defined?(ActiveRecord) && ActiveRecord::Migration.respond_to?(:check_all_pending!)
263
264
 
264
265
  ActiveRecord::Migration.check_all_pending!
265
266
  nil
@@ -3,6 +3,6 @@
3
3
 
4
4
  module RubyLsp
5
5
  module Rails
6
- VERSION = "0.3.22"
6
+ VERSION = "0.3.24"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lsp-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.22
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-05 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-lsp
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.5.22
83
+ rubygems_version: 3.5.23
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: A Ruby LSP addon for Rails