Skip to content

Commit 3fd6564

Browse files
authored
Merge pull request #1 from mclancy96/convert-to-rails
Convert to Rails
2 parents 5c3819c + bda3eb5 commit 3fd6564

Some content is hidden

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

41 files changed

+941
-151
lines changed

Gemfile

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,47 @@
1-
# A sample Gemfile
2-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
# gem "rails"
4+
# Ruby 3.3+ compatibility gems
5+
gem 'bigdecimal'
6+
gem 'fiddle'
7+
gem 'logger'
8+
gem 'mutex_m'
9+
gem 'ostruct'
10+
11+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
12+
gem 'rails', '~> 6.1.3', '>= 6.1.3.1'
13+
# Use sqlite3 as the database for Active Record (updated for Ruby 3.3 compatibility)
14+
gem 'sqlite3', '~> 1.6.0'
15+
# Use Puma as the app server
16+
gem 'puma', '~> 5.0'
17+
# Asset pipeline gems
18+
gem 'sprockets-rails'
19+
gem 'stimulus-rails'
20+
gem 'turbo-rails'
21+
# nio4r for Ruby 3.3 compatibility
22+
gem 'nio4r', '~> 2.7'
23+
# Use Active Model has_secure_password
24+
# gem 'bcrypt', '~> 3.1.7'
25+
26+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
27+
gem 'rack-cors'
28+
29+
group :development, :test do
30+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
31+
gem 'byebug', platforms: %i[mri mingw x64_mingw]
32+
gem 'capybara'
33+
gem 'rspec-rails', '~> 5.0.0'
34+
end
35+
36+
group :development do
37+
gem 'listen', '~> 3.3'
38+
gem 'rubocop'
39+
end
40+
41+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
42+
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
543

6-
gem 'sinatra'
7-
gem 'rake'
8-
gem 'thin'
9-
gem 'shotgun'
10-
gem 'pry'
11-
gem 'require_all'
12-
1344
group :test do
14-
gem 'rspec'
15-
gem 'capybara'
16-
gem 'rack-test'
17-
end
45+
gem 'rspec-json_expectations'
46+
gem 'shoulda-matchers', '~> 4.0'
47+
end

Gemfile.lock

