Skip to content

Commit cb02a06

Browse files
Initial commit: StackRuby, un clon 100 funcional de StackOverflow
0 parents  commit cb02a06

110 files changed

Lines changed: 2519 additions & 0 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
7+
# Mark any vendored files as having been vendored.
8+
vendor/* linguist-vendored

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
.byebug_history
28+
29+
# Ignore master key for decrypting credentials and more.
30+
/config/master.key
31+
32+
# --- Configuración añadida para StackRuby (GPLv2) ---
33+
# Ignorar dependencias locales instaladas en producción/desarrollo
34+
/vendor/bundle
35+
/vendor/ruby/
36+
37+
# Ignorar archivos locales ocultos y de configuración
38+
.env
39+
.env.*
40+
.cache
41+
.DS_Store
42+
/.idea
43+
/.vscode

.ruby-version

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

Gemfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.2.3'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 6.1.7', '>= 6.1.7.3'
8+
# Use sqlite3 as the database for Active Record
9+
gem 'sqlite3', '~> 1.4'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 6.0'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '>= 6'
14+
# Use Active Model has_secure_password
15+
gem 'bcrypt', '~> 3.1.7'
16+
17+
group :development, :test do
18+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
19+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
20+
end
21+
22+
group :development do
23+
gem 'listen', '~> 3.3'
24+
end
25+
26+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
27+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
28+
gem 'logger'

Gemfile.lock

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
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+
bcrypt (3.1.22)
65+
builder (3.3.0)
66+
byebug (13.0.0)
67+
reline (>= 0.6.0)
68+
concurrent-ruby (1.3.6)
69+
crass (1.0.6)
70+
date (3.5.1)
71+
drb (2.2.3)
72+
erubi (1.13.1)
73+
ffi (1.17.4-x86_64-linux-gnu)
74+
globalid (1.3.0)
75+
activesupport (>= 6.1)
76+
i18n (1.14.8)
77+
concurrent-ruby (~> 1.0)
78+
io-console (0.8.2)
79+
listen (3.10.0)
80+
logger
81+
rb-fsevent (~> 0.10, >= 0.10.3)
82+
rb-inotify (~> 0.9, >= 0.9.10)
83+
logger (1.7.0)
84+
loofah (2.25.1)
85+
crass (~> 1.0.2)
86+
nokogiri (>= 1.12.0)
87+
mail (2.9.0)
88+
logger
89+
mini_mime (>= 0.1.1)
90+
net-imap
91+
net-pop
92+
net-smtp
93+
marcel (1.2.1)
94+
method_source (1.1.0)
95+
mini_mime (1.1.5)
96+
minitest (6.0.6)
97+
drb (~> 2.0)
98+
prism (~> 1.5)
99+
net-imap (0.6.4.1)
100+
date
101+
net-protocol
102+
net-pop (0.1.2)
103+
net-protocol
104+
net-protocol (0.2.2)
105+
timeout
106+
net-smtp (0.5.1)
107+
net-protocol
108+
nio4r (2.7.5)
109+
nokogiri (1.19.3-x86_64-linux-gnu)
110+
racc (~> 1.4)
111+
prism (1.9.0)
112+
puma (6.6.1)
113+
nio4r (~> 2.0)
114+
racc (1.8.1)
115+
rack (2.2.23)
116+
rack-test (2.2.0)
117+
rack (>= 1.3)
118+
rails (6.1.7.10)
119+
actioncable (= 6.1.7.10)
120+
actionmailbox (= 6.1.7.10)
121+
actionmailer (= 6.1.7.10)
122+
actionpack (= 6.1.7.10)
123+
actiontext (= 6.1.7.10)
124+
actionview (= 6.1.7.10)
125+
activejob (= 6.1.7.10)
126+
activemodel (= 6.1.7.10)
127+
activerecord (= 6.1.7.10)
128+
activestorage (= 6.1.7.10)
129+
activesupport (= 6.1.7.10)
130+
bundler (>= 1.15.0)
131+
railties (= 6.1.7.10)
132+
sprockets-rails (>= 2.0.0)
133+
rails-dom-testing (2.3.0)
134+
activesupport (>= 5.0.0)
135+
minitest
136+
nokogiri (>= 1.6)
137+
rails-html-sanitizer (1.7.0)
138+
loofah (~> 2.25)
139+
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)
140+
railties (6.1.7.10)
141+
actionpack (= 6.1.7.10)
142+
activesupport (= 6.1.7.10)
143+
method_source
144+
rake (>= 12.2)
145+
thor (~> 1.0)
146+
rake (13.4.2)
147+
rb-fsevent (0.11.2)
148+
rb-inotify (0.11.1)
149+
ffi (~> 1.0)
150+
reline (0.6.3)
151+
io-console (~> 0.5)
152+
sass-rails (6.0.0)
153+
sassc-rails (~> 2.1, >= 2.1.1)
154+
sassc (2.4.0)
155+
ffi (~> 1.9)
156+
sassc-rails (2.1.2)
157+
railties (>= 4.0.0)
158+
sassc (>= 2.0)
159+
sprockets (> 3.0)
160+
sprockets-rails
161+
tilt
162+
sprockets (4.2.2)
163+
concurrent-ruby (~> 1.0)
164+
logger
165+
rack (>= 2.2.4, < 4)
166+
sprockets-rails (3.5.2)
167+
actionpack (>= 6.1)
168+
activesupport (>= 6.1)
169+
sprockets (>= 3.0.0)
170+
sqlite3 (1.7.3-x86_64-linux)
171+
thor (1.5.0)
172+
tilt (2.7.0)
173+
timeout (0.6.1)
174+
tzinfo (2.0.6)
175+
concurrent-ruby (~> 1.0)
176+
websocket-driver (0.8.1)
177+
base64
178+
websocket-extensions (>= 0.1.0)
179+
websocket-extensions (0.1.5)
180+
zeitwerk (2.8.2)
181+
182+
PLATFORMS
183+
x86_64-linux-gnu
184+
185+
DEPENDENCIES
186+
bcrypt (~> 3.1.7)
187+
byebug
188+
listen (~> 3.3)
189+
logger
190+
puma (~> 6.0)
191+
rails (~> 6.1.7, >= 6.1.7.3)
192+
sass-rails (>= 6)
193+
sqlite3 (~> 1.4)
194+
tzinfo-data
195+
196+
RUBY VERSION
197+
ruby 3.2.3p157
198+
199+
BUNDLED WITH
200+
2.4.20

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+
* ...

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

app/assets/config/manifest.js

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

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 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/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+
*/

0 commit comments

Comments
 (0)