solargraph-rails 1.1.2 → 1.2.1

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/linter.yml +94 -0
  3. data/.github/workflows/test.yml +185 -0
  4. data/.github/workflows/typecheck.yml +83 -0
  5. data/.overcommit.yml +51 -0
  6. data/.rubocop.yml +334 -0
  7. data/.rubocop_todo.yml +784 -0
  8. data/.solargraph.yml +8 -2
  9. data/CHANGELOG.md +51 -1
  10. data/DEVELOPMENT.md +8 -19
  11. data/Gemfile +22 -9
  12. data/README.md +39 -25
  13. data/bin/overcommit +27 -0
  14. data/bin/rubocop +27 -0
  15. data/ci/auto_yard/plugins.rb +0 -1
  16. data/lib/solargraph/rails/annotate.rb +10 -0
  17. data/lib/solargraph/rails/annotations/action_controller.rb +57 -5
  18. data/lib/solargraph/rails/annotations/action_text.rb +11 -0
  19. data/lib/solargraph/rails/annotations/active_job.rb +276 -0
  20. data/lib/solargraph/rails/annotations/active_model.rb +18 -0
  21. data/lib/solargraph/rails/annotations/active_record.rb +54 -3
  22. data/lib/solargraph/rails/annotations/active_storage.rb +113 -0
  23. data/lib/solargraph/rails/annotations/active_support.rb +3 -0
  24. data/lib/solargraph/rails/annotations/array.rb +7 -0
  25. data/lib/solargraph/rails/annotations/class.rb +2 -0
  26. data/lib/solargraph/rails/annotations/date.rb +8 -0
  27. data/lib/solargraph/rails/annotations/module.rb +13 -0
  28. data/lib/solargraph/rails/annotations/object.rb +3 -0
  29. data/lib/solargraph/rails/annotations/rails.rb +4 -0
  30. data/lib/solargraph/rails/annotations/time.rb +6 -2
  31. data/lib/solargraph/rails/delegate.rb +44 -10
  32. data/lib/solargraph/rails/model.rb +252 -31
  33. data/lib/solargraph/rails/rails_api.rb +2 -2
  34. data/lib/solargraph/rails/schema.rb +27 -8
  35. data/lib/solargraph/rails/util.rb +45 -4
  36. data/lib/solargraph/rails/version.rb +1 -1
  37. data/lib/solargraph-rails.rb +1 -1
  38. data/script/generate_definitions.rb +49 -24
  39. data/solargraph-rails.gemspec +14 -5
  40. metadata +64 -17
  41. data/.github/workflows/ruby.yml +0 -76
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fritz Meissner
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-05-29 00:00:00.000000000 Z
10
+ date: 2025-08-24 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -53,25 +52,61 @@ dependencies:
53
52
  - !ruby/object:Gem::Version
54
53
  version: '3.0'
55
54
  - !ruby/object:Gem::Dependency
56
- name: solargraph
55
+ name: rubocop
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ">="
58
+ - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: 0.48.0
62
- - - "<"
60
+ version: '1.76'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
63
66
  - !ruby/object:Gem::Version
64
- version: 0.53.0
65
- type: :runtime
67
+ version: '1.76'
68
+ - !ruby/object:Gem::Dependency
69
+ name: simplecov
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.22.0
75
+ type: :development
66
76
  prerelease: false
67
77
  version_requirements: !ruby/object:Gem::Requirement
68
78
  requirements:
69
- - - ">="
79
+ - - "~>"
70
80
  - !ruby/object:Gem::Version
71
- version: 0.48.0
72
- - - "<"
81
+ version: 0.22.0
82
+ - !ruby/object:Gem::Dependency
83
+ name: simplecov-lcov
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 0.8.0
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 0.8.0
96
+ - !ruby/object:Gem::Dependency
97
+ name: solargraph
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '='
101
+ - !ruby/object:Gem::Version
102
+ version: 0.57.alpha
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '='
73
108
  - !ruby/object:Gem::Version
74
- version: 0.53.0
109
+ version: 0.57.alpha
75
110
  - !ruby/object:Gem::Dependency
76
111
  name: activesupport
77
112
  requirement: !ruby/object:Gem::Requirement
@@ -95,9 +130,14 @@ extensions: []
95
130
  extra_rdoc_files: []
96
131
  files:
97
132
  - ".github/ISSUE_TEMPLATE/bug_report.md"
98
- - ".github/workflows/ruby.yml"
133
+ - ".github/workflows/linter.yml"
134
+ - ".github/workflows/test.yml"
135
+ - ".github/workflows/typecheck.yml"
99
136
  - ".gitignore"
137
+ - ".overcommit.yml"
100
138
  - ".rspec"
139
+ - ".rubocop.yml"
140
+ - ".rubocop_todo.yml"
101
141
  - ".solargraph.yml"
