Skip to content

Commit 76399c6

Browse files
committed
Initialize repository
Create Rails mountable engine with Sorbet configured
0 parents  commit 76399c6

File tree

288 files changed

+315347
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+315347
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.bundle/
2+
/doc/
3+
/log/*.log
4+
/pkg/
5+
/tmp/
6+
/test/dummy/db/*.sqlite3
7+
/test/dummy/db/*.sqlite3-*
8+
/test/dummy/log/*.log
9+
/test/dummy/storage/
10+
/test/dummy/tmp/

.rubocop.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
inherit_gem:
2+
rubocop-shopify: rubocop.yml
3+
4+
require:
5+
- rubocop-sorbet
6+
- rubocop-minitest
7+
- rubocop-rake
8+
9+
AllCops:
10+
NewCops: disable
11+
SuggestExtensions: false
12+
TargetRubyVersion: 2.7
13+
14+
Sorbet/FalseSigil:
15+
Enabled: false
16+
17+
Sorbet/TrueSigil:
18+
Enabled: true
19+
Include:
20+
- "test/**/*.rb"
21+
Exclude:
22+
- "**/*.rake"
23+
- "lib/**/*.rb"
24+
25+
Sorbet/StrictSigil:
26+
Enabled: true
27+
Include:
28+
- "lib/**/*.rb"
29+
Exclude:
30+
- "**/*.rake"
31+
- "test/**/*.rb"
32+
33+
Style/StderrPuts:
34+
Enabled: true

Gemfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5+
6+
# Specify your gem's dependencies in rails_ruby_lsp.gemspec.
7+
gemspec
8+
9+
gem "puma"
10+
gem "sqlite3"
11+
gem "debug", ">= 1.7.0"
12+
gem "rubocop", "~> 1.48", require: false
13+
gem "rubocop-shopify", "~> 2.12", require: false
14+
gem "rubocop-minitest", "~> 0.29.0", require: false
15+
gem "rubocop-rake", "~> 0.6.0", require: false
16+
gem "rubocop-sorbet", "~> 0.7", require: false
17+
18+
gem "sorbet-static-and-runtime"
19+
gem "tapioca", "~> 0.11", require: false

