Skip to content

Commit 274cbe9

Browse files
committed
Add Rails 6.1 application for Ruby 2.6
1 parent 7a68587 commit 274cbe9

File tree

55 files changed

+1257
-2
lines changed

Some content is hidden

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

55 files changed

+1257
-2
lines changed
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
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.10
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '>= 2.6.0'
5+
6+
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7+
gem "rails", "~> 6.1.7"
8+
9+
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
10+
gem "sprockets-rails"
11+
12+
# Use sqlite3 as the database for Active Record
13+
gem "sqlite3", "~> 1.4"
14+
15+
# Use the Puma web server [https://github.com/puma/puma]
16+
gem "puma", "~> 5.0"
17+
18+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
19+
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
20+
21+
# Reduces boot times through caching; required in config/boot.rb
22+
gem "bootsnap", ">= 1.4.4", require: false
23+
24+
group :development, :test do
25+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
26+
gem "byebug", platforms: %i[ mri mingw x64_mingw ]
27+
end
28+
29+
group :development do
30+
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
31+
# gem "spring"
32+
end
33+
34+
# See: https://stackoverflow.com/a/79361034
35+
gem 'concurrent-ruby', '1.3.4'
36+
37+
# Needed by ActiveSupport::EventedFileUpdateChecker
38+
gem 'listen'
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
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+
base64 (0.3.0)
64+
bootsnap (1.19.0)
65+
msgpack (~> 1.2)
66+
builder (3.3.0)
67+
byebug (11.1.3)
68+
concurrent-ruby (1.3.4)
69+
crass (1.0.6)
70+
date (3.5.0)
71+
date (3.5.0-java)
72+
erubi (1.13.1)
73+
ffi (1.17.2)
74+
ffi (1.17.2-aarch64-linux-gnu)
75+
ffi (1.17.2-arm64-darwin)
76+
ffi (1.17.2-java)
77+
ffi (1.17.2-x86_64-darwin)
78+
ffi (1.17.2-x86_64-linux-gnu)
79+
globalid (1.2.1)
80+
activesupport (>= 6.1)
81+
i18n (1.14.7)
82+
concurrent-ruby (~> 1.0)
83+
listen (3.9.0)
84+
rb-fsevent (~> 0.10, >= 0.10.3)
85+
rb-inotify (~> 0.9, >= 0.9.10)
86+
logger (1.7.0)
87+
loofah (2.24.1)
88+
crass (~> 1.0.2)
89+
nokogiri (>= 1.12.0)
90+
mail (2.9.0)
91+
logger
92+
mini_mime (>= 0.1.1)
93+
net-imap
94+
net-pop
95+
net-smtp
96+
marcel (1.1.0)
97+
method_source (1.1.0)
98+
mini_mime (1.1.5)
99+
mini_portile2 (2.8.9)
100+
minitest (5.25.4)
101+
msgpack (1.8.0)
102+
msgpack (1.8.0-java)
103+
net-imap (0.3.9)
104+
date
105+
net-protocol
106+
net-pop (0.1.2)
107+
net-protocol
108+
net-protocol (0.2.2)
109+
timeout
110+
net-smtp (0.5.1)
111+
net-protocol
112+
nio4r (2.7.5)
113+
nio4r (2.7.5-java)
114+
nokogiri (1.13.10)
115+
mini_portile2 (~> 2.8.0)
116+
racc (~> 1.4)
117+
nokogiri (1.13.10-aarch64-linux)
118+
racc (~> 1.4)
119+
nokogiri (1.13.10-arm64-darwin)
120+
racc (~> 1.4)
121+
nokogiri (1.13.10-java)
122+
racc (~> 1.4)
123+
nokogiri (1.13.10-x86_64-darwin)
124+
racc (~> 1.4)
125+
nokogiri (1.13.10-x86_64-linux)
126+
racc (~> 1.4)
127+
puma (5.6.9)
128+
nio4r (~> 2.0)
129+
puma (5.6.9-java)
130+
nio4r (~> 2.0)
131+
racc (1.8.1)
132+
racc (1.8.1-java)
133+
rack (2.2.21)
134+
rack-test (2.2.0)
135+
rack (>= 1.3)
136+
rails (6.1.7.10)
137+
actioncable (= 6.1.7.10)
138+
actionmailbox (= 6.1.7.10)
139+
actionmailer (= 6.1.7.10)
140+
actionpack (= 6.1.7.10)
141+
actiontext (= 6.1.7.10)
142+
actionview (= 6.1.7.10)
143+
activejob (= 6.1.7.10)
144+
activemodel (= 6.1.7.10)
145+
activerecord (= 6.1.7.10)
146+
activestorage (= 6.1.7.10)
147+
activesupport (= 6.1.7.10)
148+
bundler (>= 1.15.0)
149+
railties (= 6.1.7.10)
150+
sprockets-rails (>= 2.0.0)
151+
rails-dom-testing (2.3.0)
152+
activesupport (>= 5.0.0)
153+
minitest
154+
nokogiri (>= 1.6)
155+
rails-html-sanitizer (1.5.0)
156+
loofah (~> 2.19, >= 2.19.1)
157+
railties (6.1.7.10)
158+
actionpack (= 6.1.7.10)
159+
activesupport (= 6.1.7.10)
160+
method_source
161+
rake (>= 12.2)
162+
thor (~> 1.0)
163+
rake (13.3.1)
164+
rb-fsevent (0.11.2)
165+
rb-inotify (0.11.1)
166+
ffi (~> 1.0)
167+
sprockets (4.2.2)
168+
concurrent-ruby (~> 1.0)
169+
logger
170+
rack (>= 2.2.4, < 4)
171+
sprockets-rails (3.5.2)
172+
actionpack (>= 6.1)
173+
activesupport (>= 6.1)
174+
sprockets (>= 3.0.0)
175+
sqlite3 (1.6.9)
176+
mini_portile2 (~> 2.8.0)
177+
thor (1.4.0)
178+
timeout (0.4.4)
179+
tzinfo (2.0.6)
180+
concurrent-ruby (~> 1.0)
181+
tzinfo-data (1.2025.2)
182+
tzinfo (>= 1.0.0)
183+
websocket-driver (0.8.0)
184+
base64
185+
websocket-extensions (>= 0.1.0)
186+
websocket-driver (0.8.0-java)
187+
base64
188+
websocket-extensions (>= 0.1.0)
189+
websocket-extensions (0.1.5)
190+
zeitwerk (2.6.18)
191+
192+
PLATFORMS
193+
aarch64-linux
194+
arm64-darwin
195+
java
196+
ruby
197+
x86_64-darwin
198+
x86_64-linux
199+
200+
DEPENDENCIES
201+
bootsnap (>= 1.4.4)
202+
byebug
203+
concurrent-ruby (= 1.3.4)
204+
listen
205+
puma (~> 5.0)
206+
rails (~> 6.1.7)
207+
sprockets-rails
208+
sqlite3 (~> 1.4)
209+
tzinfo-data
210+
211+
RUBY VERSION
212+
ruby 2.6.10p210
213+
214+
BUNDLED WITH
215+
2.4.22
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# README
2+
3+
This is a Rails 6.1 application for testing library injection with Ruby 2.6+.
4+
5+
## Ruby version
6+
7+
* Ruby 2.6.0 or higher
8+
9+
## Rails version
10+
11+
* Rails ~> 6.1.7
12+
13+
## System dependencies
14+
15+
* SQLite3
16+
17+
## Configuration
18+
19+
This is a minimal Rails application configured for testing purposes.
20+
21+
## Database creation
22+
23+
```bash
24+
bin/rails db:create
25+
```
26+
27+
## Database initialization
28+
29+
```bash
30+
bin/rails db:migrate
31+
```
32+
33+
## How to run the test suite
34+
35+
```bash
36+
bin/rails test
37+
```
38+
39+
## Services
40+
41+
This application uses:
42+
* Puma web server
43+
* SQLite3 database
44+
45+
## Deployment instructions
46+
47+
This application is intended for testing and development purposes only.
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
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

lib-injection/build/docker/ruby/lib_injection_rails61_app/app/assets/images/.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, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
6+
* 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
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+
*/

0 commit comments

Comments
 (0)