Skip to content

Commit e89529b

Browse files
authored
Make it work for Rails 7 (#4)
Gets the basics working for Rails 7.
1 parent d22e030 commit e89529b

Some content is hidden

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

65 files changed

+1304
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.gems
55
.rbenv-version
66
.ruby-*
7-
/.idea/
7+
.idea/
88
/.rbx
99
/.rvmrc
1010
/.yardoc/*

annotaterb.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
Annotates Rails/ActiveRecord Models, routes, fixtures, and others based on the database schema.
1212
DESCRIPTION
1313
spec.homepage = "https://github.com/drwl/annotaterb"
14-
spec.license = "2-clause BSDL"
14+
spec.license = "BSD-2-Clause"
1515
spec.required_ruby_version = ">= 2.7.0"
1616

1717
spec.metadata["homepage_uri"] = spec.homepage

dummyapp/.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark any vendored files as having been vendored.
7+
vendor/* linguist-vendored

dummyapp/.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-*
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore pidfiles, but keep the directory.
21+
/tmp/pids/*
22+
!/tmp/pids/
23+
!/tmp/pids/.keep
24+
25+
26+
/public/assets
27+
28+
# Ignore master key for decrypting credentials and more.
29+
/config/master.key

dummyapp/Gemfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby "3.0.5"
5+
6+
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7+
gem "rails", "~> 7.0.4", ">= 7.0.4.2"
8+
9+
# Use sqlite3 as the database for Active Record
10+
gem "sqlite3", "~> 1.4"
11+
12+
# Use the Puma web server [https://github.com/puma/puma]
13+
gem "puma", "~> 5.0"
14+
15+
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
16+
# gem "kredis"
17+
18+
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
19+
# gem "bcrypt", "~> 3.1.7"
20+
21+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
22+
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
23+
24+
# Reduces boot times through caching; required in config/boot.rb
25+
gem "bootsnap", require: false
26+
27+
group :development, :test do
28+
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
29+
gem "debug", platforms: %i[ mri mingw x64_mingw ]
30+
end
31+
32+
group :development do
33+
# Use console on exceptions pages [https://github.com/rails/web-console]
34+
gem "web-console"
35+
36+
gem "annotaterb", path: "../"
37+
38+
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
39+
# gem "rack-mini-profiler"
40+
41+
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
42+
# gem "spring"
43+
end
44+

dummyapp/Gemfile.lock

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
annotaterb (4.0.0)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
actioncable (7.0.4.2)
10+
actionpack (= 7.0.4.2)
11+
activesupport (= 7.0.4.2)
12+
nio4r (~> 2.0)
13+
websocket-driver (>= 0.6.1)
14+
actionmailbox (7.0.4.2)
15+
actionpack (= 7.0.4.2)
16+
activejob (= 7.0.4.2)
17+
activerecord (= 7.0.4.2)
18+
activestorage (= 7.0.4.2)
19+
activesupport (= 7.0.4.2)
20+
mail (>= 2.7.1)
21+
net-imap
22+
net-pop
23+
net-smtp
24+
actionmailer (7.0.4.2)
25+
actionpack (= 7.0.4.2)
26+
actionview (= 7.0.4.2)
27+
activejob (= 7.0.4.2)
28+
activesupport (= 7.0.4.2)
29+
mail (~> 2.5, >= 2.5.4)
30+
net-imap
31+
net-pop
32+
net-smtp
33+
rails-dom-testing (~> 2.0)
34+
actionpack (7.0.4.2)
35+
actionview (= 7.0.4.2)
36+
activesupport (= 7.0.4.2)
37+
rack (~> 2.0, >= 2.2.0)
38+
rack-test (>= 0.6.3)
39+
rails-dom-testing (~> 2.0)
40+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
41+
actiontext (7.0.4.2)
42+
actionpack (= 7.0.4.2)
43+
activerecord (= 7.0.4.2)
44+
activestorage (= 7.0.4.2)
45+
activesupport (= 7.0.4.2)
46+
globalid (>= 0.6.0)
47+
nokogiri (>= 1.8.5)
48+
actionview (7.0.4.2)
49+
activesupport (= 7.0.4.2)
50+
builder (~> 3.1)
51+
erubi (~> 1.4)
52+
rails-dom-testing (~> 2.0)
53+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
54+
activejob (7.0.4.2)
55+
activesupport (= 7.0.4.2)
56+
globalid (>= 0.3.6)
57+
activemodel (7.0.4.2)
58+
activesupport (= 7.0.4.2)
59+
activerecord (7.0.4.2)
60+
activemodel (= 7.0.4.2)
61+
activesupport (= 7.0.4.2)
62+
activestorage (7.0.4.2)
63+
actionpack (= 7.0.4.2)
64+
activejob (= 7.0.4.2)
65+
activerecord (= 7.0.4.2)
66+
activesupport (= 7.0.4.2)
67+
marcel (~> 1.0)
68+
mini_mime (>= 1.1.0)
69+
activesupport (7.0.4.2)
70+
concurrent-ruby (~> 1.0, >= 1.0.2)
71+
i18n (>= 1.6, < 2)
72+
minitest (>= 5.1)
73+
tzinfo (~> 2.0)
74+
bindex (0.8.1)
75+
bootsnap (1.16.0)
76+
msgpack (~> 1.2)
77+
builder (3.2.4)
78+
concurrent-ruby (1.2.0)
79+
crass (1.0.6)
80+
date (3.3.3)
81+
debug (1.7.1)
82+
irb (>= 1.5.0)
83+
reline (>= 0.3.1)
84+
erubi (1.12.0)
85+
globalid (1.1.0)
86+
activesupport (>= 5.0)
87+
i18n (1.12.0)
88+
concurrent-ruby (~> 1.0)
89+
io-console (0.6.0)
90+
irb (1.6.2)
91+
reline (>= 0.3.0)
92+
loofah (2.19.1)
93+
crass (~> 1.0.2)
94+
nokogiri (>= 1.5.9)
95+
mail (2.8.1)
96+
mini_mime (>= 0.1.1)
97+
net-imap
98+
net-pop
99+
net-smtp
100+
marcel (1.0.2)
101+
method_source (1.0.0)
102+
mini_mime (1.1.2)
103+
minitest (5.17.0)
104+
msgpack (1.6.0)
105+
net-imap (0.3.4)
106+
date
107+
net-protocol
108+
net-pop (0.1.2)
109+
net-protocol
110+
net-protocol (0.2.1)
111+
timeout
112+
net-smtp (0.3.3)
113+
net-protocol
114+
nio4r (2.5.8)
115+
nokogiri (1.14.1-arm64-darwin)
116+
racc (~> 1.4)
117+
puma (5.6.5)
118+
nio4r (~> 2.0)
119+
racc (1.6.2)
120+
rack (2.2.6.2)
121+
rack-test (2.0.2)
122+
rack (>= 1.3)
123+
rails (7.0.4.2)
124+
actioncable (= 7.0.4.2)
125+
actionmailbox (= 7.0.4.2)
126+
actionmailer (= 7.0.4.2)
127+
actionpack (= 7.0.4.2)
128+
actiontext (= 7.0.4.2)
129+
actionview (= 7.0.4.2)
130+
activejob (= 7.0.4.2)
131+
activemodel (= 7.0.4.2)
132+
activerecord (= 7.0.4.2)
133+
activestorage (= 7.0.4.2)
134+
activesupport (= 7.0.4.2)
135+
bundler (>= 1.15.0)
136+
railties (= 7.0.4.2)
137+
rails-dom-testing (2.0.3)
138+
activesupport (>= 4.2.0)
139+
nokogiri (>= 1.6)
140+
rails-html-sanitizer (1.5.0)
141+
loofah (~> 2.19, >= 2.19.1)
142+
railties (7.0.4.2)
143+
actionpack (= 7.0.4.2)
144+
activesupport (= 7.0.4.2)
145+
method_source
146+
rake (>= 12.2)
147+
thor (~> 1.0)
148+
zeitwerk (~> 2.5)
149+
rake (13.0.6)
150+
reline (0.3.2)
151+
io-console (~> 0.5)
152+
sqlite3 (1.6.0-arm64-darwin)
153+
thor (1.2.1)
154+
timeout (0.3.1)
155+
tzinfo (2.0.6)
156+
concurrent-ruby (~> 1.0)
157+
web-console (4.2.0)
158+
actionview (>= 6.0.0)
159+
activemodel (>= 6.0.0)
160+
bindex (>= 0.4.0)
161+
railties (>= 6.0.0)
162+
websocket-driver (0.7.5)
163+
websocket-extensions (>= 0.1.0)
164+
websocket-extensions (0.1.5)
165+
zeitwerk (2.6.7)
166+
167+
PLATFORMS
168+
arm64-darwin-22
169+
170+
DEPENDENCIES
171+
annotaterb!
172+
bootsnap
173+
debug
174+
puma (~> 5.0)
175+
rails (~> 7.0.4, >= 7.0.4.2)
176+
sqlite3 (~> 1.4)
177+
tzinfo-data
178+
web-console
179+
180+
RUBY VERSION
181+
ruby 3.0.5p211
182+
183+
BUNDLED WITH
184+
2.2.33

dummyapp/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

dummyapp/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative "config/application"
5+
6+
Rails.application.load_tasks

dummyapp/app/assets/images/.keep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Application styles */

0 commit comments

Comments
 (0)