Skip to content

Commit 0385233

Browse files
Initial commit
0 parents  commit 0385233

36 files changed

+859
-0
lines changed

.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

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore pidfiles, but keep the directory.
17+
/tmp/pids/*
18+
!/tmp/pids/
19+
!/tmp/pids/.keep
20+
21+
22+
# Ignore master key for decrypting credentials and more.
23+
/config/master.key

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.1

Gemfile

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

Gemfile.lock

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

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
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::API
2+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/models/application_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
primary_abstract_class
3+
end

app/models/concerns/.keep

Whitespace-only changes.

bin/bundle

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bundle' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "rubygems"
12+
13+
m = Module.new do
14+
module_function
15+
16+
def invoked_as_script?
17+
File.expand_path($0) == File.expand_path(__FILE__)
18+
end
19+
20+
def env_var_version
21+
ENV["BUNDLER_VERSION"]
22+
end
23+
24+
def cli_arg_version
25+
return unless invoked_as_script? # don't want to hijack other binstubs
26+
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27+
bundler_version = nil
28+
update_index = nil
29+
ARGV.each_with_index do |a, i|
30+
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31+
bundler_version = a
32+
end
33+
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34+
bundler_version = $1
35+
update_index = i
36+
end
37+
bundler_version
38+
end
39+
40+
def gemfile
41+
gemfile = ENV["BUNDLE_GEMFILE"]
42+
return gemfile if gemfile && !gemfile.empty?
43+
44+
File.expand_path("../Gemfile", __dir__)
45+
end
46+
47+
def lockfile
48+
lockfile =
49+
case File.basename(gemfile)
50+
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51+
else "#{gemfile}.lock"
52+
end
53+
File.expand_path(lockfile)
54+
end
55+
56+
def lockfile_version
57+
return unless File.file?(lockfile)
58+
lockfile_contents = File.read(lockfile)
59+
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60+
Regexp.last_match(1)
61+
end
62+
63+
def bundler_requirement
64+
@bundler_requirement ||=
65+
env_var_version || cli_arg_version ||
66+
bundler_requirement_for(lockfile_version)
67+
end
68+
69+
def bundler_requirement_for(version)
70+
return "#{Gem::Requirement.default}.a" unless version
71+
72+
bundler_gem_version = Gem::Version.new(version)
73+
74+
requirement = bundler_gem_version.approximate_recommendation
75+
76+
return requirement unless Gem.rubygems_version < Gem::Version.new("2.7.0")
77+
78+
requirement += ".a" if bundler_gem_version.prerelease?
79+
80+
requirement
81+
end
82+
83+
def load_bundler!
84+
ENV["BUNDLE_GEMFILE"] ||= gemfile
85+
86+
activate_bundler
87+
end
88+
89+
def activate_bundler
90+
gem_error = activation_error_handling do
91+
gem "bundler", bundler_requirement
92+
end
93+
return if gem_error.nil?
94+
require_error = activation_error_handling do
95+
require "bundler/version"
96+
end
97+
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98+
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99+
exit 42
100+
end
101+
102+
def activation_error_handling
103+
yield
104+
nil
105+
rescue StandardError, LoadError => e
106+
e
107+
end
108+
end
109+
110+
m.load_bundler!
111+
112+
if m.invoked_as_script?
113+
load Gem.bin_path("bundler", "bundle")
114+
end

bin/rails

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
APP_PATH = File.expand_path("../config/application", __dir__)
3+
require_relative "../config/boot"
4+
require "rails/commands"

bin/rake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
require_relative "../config/boot"
3+
require "rake"
4+
Rake.application.run

0 commit comments

Comments
 (0)