Gemfile.lock

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
PATH
2+
remote: .
3+
specs:
4+
rails_ruby_lsp (0.1.0)
5+
rails (>= 7.0.4.3)
6+
ruby-lsp (>= 0.4.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
actioncable (7.0.4.3)
12+
actionpack (= 7.0.4.3)
13+
activesupport (= 7.0.4.3)
14+
nio4r (~> 2.0)
15+
websocket-driver (>= 0.6.1)
16+
actionmailbox (7.0.4.3)
17+
actionpack (= 7.0.4.3)
18+
activejob (= 7.0.4.3)
19+
activerecord (= 7.0.4.3)
20+
activestorage (= 7.0.4.3)
21+
activesupport (= 7.0.4.3)
22+
mail (>= 2.7.1)
23+
net-imap
24+
net-pop
25+
net-smtp
26+
actionmailer (7.0.4.3)
27+
actionpack (= 7.0.4.3)
28+
actionview (= 7.0.4.3)
29+
activejob (= 7.0.4.3)
30+
activesupport (= 7.0.4.3)
31+
mail (~> 2.5, >= 2.5.4)
32+
net-imap
33+
net-pop
34+
net-smtp
35+
rails-dom-testing (~> 2.0)
36+
actionpack (7.0.4.3)
37+
actionview (= 7.0.4.3)
38+
activesupport (= 7.0.4.3)
39+
rack (~> 2.0, >= 2.2.0)
40+
rack-test (>= 0.6.3)
41+
rails-dom-testing (~> 2.0)
42+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
43+
actiontext (7.0.4.3)
44+
actionpack (= 7.0.4.3)
45+
activerecord (= 7.0.4.3)
46+
activestorage (= 7.0.4.3)
47+
activesupport (= 7.0.4.3)
48+
globalid (>= 0.6.0)
49+
nokogiri (>= 1.8.5)
50+
actionview (7.0.4.3)
51+
activesupport (= 7.0.4.3)
52+
builder (~> 3.1)
53+
erubi (~> 1.4)
54+
rails-dom-testing (~> 2.0)
55+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
56+
activejob (7.0.4.3)
57+
activesupport (= 7.0.4.3)
58+
globalid (>= 0.3.6)
59+
activemodel (7.0.4.3)
60+
activesupport (= 7.0.4.3)
61+
activerecord (7.0.4.3)
62+
activemodel (= 7.0.4.3)
63+
activesupport (= 7.0.4.3)
64+
activestorage (7.0.4.3)
65+
actionpack (= 7.0.4.3)
66+
activejob (= 7.0.4.3)
67+
activerecord (= 7.0.4.3)
68+
activesupport (= 7.0.4.3)
69+
marcel (~> 1.0)
70+
mini_mime (>= 1.1.0)
71+
activesupport (7.0.4.3)
72+
concurrent-ruby (~> 1.0, >= 1.0.2)
73+
i18n (>= 1.6, < 2)
74+
minitest (>= 5.1)
75+
tzinfo (~> 2.0)
76+
ast (2.4.2)
77+
builder (3.2.4)
78+
concurrent-ruby (1.2.2)
79+
crass (1.0.6)
80+
date (3.3.3)
81+
debug (1.7.2)
82+
irb (>= 1.5.0)
83+
reline (>= 0.3.1)
84+
diff-lcs (1.5.0)
85+
erubi (1.12.0)
86+
globalid (1.1.0)
87+
activesupport (>= 5.0)
88+
i18n (1.12.0)
89+
concurrent-ruby (~> 1.0)
90+
io-console (0.6.0)
91+
irb (1.6.3)
92+
reline (>= 0.3.0)
93+
json (2.6.3)
94+
language_server-protocol (3.17.0.3)
95+
loofah (2.19.1)
96+
crass (~> 1.0.2)
97+
nokogiri (>= 1.5.9)
98+
mail (2.8.1)
99+
mini_mime (>= 0.1.1)
100+
net-imap
101+
net-pop
102+
net-smtp
103+
marcel (1.0.2)
104+
method_source (1.0.0)
105+
mini_mime (1.1.2)
106+
minitest (5.18.0)
107+
net-imap (0.3.4)
108+
date
109+
net-protocol
110+
net-pop (0.1.2)
111+
net-protocol
112+
net-protocol (0.2.1)
113+
timeout
114+
net-smtp (0.3.3)
115+
net-protocol
116+
netrc (0.11.0)
117+
nio4r (2.5.8)
118+
nokogiri (1.14.2-arm64-darwin)
119+
racc (~> 1.4)
120+
parallel (1.22.1)
121+
parser (3.2.1.1)
122+
ast (~> 2.4.1)
123+
prettier_print (1.2.1)
124+
puma (5.6.5)
125+
nio4r (~> 2.0)
126+
racc (1.6.2)
127+
rack (2.2.6.4)
128+
rack-test (2.1.0)
129+
rack (>= 1.3)
130+
rails (7.0.4.3)
131+
actioncable (= 7.0.4.3)
132+
actionmailbox (= 7.0.4.3)
133+
actionmailer (= 7.0.4.3)
134+
actionpack (= 7.0.4.3)
135+
actiontext (= 7.0.4.3)
136+
actionview (= 7.0.4.3)
137+
activejob (= 7.0.4.3)
138+
activemodel (= 7.0.4.3)
139+
activerecord (= 7.0.4.3)
140+
activestorage (= 7.0.4.3)
141+
activesupport (= 7.0.4.3)
142+
bundler (>= 1.15.0)
143+
railties (= 7.0.4.3)
144+
rails-dom-testing (2.0.3)
145+
activesupport (>= 4.2.0)
146+
nokogiri (>= 1.6)
147+
rails-html-sanitizer (1.5.0)
148+
loofah (~> 2.19, >= 2.19.1)
149+
railties (7.0.4.3)
150+
actionpack (= 7.0.4.3)
151+
activesupport (= 7.0.4.3)
152+
method_source
153+
rake (>= 12.2)
154+
thor (~> 1.0)
155+
zeitwerk (~> 2.5)
156+
rainbow (3.1.1)
157+
rake (13.0.6)
158+
rbi (0.0.16)
159+
ast
160+
parser (>= 2.6.4.0)
161+
sorbet-runtime (>= 0.5.9204)
162+
unparser
163+
regexp_parser (2.7.0)
164+
reline (0.3.3)
165+
io-console (~> 0.5)
166+
rexml (3.2.5)
167+
rubocop (1.48.1)
168+
json (~> 2.3)
169+
parallel (~> 1.10)
170+
parser (>= 3.2.0.0)
171+
rainbow (>= 2.2.2, < 4.0)
172+
regexp_parser (>= 1.8, < 3.0)
173+
rexml (>= 3.2.5, < 4.0)
174+
rubocop-ast (>= 1.26.0, < 2.0)
175+
ruby-progressbar (~> 1.7)
176+
unicode-display_width (>= 2.4.0, < 3.0)
177+
rubocop-ast (1.27.0)
178+
parser (>= 3.2.1.0)
179+
rubocop-minitest (0.29.0)
180+
rubocop (>= 1.39, < 2.0)
181+
rubocop-rake (0.6.0)
182+
rubocop (~> 1.0)
183+
rubocop-shopify (2.12.0)
184+
rubocop (~> 1.44)
185+
rubocop-sorbet (0.7.0)
186+
rubocop (>= 0.90.0)
187+
ruby-lsp (0.4.3)
188+
language_server-protocol (~> 3.17.0)
189+
sorbet-runtime
190+
syntax_tree (>= 6.1.1, < 7)
191+
ruby-progressbar (1.13.0)
192+
sorbet (0.5.10736)
193+
sorbet-static (= 0.5.10736)
194+
sorbet-runtime (0.5.10736)
195+
sorbet-static (0.5.10736-universal-darwin-22)
196+
sorbet-static-and-runtime (0.5.10736)
197+
sorbet (= 0.5.10736)
198+
sorbet-runtime (= 0.5.10736)
199+
spoom (1.1.16)
200+
sorbet (>= 0.5.10187)
201+
sorbet-runtime (>= 0.5.9204)
202+
thor (>= 0.19.2)
203+
sqlite3 (1.6.1-arm64-darwin)
204+
syntax_tree (6.1.1)
205+
prettier_print (>= 1.2.0)
206+
tapioca (0.11.3)
207+
bundler (>= 2.2.25)
208+
netrc (>= 0.11.0)
209+
parallel (>= 1.21.0)
210+
rbi (~> 0.0.0, >= 0.0.16)
211+
sorbet-static-and-runtime (>= 0.5.10187)
212+
spoom (~> 1.1.0, >= 1.1.11)
213+
thor (>= 1.2.0)
214+
yard-sorbet
215+
thor (1.2.1)
216+
timeout (0.3.2)
217+
tzinfo (2.0.6)
218+
concurrent-ruby (~> 1.0)
219+
unicode-display_width (2.4.2)
220+
unparser (0.6.7)
221+
diff-lcs (~> 1.3)
222+
parser (>= 3.2.0)
223+
webrick (1.7.0)
224+
websocket-driver (0.7.5)
225+
websocket-extensions (>= 0.1.0)
226+
websocket-extensions (0.1.5)
227+
yard (0.9.28)
228+
webrick (~> 1.7.0)
229+
yard-sorbet (0.8.0)
230+
sorbet-runtime (>= 0.5)
231+
yard (>= 0.9)
232+
zeitwerk (2.6.7)
233+
234+
PLATFORMS
235+
arm64-darwin-22
236+
237+
DEPENDENCIES
238+
debug (>= 1.7.0)
239+
puma
240+
rails_ruby_lsp!
241+
rubocop (~> 1.48)
242+
rubocop-minitest (~> 0.29.0)
243+
rubocop-rake (~> 0.6.0)
244+
rubocop-shopify (~> 2.12)
245+
rubocop-sorbet (~> 0.7)
246+
sorbet-static-and-runtime
247+
sqlite3
248+
tapioca (~> 0.11)
249+
250+
BUNDLED WITH
251+
2.4.10

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023-present, Shopify Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# RailsRubyLsp
2+
Short description and motivation.
3+
4+
## Usage
5+
How to use my plugin.
6+
7+
## Installation
8+
Add this line to your application's Gemfile:
9+
10+
```ruby
11+
gem "rails_ruby_lsp"
12+
```
13+
14+
And then execute:
15+
```bash
16+
$ bundle
17+
```
18+
19+
Or install it yourself as:
20+
```bash
21+
$ gem install rails_ruby_lsp
22+
```
23+
24+
## Contributing
25+
Contribution directions go here.
26+
27+
## License
28+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/setup"
4+
5+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
6+
load "rails/tasks/engine.rake"
7+
8+
load "rails/tasks/statistics.rake"
9+
10+
require "bundler/gem_tasks"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= link_directory ../stylesheets/rails_ruby_lsp .css

app/assets/images/rails_ruby_lsp/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/

app/controllers/concerns/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)