Lines changed: 254 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,270 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
5-
public_suffix (>= 2.0.2, < 4.0)
6-
capybara (2.18.0)
4+
actioncable (6.1.7.10)
5+
actionpack (= 6.1.7.10)
6+
activesupport (= 6.1.7.10)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.7.10)
10+
actionpack (= 6.1.7.10)
11+
activejob (= 6.1.7.10)
12+
activerecord (= 6.1.7.10)
13+
activestorage (= 6.1.7.10)
14+
activesupport (= 6.1.7.10)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.7.10)
17+
actionpack (= 6.1.7.10)
18+
actionview (= 6.1.7.10)
19+
activejob (= 6.1.7.10)
20+
activesupport (= 6.1.7.10)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.7.10)
24+
actionview (= 6.1.7.10)
25+
activesupport (= 6.1.7.10)
26+
rack (~> 2.0, >= 2.0.9)
27+
rack-test (>= 0.6.3)
28+
rails-dom-testing (~> 2.0)
29+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30+
actiontext (6.1.7.10)
31+
actionpack (= 6.1.7.10)
32+
activerecord (= 6.1.7.10)
33+
activestorage (= 6.1.7.10)
34+
activesupport (= 6.1.7.10)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.7.10)
37+
activesupport (= 6.1.7.10)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42+
activejob (6.1.7.10)
43+
activesupport (= 6.1.7.10)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.7.10)
46+
activesupport (= 6.1.7.10)
47+
activerecord (6.1.7.10)
48+
activemodel (= 6.1.7.10)
49+
activesupport (= 6.1.7.10)
50+
activestorage (6.1.7.10)
51+
actionpack (= 6.1.7.10)
52+
activejob (= 6.1.7.10)
53+
activerecord (= 6.1.7.10)
54+
activesupport (= 6.1.7.10)
55+
marcel (~> 1.0)
56+
mini_mime (>= 1.1.0)
57+
activesupport (6.1.7.10)
58+
concurrent-ruby (~> 1.0, >= 1.0.2)
59+
i18n (>= 1.6, < 2)
60+
minitest (>= 5.1)
61+
tzinfo (~> 2.0)
62+
zeitwerk (~> 2.3)
63+
addressable (2.8.7)
64+
public_suffix (>= 2.0.2, < 7.0)
65+
ast (2.4.3)
66+
base64 (0.3.0)
67+
bigdecimal (3.2.2)
68+
builder (3.3.0)
69+
byebug (12.0.0)
70+
capybara (3.40.0)
771
addressable
72+
matrix
873
mini_mime (>= 0.1.3)
9-
nokogiri (>= 1.3.3)
10-
rack (>= 1.0.0)
11-
rack-test (>= 0.5.4)
12-
xpath (>= 2.0, < 4.0)
13-
coderay (1.1.2)
14-
daemons (1.2.6)
15-
diff-lcs (1.3)
16-
eventmachine (1.2.5)
17-
method_source (0.9.0)
18-
mini_mime (1.0.0)
19-
mini_portile2 (2.3.0)
20-
mustermann (1.0.2)
21-
nokogiri (1.8.2)
22-
mini_portile2 (~> 2.3.0)
23-
pry (0.11.3)
24-
coderay (~> 1.1.0)
25-
method_source (~> 0.9.0)
26-
public_suffix (3.0.2)
27-
rack (2.0.4)
28-
rack-protection (2.0.1)
29-
rack
30-
rack-test (0.8.2)
31-
rack (>= 1.0, < 3)
32-
rake (12.3.0)
33-
require_all (1.5.0)
34-
rspec (3.7.0)
35-
rspec-core (~> 3.7.0)
36-
rspec-expectations (~> 3.7.0)
37-
rspec-mocks (~> 3.7.0)
38-
rspec-core (3.7.1)
39-
rspec-support (~> 3.7.0)
40-
rspec-expectations (3.7.0)
74+
nokogiri (~> 1.11)
75+
rack (>= 1.6.0)
76+
rack-test (>= 0.6.3)
77+
regexp_parser (>= 1.5, < 3.0)
78+
xpath (~> 3.2)
79+
concurrent-ruby (1.3.5)
80+
crass (1.0.6)
81+
date (3.4.1)
82+
diff-lcs (1.6.2)
83+
erubi (1.13.1)
84+
ffi (1.17.2)
85+
ffi (1.17.2-arm64-darwin)
86+
fiddle (1.1.8)
87+
globalid (1.2.1)
88+
activesupport (>= 6.1)
89+
i18n (1.14.7)
90+
concurrent-ruby (~> 1.0)
91+
json (2.13.2)
92+
language_server-protocol (3.17.0.5)
93+
lint_roller (1.1.0)
94+
listen (3.9.0)
95+
rb-fsevent (~> 0.10, >= 0.10.3)
96+
rb-inotify (~> 0.9, >= 0.9.10)
97+
logger (1.7.0)
98+
loofah (2.24.1)
99+
crass (~> 1.0.2)
100+
nokogiri (>= 1.12.0)
101+
mail (2.8.1)
102+
mini_mime (>= 0.1.1)
103+
net-imap
104+
net-pop
105+
net-smtp
106+
marcel (1.0.4)
107+
matrix (0.4.3)
108+
method_source (1.1.0)
109+
mini_mime (1.1.5)
110+
mini_portile2 (2.8.9)
111+
minitest (5.25.5)
112+
mutex_m (0.3.0)
113+
net-imap (0.5.9)
114+
date
115+
net-protocol
116+
net-pop (0.1.2)
117+
net-protocol
118+
net-protocol (0.2.2)
119+
timeout
120+
net-smtp (0.5.1)
121+
net-protocol
122+
nio4r (2.7.4)
123+
nokogiri (1.18.9)
124+
mini_portile2 (~> 2.8.2)
125+
racc (~> 1.4)
126+
nokogiri (1.18.9-arm64-darwin)
127+
racc (~> 1.4)
128+
ostruct (0.6.3)
129+
parallel (1.27.0)
130+
parser (3.3.9.0)
131+
ast (~> 2.4.1)
132+
racc
133+
prism (1.4.0)
134+
public_suffix (6.0.2)
135+
puma (5.6.9)
136+
nio4r (~> 2.0)
137+
racc (1.8.1)
138+
rack (2.2.17)
139+
rack-cors (2.0.2)
140+
rack (>= 2.0.0)
141+
rack-test (2.2.0)
142+
rack (>= 1.3)
143+
rails (6.1.7.10)
144+
actioncable (= 6.1.7.10)
145+
actionmailbox (= 6.1.7.10)
146+
actionmailer (= 6.1.7.10)
147+
actionpack (= 6.1.7.10)
148+
actiontext (= 6.1.7.10)
149+
actionview (= 6.1.7.10)
150+
activejob (= 6.1.7.10)
151+
activemodel (= 6.1.7.10)
152+
activerecord (= 6.1.7.10)
153+
activestorage (= 6.1.7.10)
154+
activesupport (= 6.1.7.10)
155+
bundler (>= 1.15.0)
156+
railties (= 6.1.7.10)
157+
sprockets-rails (>= 2.0.0)
158+
rails-dom-testing (2.3.0)
159+
activesupport (>= 5.0.0)
160+
minitest
161+
nokogiri (>= 1.6)
162+
rails-html-sanitizer (1.6.2)
163+
loofah (~> 2.21)
164+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
165+
railties (6.1.7.10)
166+
actionpack (= 6.1.7.10)
167+
activesupport (= 6.1.7.10)
168+
method_source
169+
rake (>= 12.2)
170+
thor (~> 1.0)
171+
rainbow (3.1.1)
172+
rake (13.3.0)
173+
rb-fsevent (0.11.2)
174+
rb-inotify (0.11.1)
175+
ffi (~> 1.0)
176+
regexp_parser (2.11.1)
177+
rspec-core (3.13.5)
178+
rspec-support (~> 3.13.0)
179+
rspec-expectations (3.13.5)
41180
diff-lcs (>= 1.2.0, < 2.0)
42-
rspec-support (~> 3.7.0)
43-
rspec-mocks (3.7.0)
181+
rspec-support (~> 3.13.0)
182+
rspec-json_expectations (2.2.0)
183+
rspec-mocks (3.13.5)
44184
diff-lcs (>= 1.2.0, < 2.0)
45-
rspec-support (~> 3.7.0)
46-
rspec-support (3.7.1)
47-
shotgun (0.9.2)
48-
rack (>= 1.0)
49-
sinatra (2.0.1)
50-
mustermann (~> 1.0)
51-
rack (~> 2.0)
52-
rack-protection (= 2.0.1)
53-
tilt (~> 2.0)
54-
thin (1.7.2)
55-
daemons (~> 1.0, >= 1.0.9)
56-
eventmachine (~> 1.0, >= 1.0.4)
57-
rack (>= 1, < 3)
58-
tilt (2.0.8)
59-
xpath (3.0.0)
185+
rspec-support (~> 3.13.0)
186+
rspec-rails (5.0.3)
187+
actionpack (>= 5.2)
188+
activesupport (>= 5.2)
189+
railties (>= 5.2)
190+
rspec-core (~> 3.10)
191+
rspec-expectations (~> 3.10)
192+
rspec-mocks (~> 3.10)
193+
rspec-support (~> 3.10)
194+
rspec-support (3.13.4)
195+
rubocop (1.79.2)
196+
json (~> 2.3)
197+
language_server-protocol (~> 3.17.0.2)
198+
lint_roller (~> 1.1.0)
199+
parallel (~> 1.10)
200+
parser (>= 3.3.0.2)
201+
rainbow (>= 2.2.2, < 4.0)
202+
regexp_parser (>= 2.9.3, < 3.0)
203+
rubocop-ast (>= 1.46.0, < 2.0)
204+
ruby-progressbar (~> 1.7)
205+
unicode-display_width (>= 2.4.0, < 4.0)
206+
rubocop-ast (1.46.0)
207+
parser (>= 3.3.7.2)
208+
prism (~> 1.4)
209+
ruby-progressbar (1.13.0)
210+
shoulda-matchers (4.5.1)
211+
activesupport (>= 4.2.0)
212+
sprockets (4.2.2)
213+
concurrent-ruby (~> 1.0)
214+
logger
215+
rack (>= 2.2.4, < 4)
216+
sprockets-rails (3.5.2)
217+
actionpack (>= 6.1)
218+
activesupport (>= 6.1)
219+
sprockets (>= 3.0.0)
220+
sqlite3 (1.6.9)
221+
mini_portile2 (~> 2.8.0)
222+
stimulus-rails (1.3.4)
223+
railties (>= 6.0.0)
224+
thor (1.4.0)
225+
timeout (0.4.3)
226+
turbo-rails (2.0.12)
227+
actionpack (>= 6.0.0)
228+
railties (>= 6.0.0)
229+
tzinfo (2.0.6)
230+
concurrent-ruby (~> 1.0)
231+
unicode-display_width (3.1.4)
232+
unicode-emoji (~> 4.0, >= 4.0.4)
233+
unicode-emoji (4.0.4)
234+
websocket-driver (0.8.0)
235+
base64
236+
websocket-extensions (>= 0.1.0)
237+
websocket-extensions (0.1.5)
238+
xpath (3.2.0)
60239
nokogiri (~> 1.8)
240+
zeitwerk (2.7.3)
61241

62242
PLATFORMS
243+
arm64-darwin-24
63244
ruby
64245

65246
DEPENDENCIES
247+
bigdecimal
248+
byebug
66249
capybara
67-
pry
68-
rack-test
69-
rake
70-
require_all
71-
rspec
72-
shotgun
73-
sinatra
74-
thin
250+
fiddle
251+
listen (~> 3.3)
252+
logger
253+
mutex_m
254+
nio4r (~> 2.7)
255+
ostruct
256+
puma (~> 5.0)
257+
rack-cors
258+
rails (~> 6.1.3, >= 6.1.3.1)
259+
rspec-json_expectations
260+
rspec-rails (~> 5.0.0)
261+
rubocop
262+
shoulda-matchers (~> 4.0)
263+
sprockets-rails
264+
sqlite3 (~> 1.6.0)
265+
stimulus-rails
266+
turbo-rails
267+
tzinfo-data
75268

76269
BUNDLED WITH
77-
1.16.1
270+
2.7.1

0 commit comments

Comments
 (0)