Skip to content

Commit a172552

Browse files
committed
Merge remote-tracking branch 'upstream/main' into k
2 parents 1670780 + 404884d commit a172552

28 files changed

+271
-14
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737
/config/credentials/development.key
3838

3939
# mac os be like
40-
.DS_Store
40+
.DS_Store
41+
/app/assets/builds/*
42+
!/app/assets/builds/.keep

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gem "kamal", require: false
3838
gem "thruster", require: false
3939

4040
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
41-
# gem "image_processing", "~> 1.2"
41+
gem "image_processing", "~> 1.2"
4242

4343
group :development, :test do
4444
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
@@ -82,3 +82,9 @@ gem "omniauth"
8282
gem "omniauth-rails_csrf_protection"
8383
gem "omniauth_openid_connect"
8484
gem "slack-ruby-client"
85+
86+
gem "tailwindcss-ruby", "~> 4.1"
87+
88+
gem "tailwindcss-rails", "~> 4.3"
89+
90+
gem "active_storage_validations"

Gemfile.lock

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ GEM
4646
erubi (~> 1.11)
4747
rails-dom-testing (~> 2.2)
4848
rails-html-sanitizer (~> 1.6)
49+
active_storage_validations (3.0.2)
50+
activejob (>= 6.1.4)
51+
activemodel (>= 6.1.4)
52+
activestorage (>= 6.1.4)
53+
activesupport (>= 6.1.4)
54+
marcel (>= 1.0.3)
4955
activejob (8.0.3)
5056
activesupport (= 8.0.3)
5157
globalid (>= 0.3.6)
@@ -153,6 +159,13 @@ GEM
153159
multipart-post (~> 2.0)
154160
faraday-net_http (3.4.1)
155161
net-http (>= 0.5.0)
162+
ffi (1.17.2-aarch64-linux-gnu)
163+
ffi (1.17.2-aarch64-linux-musl)
164+
ffi (1.17.2-arm-linux-gnu)
165+
ffi (1.17.2-arm-linux-musl)
166+
ffi (1.17.2-arm64-darwin)
167+
ffi (1.17.2-x86_64-linux-gnu)
168+
ffi (1.17.2-x86_64-linux-musl)
156169
fiddle (1.1.8)
157170
fugit (1.11.2)
158171
et-orbi (~> 1, >= 1.2.11)
@@ -164,6 +177,9 @@ GEM
164177
hashie (5.0.0)
165178
i18n (1.14.7)
166179
concurrent-ruby (~> 1.0)
180+
image_processing (1.14.0)
181+
mini_magick (>= 4.9.5, < 6)
182+
ruby-vips (>= 2.0.17, < 3)
167183
importmap-rails (2.2.2)
168184
actionpack (>= 6.0.0)
169185
activesupport (>= 6.0.0)
@@ -209,6 +225,8 @@ GEM
209225
net-smtp
210226
marcel (1.1.0)
211227
matrix (0.4.3)
228+
mini_magick (5.3.1)
229+
logger
212230
mini_mime (1.1.5)
213231
minitest (5.26.0)
214232
msgpack (1.8.0)
@@ -392,6 +410,9 @@ GEM
392410
rubocop-performance (>= 1.24)
393411
rubocop-rails (>= 2.30)
394412
ruby-progressbar (1.13.0)
413+
ruby-vips (2.2.5)
414+
ffi (~> 1.12)
415+
logger
395416
rubyzip (3.1.1)
396417
securerandom (0.4.1)
397418
selenium-webdriver (4.35.0)
@@ -439,6 +460,15 @@ GEM
439460
attr_required (>= 0.0.5)
440461
faraday (~> 2.0)
441462
faraday-follow_redirects
463+
tailwindcss-rails (4.3.0)
464+
railties (>= 7.0.0)
465+
tailwindcss-ruby (~> 4.0)
466+
tailwindcss-ruby (4.1.13)
467+
tailwindcss-ruby (4.1.13-aarch64-linux-gnu)
468+
tailwindcss-ruby (4.1.13-aarch64-linux-musl)
469+
tailwindcss-ruby (4.1.13-arm64-darwin)
470+
tailwindcss-ruby (4.1.13-x86_64-linux-gnu)
471+
tailwindcss-ruby (4.1.13-x86_64-linux-musl)
442472
thor (1.4.0)
443473
thruster (0.1.15)
444474
thruster (0.1.15-aarch64-linux)
@@ -492,6 +522,7 @@ PLATFORMS
492522

493523
DEPENDENCIES
494524
aasm
525+
active_storage_validations
495526
annotaterb
496527
blind_index
497528
bootsnap
@@ -500,6 +531,7 @@ DEPENDENCIES
500531
capybara
501532
debug
502533
erb_lint
534+
image_processing (~> 1.2)
503535
importmap-rails
504536
jbuilder
505537
kamal
@@ -522,6 +554,8 @@ DEPENDENCIES
522554
solid_cache
523555
solid_queue
524556
stimulus-rails
557+
tailwindcss-rails (~> 4.3)
558+
tailwindcss-ruby (~> 4.1)
525559
thruster
526560
turbo-rails
527561
tzinfo-data

Procfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web: bin/rails server
2+
css: bin/rails tailwindcss:watch

app/assets/builds/.keep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tailwindcss";
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Project::MembershipsController < ApplicationController
2+
def create
3+
end
4+
5+
def destroy
6+
end
7+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class ProjectsController < ApplicationController
2+
def show
3+
authorize @project
4+
end
5+
6+
def new
7+
authorize @project
8+
end
9+
10+
def create
11+
authorize @project
12+
end
13+
14+
def edit
15+
authorize @project
16+
end
17+
18+
def update
19+
authorize @project
20+
end
21+
22+
def destroy
23+
authorize @project
24+
end
25+
end

app/controllers/sessions_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def create
2626
reset_session
2727
session[:user_id] = user.id
2828
redirect_to root_path, notice: "Signed in with Slack"
29-
nil
29+
else
30+
redirect_to root_path, alert: "Authentication failed or user already signed in"
3031
end
3132
end
3233

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module Project::MembershipsHelper
2+
end

0 commit comments

Comments
 (0)