102
142
  - ".travis.yml"
103
143
  - CHANGELOG.md
@@ -107,6 +147,8 @@ files:
107
147
  - README.md
108
148
  - Rakefile
109
149
  - bin/console
150
+ - bin/overcommit
151
+ - bin/rubocop
110
152
  - bin/setup
111
153
  - ci/auto_yard/.gitignore
112
154
  - ci/auto_yard/auto_yard.gemspec
@@ -118,9 +160,16 @@ files:
118
160
  - lib/solargraph/rails/annotations/action_controller.rb
119
161
  - lib/solargraph/rails/annotations/action_dispatch.rb
120
162
  - lib/solargraph/rails/annotations/action_mailer.rb
163
+ - lib/solargraph/rails/annotations/action_text.rb
164
+ - lib/solargraph/rails/annotations/active_job.rb
165
+ - lib/solargraph/rails/annotations/active_model.rb
121
166
  - lib/solargraph/rails/annotations/active_record.rb
167
+ - lib/solargraph/rails/annotations/active_storage.rb
122
168
  - lib/solargraph/rails/annotations/active_support.rb
169
+ - lib/solargraph/rails/annotations/array.rb
170
+ - lib/solargraph/rails/annotations/class.rb
123
171
  - lib/solargraph/rails/annotations/date.rb
172
+ - lib/solargraph/rails/annotations/module.rb
124
173
  - lib/solargraph/rails/annotations/object.rb
125
174
  - lib/solargraph/rails/annotations/rails.rb
126
175
  - lib/solargraph/rails/annotations/stdlib_requires.rb
@@ -142,7 +191,6 @@ homepage: https://github.com/iftheshoefritz/solargraph-rails
142
191
  licenses:
143
192
  - MIT
144
193
  metadata: {}
145
- post_install_message:
146
194
  rdoc_options: []
147
195
  require_paths:
148
196
  - lib
@@ -157,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
205
  - !ruby/object:Gem::Version
158
206
  version: '0'
159
207
  requirements: []
160
- rubygems_version: 3.3.27
161
- signing_key:
208
+ rubygems_version: 3.6.6
162
209
  specification_version: 4
163
210
  summary: Solargraph plugin that adds Rails-specific code through a Convention
164
211
  test_files: []
@@ -1,76 +0,0 @@
1
- # To debug locally:
2
- # npm install -g act
3
- # act act pull_request
4
- #
5
-
6
- name: Ruby
7
-
8
- on:
9
- workflow_dispatch: {}
10
- pull_request:
11
- branches: [main]
12
-
13
- jobs:
14
- test:
15
- runs-on: ubuntu-latest
16
- strategy:
17
- matrix:
18
- ruby-version:
19
- - "3.0"
20
- # - "3.1"
21
- # - "3.2"
22
- # - "3.3"
23
- # - "3.4"
24
- solargraph-version:
25
- - "0.48.0"
26
- - "0.49.0"
27
- - "0.50.0"
28
- - "0.51.2"
29
- - "0.52.0"
30
- - "0.54.6.alpha"
31
- rails-version:
32
- - "7"
33
- fail-fast: false
34
-
35
- steps:
36
- - uses: actions/checkout@v2
37
- - uses: ruby/setup-ruby@v1
38
- with:
39
- ruby-version: ${{ matrix.ruby-version }}
40
- bundler: latest
41
- bundler-cache: true
42
-
43
-
44
- - name: Install child bundle
45
- run: |
46
- set -x
47
- export MATRIX_SOLARGRAPH_VERSION="${{ matrix.solargraph-version }}"
48
- export BUNDLE_PATH=$(pwd)/vendor/bundle
49
- cd "spec/rails${{ matrix.rails-version }}"
50
- bundle install
51
-
52
- - name: cache gem annotations
53
- uses: actions/cache@v3
54
- id: dot-cache
55
- with:
56
- key: ${{ runner.os }}-dot-cache-${{ matrix.ruby-version }}
57
- path: |
58
- /home/runner/.cache
59
-
60
- - name: bundle list
61
- run: bundle list && cat Gemfile.lock && find vendor -name Gemfile
62
-
63
- #- name: Setup upterm session
64
- # uses: lhotari/action-upterm@v1
65
-
66
- - name: RSpec
67
- run: |
68
- set -x
69
- echo $MATRIX_SOLARGRAPH_VERSION
70
- export MATRIX_SOLARGRAPH_VERSION="${{ matrix.solargraph-version }}"
71
- export BUNDLE_PATH=$(pwd)/vendor/bundle
72
- ruby --version
73
- bundle install
74
- bundle exec solargraph gems || true
75
- bundle exec solargraph version
76
- bundle exec rspec spec/solargraph-rails