Compare commits
348 Commits
thirteen-w
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b52d384152 | |||
| ef3cffb107 | |||
| 0e09bded3f | |||
| c74323a855 | |||
| 41506fa3e9 | |||
| e9e684f67d | |||
| 901b4bab5e | |||
| 87bb7bb12f | |||
| 7c828d9799 | |||
| 00dcf1c6e5 | |||
| 3525a35c36 | |||
| bf118277f3 | |||
| 74403c0ee2 | |||
| afe858ade9 | |||
| 4ae78edc49 | |||
| 49883bcdbf | |||
| 3f3cee4df8 | |||
| 042c07f026 | |||
| 75cfd7c4c0 | |||
| 0c75a358fd | |||
| 0cb2fb1dce | |||
| d68b1f8025 | |||
| 12193503c2 | |||
| 331389d8eb | |||
| 80c0c5d882 | |||
| 0639740344 | |||
| 3719c7acf9 | |||
| 92b65a9101 | |||
| 448fa1a0b3 | |||
| 977214d102 | |||
| d720367521 | |||
| f4148602a3 | |||
| c386d5b271 | |||
| 94deb14d7e | |||
| ddf50b8266 | |||
| 015e6dc520 | |||
| 50b2d3c666 | |||
| a6ddfcac24 | |||
| 1faee1d530 | |||
| cb38b5ad8a | |||
| 3725b7a476 | |||
| 1f7ea47d1f | |||
| 1e2d55e02e | |||
| 5dfcab4538 | |||
| 14a5fb5a10 | |||
| 7c12582387 | |||
| b8f7e56aa9 | |||
| d7b0d832bd | |||
| 37fd707b24 | |||
| 7410fb8f03 | |||
| d1f1fbbfc2 | |||
| 8eaeb04afa | |||
| d7ed683dbe | |||
| 2d5f08fc49 | |||
| 1df60730f3 | |||
| 1962224aae | |||
| dae38f52d0 | |||
| fadc9b230b | |||
| a3fb1a22fc | |||
| 76d392998e | |||
| 9388c87477 | |||
| a59ab6cf03 | |||
| c583ee7f32 | |||
| 6480644923 | |||
| eeced4eccb | |||
| e18cd8c76d | |||
| 363986d4fd | |||
| dd9872bd4a | |||
| 499e46a468 | |||
| 58da926c87 | |||
| de3cffbc9e | |||
| 44f75490a0 | |||
| 11077b1dc4 | |||
| e920a8feb9 | |||
| bbb152fa5d | |||
| e5ad663e50 | |||
| 60318bdbf5 | |||
| 1cfc23a683 | |||
| f9ad8257f2 | |||
| 067af6f877 | |||
| 28ed4c1a86 | |||
| de5961e602 | |||
| cc102a5e2b | |||
| 0114233f59 | |||
| 24e346ce60 | |||
| e13ba15989 | |||
| 3418d9b7d1 | |||
| ba7aa67f07 | |||
| 3368617fb3 | |||
| 768f89eecf | |||
| f3739754b5 | |||
| 40438b4ea4 | |||
| cf22312f2d | |||
| 3a18d741c2 | |||
| 3ba380e63b | |||
| 669df703aa | |||
| e8d66e5243 | |||
| e999470b72 | |||
| e8599242ee | |||
| d3481526a2 | |||
| 65e68b3555 | |||
| 35fbf649fe | |||
| 2936cb33e1 | |||
| 4bd3fdb361 | |||
| 9879c8d239 | |||
| a155b83a1b | |||
| 6ab972ed38 | |||
| 4ff1dcf179 | |||
| 0319932f28 | |||
| 9f48f3aaa9 | |||
| 9b20545578 | |||
| 6f24e84a25 | |||
| 3e589b4a26 | |||
| 0dc4fc1121 | |||
| 138d6050db | |||
| 3bf5a82e86 | |||
| 5cdc00206c | |||
| a71010bf9f | |||
| fd0c70f217 | |||
| 19f416e9b7 | |||
| 049149fd28 | |||
| afcadd2a26 | |||
| 22bcbb5961 | |||
| a430b41c8a | |||
| 5495f38ae2 | |||
| 8d89ff9cc0 | |||
| adee6dcfd6 | |||
| 9836aab757 | |||
| d04ff35533 | |||
| 5a4f314aab | |||
| a8fea8314f | |||
| a7f01374fd | |||
| 5f0658b750 | |||
| 02bd25b724 | |||
| 2b62269638 | |||
| c66ba3caac | |||
| 32013a4e51 | |||
| cd83e39d64 | |||
| eb0a131403 | |||
| 39d1a5d6f9 | |||
| 0105134a7f | |||
| bf0e558bdd | |||
| bdf63fbbd9 | |||
| 2fc6245a50 | |||
| dccc356561 | |||
| 2d0b3205d9 | |||
| 929c98bb14 | |||
| 43a71faddf | |||
| 79b3b21aba | |||
| c661d85727 | |||
| f098c7b529 | |||
| a96ed295e4 | |||
| 0d3d2ed5b0 | |||
| 59fb2ab3e6 | |||
| 145b63551d | |||
| 28c41a0c6b | |||
| 3fb775fa35 | |||
| cd6914198b | |||
| a71e4523d1 | |||
| f621b90bd9 | |||
| 184f26718b | |||
| 2fc656c053 | |||
| 47d63306ba | |||
| 824795f620 | |||
| 6063b3e083 | |||
| 46fa3c712d | |||
| d7ed50c5a4 | |||
| b378f2a93d | |||
| cf45d8c38c | |||
| 108d5882a5 | |||
| c568d35d47 | |||
| 18d386a337 | |||
| c37157781f | |||
| 327028f3a3 | |||
| f064add019 | |||
| 48356ecd3b | |||
| 9445656565 | |||
| b63246e6f6 | |||
| e2e1741a1c | |||
| 924e514ad2 | |||
| 799b8e4ae6 | |||
| 3c24b0212a | |||
| 60435e06a9 | |||
| d2eb76b855 | |||
| b7576482c9 | |||
| 0db111a43d | |||
| b806737181 | |||
| 0620472638 | |||
| b1c6ef71ed | |||
| 4eae32da35 | |||
| 0a017b6197 | |||
| b1640e25ce | |||
| d8cde29c81 | |||
| 1dbd9c887a | |||
| d9645d990c | |||
| 8e2cbb6146 | |||
| 468268c049 | |||
| c684832726 | |||
| 163f681fa1 | |||
| 950f487a9c | |||
| d0aef1f0fb | |||
| ac4285ac15 | |||
| 986664ca82 | |||
| 19a450b1fe | |||
| 301830323f | |||
| d7ceb08d53 | |||
| 63a9cf946b | |||
| feba35eb43 | |||
| ae03f0720f | |||
| af4e97e102 | |||
| 54eccc469a | |||
| 2d8972a9cd | |||
| eb21f11bcb | |||
| 6ccbc22cb2 | |||
| 47939d6590 | |||
| 5563194cac | |||
| c237a03316 | |||
| 86ca66d02f | |||
| 89cd4d9795 | |||
| 01e4bbcf1e | |||
| 570f5ee176 | |||
| 0bfa0cd003 | |||
| dd94041ead | |||
| 336ba03e13 | |||
| adb8d2fa92 | |||
| bdce615cac | |||
| 4d81e9e076 | |||
| 35552c1e1f | |||
| df66a535d8 | |||
| d728b2b85d | |||
| 436b227600 | |||
| 90c2f3172d | |||
| 2a088661a1 | |||
| 72a26675b5 | |||
| bd76b33038 | |||
| 3ee699aa4d | |||
| 27af043720 | |||
| ab42853cc1 | |||
| ef1704d24c | |||
| cbcd4caaea | |||
| a056762208 | |||
| 1627be37ce | |||
| 041f7c6163 | |||
| 7c77ee7688 | |||
| 726fab89aa | |||
| a2e20659ac | |||
| 37fa81aa0a | |||
| 16c4ca936d | |||
| d305d256d1 | |||
| 65b7c90722 | |||
| dc58e28520 | |||
| b920410af6 | |||
| 3d3bd2d70e | |||
| fad9c4534a | |||
| b2d13e5856 | |||
| 05cdf854b7 | |||
| e8bd50aacb | |||
| caab453d64 | |||
| 172b682389 | |||
| e8417c23f7 | |||
| d9fc82d62b | |||
| 61cbb753aa | |||
| 398a811810 | |||
| 6b720d83c9 | |||
| 5e63580be8 | |||
| 4ebe60d104 | |||
| 8b5ebc7f7e | |||
| a13dafc3c5 | |||
| 1d7a46f764 | |||
| 0e825aca15 | |||
| 4503d117d6 | |||
| aef7f19d6d | |||
| b6faf01c06 | |||
| 23d8b5a1e9 | |||
| 51cb6b4d56 | |||
| c49316e348 | |||
| f5f4845ac2 | |||
| 3c2b1f4990 | |||
| 99ac2d4f13 | |||
| e0766fb680 | |||
| 59bae293d6 | |||
| cc2ccaed31 | |||
| 4ba180197f | |||
| e4f3e46ac6 | |||
| 7d94762f75 | |||
| 1f6fb1bad4 | |||
| 99b16f05e2 | |||
| a275ed100c | |||
| c14e35bb50 | |||
| 7fb829a318 | |||
| 674585bfdc | |||
| 2c4913054f | |||
| 43e2ef9ed3 | |||
| 7efb52f7c1 | |||
| 4beb237a48 | |||
| ce988f54af | |||
| ebf42aa26a | |||
| 7c1390ed3c | |||
| f847ca02b9 | |||
| 5ca1b68f90 | |||
| f39687b54e | |||
| 1fb3cc5a5c | |||
| 191182b80c | |||
| 327e50b197 | |||
| 5453be7d2d | |||
| 12ae163ecd | |||
| 9416387fe7 | |||
| 19c64bcd84 | |||
| c64407d0f8 | |||
| f65a7db32a | |||
| c6ad426ea2 | |||
| 6b1179a833 | |||
| d736810cfe | |||
| f00a111e5e | |||
| 5e3cd7b8ce | |||
| 175bb04d31 | |||
| 2702983318 | |||
| 3c12ce661b | |||
| 25499b8355 | |||
| c291ed4b66 | |||
| 43be6e687a | |||
| 9927ca5934 | |||
| ee981552b6 | |||
| 02cb5e9a65 | |||
| f89a62a324 | |||
| 51e0f1ad62 | |||
| 62a233d160 | |||
| b5174c1c7f | |||
| bf8549e9a7 | |||
| a78538a77b | |||
| 8bcb4c759a | |||
| 82b26de7aa | |||
| 452115a21b | |||
| 860cc648c6 | |||
| de11d5e87a | |||
| cda8fc178f | |||
| 88a8dbe6a8 | |||
| 97568ad303 | |||
| ecda1b8705 | |||
| bcf28940c4 | |||
| 72726117cd | |||
| 918fd8f81e | |||
| 47cd880041 | |||
| aab6008279 | |||
| 7183d91d7c | |||
| 7ff24c0266 | |||
| b37d8bec33 | |||
| fa061de65d |
@ -1 +1 @@
|
||||
3.2.2
|
||||
3.4.3
|
||||
|
||||
13
Gemfile
13
Gemfile
@ -1,8 +1,8 @@
|
||||
source 'https://rubygems.org'
|
||||
ruby '3.2.2'
|
||||
gem 'rails', '~> 7.0'
|
||||
# TODO Upgrade sprockets
|
||||
gem 'redis', '~> 4.0'
|
||||
ruby '3.4.3'
|
||||
gem 'rails', '~> 8.0'
|
||||
gem 'redis' #, '~> 4.0'
|
||||
# gem 'bootsnap'
|
||||
gem 'sprockets' #, '~> 3.7'
|
||||
gem 'sass-rails' #, '~> 4.0.3'
|
||||
# gem 'uglifier' #, '>= 1.3.0'
|
||||
@ -17,7 +17,7 @@ gem 'devise_invitable'
|
||||
gem 'haml-rails'
|
||||
gem 'high_voltage'
|
||||
gem 'pg'
|
||||
gem 'puma', '6'
|
||||
gem 'puma' #, '6'
|
||||
gem 'pundit'
|
||||
gem 'simple_form'
|
||||
gem 'dotenv-rails'
|
||||
@ -61,7 +61,8 @@ group :development do
|
||||
gem 'guard-ctags-bundler'
|
||||
end
|
||||
group :development, :test do
|
||||
gem 'factory_girl_rails'
|
||||
# todo upgrade to factory_bot
|
||||
# gem 'factory_girl_rails'
|
||||
gem 'faker'
|
||||
gem 'pry-rails'
|
||||
gem 'pry-rescue'
|
||||
|
||||
473
Gemfile.lock
473
Gemfile.lock
@ -8,113 +8,111 @@ GIT
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actioncable (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
actioncable (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
nio4r (~> 2.0)
|
||||
websocket-driver (>= 0.6.1)
|
||||
zeitwerk (~> 2.6)
|
||||
actionmailbox (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
activejob (= 7.1.2)
|
||||
activerecord (= 7.1.2)
|
||||
activestorage (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
mail (>= 2.7.1)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
actionmailer (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
actionview (= 7.1.2)
|
||||
activejob (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
actionmailbox (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
activejob (= 8.0.2)
|
||||
activerecord (= 8.0.2)
|
||||
activestorage (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
mail (>= 2.8.0)
|
||||
actionmailer (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
actionview (= 8.0.2)
|
||||
activejob (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
mail (>= 2.8.0)
|
||||
rails-dom-testing (~> 2.2)
|
||||
actionpack (7.1.2)
|
||||
actionview (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
actionpack (8.0.2)
|
||||
actionview (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
nokogiri (>= 1.8.5)
|
||||
racc
|
||||
rack (>= 2.2.4)
|
||||
rack-session (>= 1.0.1)
|
||||
rack-test (>= 0.6.3)
|
||||
rails-dom-testing (~> 2.2)
|
||||
rails-html-sanitizer (~> 1.6)
|
||||
actiontext (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
activerecord (= 7.1.2)
|
||||
activestorage (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
useragent (~> 0.16)
|
||||
actiontext (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
activerecord (= 8.0.2)
|
||||
activestorage (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
globalid (>= 0.6.0)
|
||||
nokogiri (>= 1.8.5)
|
||||
actionview (7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
actionview (8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
builder (~> 3.1)
|
||||
erubi (~> 1.11)
|
||||
rails-dom-testing (~> 2.2)
|
||||
rails-html-sanitizer (~> 1.6)
|
||||
activejob (7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
activejob (8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
globalid (>= 0.3.6)
|
||||
activemodel (7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
activerecord (7.1.2)
|
||||
activemodel (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
activemodel (8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
activerecord (8.0.2)
|
||||
activemodel (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
timeout (>= 0.4.0)
|
||||
activestorage (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
activejob (= 7.1.2)
|
||||
activerecord (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
activestorage (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
activejob (= 8.0.2)
|
||||
activerecord (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
marcel (~> 1.0)
|
||||
activesupport (7.1.2)
|
||||
activesupport (8.0.2)
|
||||
base64
|
||||
benchmark (>= 0.3)
|
||||
bigdecimal
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||
connection_pool (>= 2.2.5)
|
||||
drb
|
||||
i18n (>= 1.6, < 2)
|
||||
logger (>= 1.4.2)
|
||||
minitest (>= 5.1)
|
||||
mutex_m
|
||||
tzinfo (~> 2.0)
|
||||
addressable (2.8.5)
|
||||
public_suffix (>= 2.0.2, < 6.0)
|
||||
airbrussh (1.5.0)
|
||||
securerandom (>= 0.3)
|
||||
tzinfo (~> 2.0, >= 2.0.5)
|
||||
uri (>= 0.13.1)
|
||||
addressable (2.8.7)
|
||||
public_suffix (>= 2.0.2, < 7.0)
|
||||
airbrussh (1.5.3)
|
||||
sshkit (>= 1.6.1, != 1.7.0)
|
||||
ast (2.4.2)
|
||||
ast (2.4.3)
|
||||
babel-source (5.8.35)
|
||||
babel-transpiler (0.7.0)
|
||||
babel-source (>= 4.0, < 6)
|
||||
execjs (~> 2.0)
|
||||
base64 (0.2.0)
|
||||
bcrypt (3.1.20)
|
||||
bcrypt_pbkdf (1.1.0)
|
||||
bcrypt_pbkdf (1.1.1)
|
||||
benchmark (0.4.0)
|
||||
better_errors (2.10.1)
|
||||
erubi (>= 1.0.0)
|
||||
rack (>= 0.9.0)
|
||||
rouge (>= 1.0.0)
|
||||
bigdecimal (3.1.4)
|
||||
binding_of_caller (1.0.0)
|
||||
debug_inspector (>= 0.0.1)
|
||||
builder (3.2.4)
|
||||
capistrano (3.18.0)
|
||||
bigdecimal (3.1.9)
|
||||
binding_of_caller (1.0.1)
|
||||
debug_inspector (>= 1.2.0)
|
||||
builder (3.3.0)
|
||||
capistrano (3.19.2)
|
||||
airbrussh (>= 1.0.0)
|
||||
i18n
|
||||
rake (>= 10.0.0)
|
||||
sshkit (>= 1.9.0)
|
||||
capistrano-bundler (2.1.0)
|
||||
capistrano-bundler (2.1.1)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-db-tasks (0.6)
|
||||
capistrano (>= 3.0.0)
|
||||
capistrano-postgresql (6.2.0)
|
||||
capistrano (>= 3.0)
|
||||
sshkit (>= 1.17.0)
|
||||
capistrano-rails (1.6.3)
|
||||
capistrano-rails (1.7.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-bundler (>= 1.1, < 3)
|
||||
capistrano-rails-console (2.3.0)
|
||||
@ -123,15 +121,15 @@ GEM
|
||||
capistrano-rbenv (2.2.0)
|
||||
capistrano (~> 3.1)
|
||||
sshkit (~> 1.3)
|
||||
capistrano3-puma (6.0.0.beta.1)
|
||||
capistrano3-puma (6.0.0)
|
||||
capistrano (~> 3.7)
|
||||
capistrano-bundler
|
||||
puma (>= 5.1, < 7.0)
|
||||
capybara (3.39.2)
|
||||
capybara (3.40.0)
|
||||
addressable
|
||||
matrix
|
||||
mini_mime (>= 0.1.3)
|
||||
nokogiri (~> 1.8)
|
||||
nokogiri (~> 1.11)
|
||||
rack (>= 1.6.0)
|
||||
rack-test (>= 0.6.3)
|
||||
regexp_parser (>= 1.5, < 3.0)
|
||||
@ -139,6 +137,8 @@ GEM
|
||||
capybara-screenshot (1.0.26)
|
||||
capybara (>= 1.0, < 4)
|
||||
launchy
|
||||
childprocess (5.1.0)
|
||||
logger (~> 1.5)
|
||||
ci_reporter (2.1.0)
|
||||
builder (>= 2.1.2)
|
||||
rexml
|
||||
@ -153,61 +153,58 @@ GEM
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.12.2)
|
||||
concurrent-ruby (1.2.2)
|
||||
connection_pool (2.4.1)
|
||||
concurrent-ruby (1.3.5)
|
||||
connection_pool (2.5.1)
|
||||
crass (1.0.6)
|
||||
database_cleaner (2.0.2)
|
||||
database_cleaner (2.1.0)
|
||||
database_cleaner-active_record (>= 2, < 3)
|
||||
database_cleaner-active_record (2.1.0)
|
||||
database_cleaner-active_record (2.2.0)
|
||||
activerecord (>= 5.a)
|
||||
database_cleaner-core (~> 2.0.0)
|
||||
database_cleaner-core (2.0.1)
|
||||
date (3.3.4)
|
||||
debug_inspector (1.1.0)
|
||||
devise (4.9.3)
|
||||
date (3.4.1)
|
||||
debug_inspector (1.2.0)
|
||||
devise (4.9.4)
|
||||
bcrypt (~> 3.0)
|
||||
orm_adapter (~> 0.1)
|
||||
railties (>= 4.1.0)
|
||||
responders
|
||||
warden (~> 1.2.3)
|
||||
devise_invitable (2.0.9)
|
||||
devise_invitable (2.0.10)
|
||||
actionmailer (>= 5.0)
|
||||
devise (>= 4.6)
|
||||
diff-lcs (1.5.0)
|
||||
docile (1.4.0)
|
||||
dotenv (2.8.1)
|
||||
dotenv-rails (2.8.1)
|
||||
dotenv (= 2.8.1)
|
||||
railties (>= 3.2)
|
||||
drb (2.2.0)
|
||||
ruby2_keywords
|
||||
diff-lcs (1.6.1)
|
||||
docile (1.4.1)
|
||||
dotenv (3.1.8)
|
||||
dotenv-rails (3.1.8)
|
||||
dotenv (= 3.1.8)
|
||||
railties (>= 6.1)
|
||||
drb (2.2.1)
|
||||
ed25519 (1.3.0)
|
||||
em-websocket (0.5.3)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0)
|
||||
erubi (1.12.0)
|
||||
erubi (1.13.1)
|
||||
erubis (2.7.0)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.9.1)
|
||||
factory_girl (4.9.0)
|
||||
activesupport (>= 3.0.0)
|
||||
factory_girl_rails (4.9.0)
|
||||
factory_girl (~> 4.9.0)
|
||||
railties (>= 3.0.0)
|
||||
faker (3.2.2)
|
||||
execjs (2.10.0)
|
||||
faker (3.5.1)
|
||||
i18n (>= 1.8.11, < 2)
|
||||
ffi (1.16.3)
|
||||
ffi (1.17.2)
|
||||
ffi (1.17.2-x86_64-linux-gnu)
|
||||
formatador (1.1.0)
|
||||
friendly_id (5.4.2)
|
||||
activerecord (>= 4.0.0)
|
||||
globalid (1.2.1)
|
||||
activesupport (>= 6.1)
|
||||
guard (2.18.1)
|
||||
guard (2.19.1)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, < 4.0)
|
||||
logger (~> 1.6)
|
||||
lumberjack (>= 1.0.12, < 2.0)
|
||||
nenv (~> 0.1)
|
||||
notiffany (~> 0.0)
|
||||
ostruct (~> 0.6)
|
||||
pry (>= 0.13.0)
|
||||
shellany (~> 0.0)
|
||||
thor (>= 0.18.1)
|
||||
@ -231,7 +228,7 @@ GEM
|
||||
guard (~> 2.1)
|
||||
guard-compat (~> 1.1)
|
||||
rspec (>= 2.99.0, < 4.0)
|
||||
haml (6.2.3)
|
||||
haml (6.3.0)
|
||||
temple (>= 0.8.2)
|
||||
thor
|
||||
tilt
|
||||
@ -240,7 +237,7 @@ GEM
|
||||
activesupport (>= 5.1)
|
||||
haml (>= 4.0.6)
|
||||
railties (>= 5.1)
|
||||
high_voltage (3.1.2)
|
||||
high_voltage (4.0.0)
|
||||
html2haml (2.3.0)
|
||||
erubis (~> 2.7.0)
|
||||
haml (>= 4.0)
|
||||
@ -248,37 +245,42 @@ GEM
|
||||
ruby_parser (~> 3.5)
|
||||
http_parser.rb (0.8.0)
|
||||
hub (1.12.4)
|
||||
i18n (1.14.1)
|
||||
i18n (1.14.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
importmap-rails (1.2.3)
|
||||
importmap-rails (2.1.0)
|
||||
actionpack (>= 6.0.0)
|
||||
activesupport (>= 6.0.0)
|
||||
railties (>= 6.0.0)
|
||||
inline_svg (1.9.0)
|
||||
inline_svg (1.10.0)
|
||||
activesupport (>= 3.0)
|
||||
nokogiri (>= 1.6)
|
||||
interception (0.5)
|
||||
io-console (0.6.0)
|
||||
irb (1.10.0)
|
||||
rdoc
|
||||
reline (>= 0.3.8)
|
||||
jbuilder (2.11.5)
|
||||
io-console (0.8.0)
|
||||
irb (1.15.2)
|
||||
pp (>= 0.6.0)
|
||||
rdoc (>= 4.0.0)
|
||||
reline (>= 0.4.2)
|
||||
jbuilder (2.13.0)
|
||||
actionview (>= 5.0.0)
|
||||
activesupport (>= 5.0.0)
|
||||
jquery-rails (4.6.0)
|
||||
rails-dom-testing (>= 1, < 3)
|
||||
railties (>= 4.2.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
jquery-ui-rails (6.0.1)
|
||||
jquery-ui-rails (7.0.0)
|
||||
railties (>= 3.2.16)
|
||||
json (2.7.0)
|
||||
language_server-protocol (3.17.0.3)
|
||||
launchy (2.5.2)
|
||||
json (2.10.2)
|
||||
language_server-protocol (3.17.0.4)
|
||||
launchy (3.1.1)
|
||||
addressable (~> 2.8)
|
||||
listen (3.8.0)
|
||||
childprocess (~> 5.0)
|
||||
logger (~> 1.6)
|
||||
lint_roller (1.1.0)
|
||||
listen (3.9.0)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
loofah (2.22.0)
|
||||
logger (1.7.0)
|
||||
loofah (2.24.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
lumberjack (1.2.10)
|
||||
@ -287,167 +289,178 @@ GEM
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
marcel (1.0.2)
|
||||
marcel (1.0.4)
|
||||
matrix (0.4.2)
|
||||
method_source (1.0.0)
|
||||
method_source (1.1.0)
|
||||
mini_mime (1.1.5)
|
||||
mini_portile2 (2.8.5)
|
||||
minitest (5.20.0)
|
||||
mini_portile2 (2.8.8)
|
||||
minitest (5.25.5)
|
||||
multi_json (1.15.0)
|
||||
mutex_m (0.2.0)
|
||||
nenv (0.3.0)
|
||||
net-imap (0.4.7)
|
||||
net-imap (0.5.7)
|
||||
date
|
||||
net-protocol
|
||||
net-pop (0.1.2)
|
||||
net-protocol
|
||||
net-protocol (0.2.2)
|
||||
timeout
|
||||
net-scp (4.0.0)
|
||||
net-scp (4.1.0)
|
||||
net-ssh (>= 2.6.5, < 8.0.0)
|
||||
net-smtp (0.4.0)
|
||||
net-sftp (4.0.0)
|
||||
net-ssh (>= 5.0.0, < 8.0.0)
|
||||
net-smtp (0.5.1)
|
||||
net-protocol
|
||||
net-ssh (7.2.0)
|
||||
nio4r (2.7.0)
|
||||
nokogiri (1.15.5)
|
||||
net-ssh (7.3.0)
|
||||
nio4r (2.7.4)
|
||||
nokogiri (1.18.8)
|
||||
mini_portile2 (~> 2.8.2)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.15.5-x86_64-linux)
|
||||
nokogiri (1.18.8-x86_64-linux-gnu)
|
||||
racc (~> 1.4)
|
||||
notiffany (0.1.3)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
orm_adapter (0.5.0)
|
||||
parallel (1.23.0)
|
||||
parallel_tests (4.3.0)
|
||||
ostruct (0.6.1)
|
||||
parallel (1.27.0)
|
||||
parallel_tests (5.1.0)
|
||||
parallel
|
||||
parser (3.2.2.4)
|
||||
parser (3.3.8.0)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
pg (1.5.4)
|
||||
pry (0.14.2)
|
||||
pg (1.5.9)
|
||||
pp (0.6.2)
|
||||
prettyprint
|
||||
prettyprint (0.2.0)
|
||||
prism (1.4.0)
|
||||
pry (0.15.2)
|
||||
coderay (~> 1.1)
|
||||
method_source (~> 1.0)
|
||||
pry-rails (0.3.9)
|
||||
pry (>= 0.10.4)
|
||||
pry-rescue (1.5.2)
|
||||
pry-rails (0.3.11)
|
||||
pry (>= 0.13.0)
|
||||
pry-rescue (1.6.0)
|
||||
interception (>= 0.5)
|
||||
pry (>= 0.12.0)
|
||||
psych (5.1.1.1)
|
||||
psych (5.2.3)
|
||||
date
|
||||
stringio
|
||||
public_suffix (5.0.4)
|
||||
puma (6.0.0)
|
||||
public_suffix (6.0.1)
|
||||
puma (6.6.0)
|
||||
nio4r (~> 2.0)
|
||||
pundit (2.3.1)
|
||||
pundit (2.5.0)
|
||||
activesupport (>= 3.0.0)
|
||||
racc (1.7.3)
|
||||
rack (3.0.8)
|
||||
rack-livereload (0.5.1)
|
||||
rack
|
||||
rack-session (2.0.0)
|
||||
racc (1.8.1)
|
||||
rack (3.1.13)
|
||||
rack-livereload (0.6.1)
|
||||
rack (>= 3.0, < 3.2)
|
||||
rack-session (2.1.0)
|
||||
base64 (>= 0.1.0)
|
||||
rack (>= 3.0.0)
|
||||
rack-test (2.1.0)
|
||||
rack-test (2.2.0)
|
||||
rack (>= 1.3)
|
||||
rackup (2.1.0)
|
||||
rackup (2.2.1)
|
||||
rack (>= 3)
|
||||
webrick (~> 1.8)
|
||||
rails (7.1.2)
|
||||
actioncable (= 7.1.2)
|
||||
actionmailbox (= 7.1.2)
|
||||
actionmailer (= 7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
actiontext (= 7.1.2)
|
||||
actionview (= 7.1.2)
|
||||
activejob (= 7.1.2)
|
||||
activemodel (= 7.1.2)
|
||||
activerecord (= 7.1.2)
|
||||
activestorage (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
rails (8.0.2)
|
||||
actioncable (= 8.0.2)
|
||||
actionmailbox (= 8.0.2)
|
||||
actionmailer (= 8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
actiontext (= 8.0.2)
|
||||
actionview (= 8.0.2)
|
||||
activejob (= 8.0.2)
|
||||
activemodel (= 8.0.2)
|
||||
activerecord (= 8.0.2)
|
||||
activestorage (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
bundler (>= 1.15.0)
|
||||
railties (= 7.1.2)
|
||||
railties (= 8.0.2)
|
||||
rails-dom-testing (2.2.0)
|
||||
activesupport (>= 5.0.0)
|
||||
minitest
|
||||
nokogiri (>= 1.6)
|
||||
rails-html-sanitizer (1.6.0)
|
||||
rails-html-sanitizer (1.6.2)
|
||||
loofah (~> 2.21)
|
||||
nokogiri (~> 1.14)
|
||||
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)
|
||||
rails_layout (1.0.42)
|
||||
railties (7.1.2)
|
||||
actionpack (= 7.1.2)
|
||||
activesupport (= 7.1.2)
|
||||
irb
|
||||
railties (8.0.2)
|
||||
actionpack (= 8.0.2)
|
||||
activesupport (= 8.0.2)
|
||||
irb (~> 1.13)
|
||||
rackup (>= 1.0.0)
|
||||
rake (>= 12.2)
|
||||
thor (~> 1.0, >= 1.2.2)
|
||||
zeitwerk (~> 2.6)
|
||||
rainbow (3.1.1)
|
||||
rake (13.1.0)
|
||||
rake (13.2.1)
|
||||
rb-fchange (0.0.6)
|
||||
ffi
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.10.1)
|
||||
rb-inotify (0.11.1)
|
||||
ffi (~> 1.0)
|
||||
rbnacl (3.4.0)
|
||||
ffi
|
||||
rbnacl-libsodium (1.0.16)
|
||||
rbnacl (>= 3.0.1)
|
||||
rdoc (6.6.0)
|
||||
rdoc (6.13.1)
|
||||
psych (>= 4.0.0)
|
||||
react-rails (3.1.1)
|
||||
react-rails (3.2.1)
|
||||
babel-transpiler (>= 0.7.0)
|
||||
connection_pool
|
||||
execjs
|
||||
railties (>= 3.2)
|
||||
tilt
|
||||
redis (4.8.1)
|
||||
regexp_parser (2.8.3)
|
||||
reline (0.4.1)
|
||||
redis (5.4.0)
|
||||
redis-client (>= 0.22.0)
|
||||
redis-client (0.24.0)
|
||||
connection_pool
|
||||
regexp_parser (2.10.0)
|
||||
reline (0.6.1)
|
||||
io-console (~> 0.5)
|
||||
responders (3.1.1)
|
||||
actionpack (>= 5.2)
|
||||
railties (>= 5.2)
|
||||
rexml (3.2.6)
|
||||
rouge (4.2.0)
|
||||
rspec (3.12.0)
|
||||
rspec-core (~> 3.12.0)
|
||||
rspec-expectations (~> 3.12.0)
|
||||
rspec-mocks (~> 3.12.0)
|
||||
rspec-core (3.12.2)
|
||||
rspec-support (~> 3.12.0)
|
||||
rspec-expectations (3.12.3)
|
||||
rexml (3.4.1)
|
||||
rouge (4.5.1)
|
||||
rspec (3.13.0)
|
||||
rspec-core (~> 3.13.0)
|
||||
rspec-expectations (~> 3.13.0)
|
||||
rspec-mocks (~> 3.13.0)
|
||||
rspec-core (3.13.3)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-expectations (3.13.3)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.12.0)
|
||||
rspec-mocks (3.12.6)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-mocks (3.13.2)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.12.0)
|
||||
rspec-rails (6.1.0)
|
||||
actionpack (>= 6.1)
|
||||
activesupport (>= 6.1)
|
||||
railties (>= 6.1)
|
||||
rspec-core (~> 3.12)
|
||||
rspec-expectations (~> 3.12)
|
||||
rspec-mocks (~> 3.12)
|
||||
rspec-support (~> 3.12)
|
||||
rspec-support (3.12.1)
|
||||
rubocop (1.58.0)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-rails (7.1.1)
|
||||
actionpack (>= 7.0)
|
||||
activesupport (>= 7.0)
|
||||
railties (>= 7.0)
|
||||
rspec-core (~> 3.13)
|
||||
rspec-expectations (~> 3.13)
|
||||
rspec-mocks (~> 3.13)
|
||||
rspec-support (~> 3.13)
|
||||
rspec-support (3.13.2)
|
||||
rubocop (1.75.3)
|
||||
json (~> 2.3)
|
||||
language_server-protocol (>= 3.17.0)
|
||||
language_server-protocol (~> 3.17.0.2)
|
||||
lint_roller (~> 1.1.0)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.2.2.4)
|
||||
parser (>= 3.3.0.2)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.8, < 3.0)
|
||||
rexml (>= 3.2.5, < 4.0)
|
||||
rubocop-ast (>= 1.30.0, < 2.0)
|
||||
regexp_parser (>= 2.9.3, < 3.0)
|
||||
rubocop-ast (>= 1.44.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 3.0)
|
||||
rubocop-ast (1.30.0)
|
||||
parser (>= 3.2.1.0)
|
||||
unicode-display_width (>= 2.4.0, < 4.0)
|
||||
rubocop-ast (1.44.1)
|
||||
parser (>= 3.3.7.2)
|
||||
prism (~> 1.4)
|
||||
ruby-progressbar (1.13.0)
|
||||
ruby2_keywords (0.0.5)
|
||||
ruby_parser (3.20.3)
|
||||
ruby_parser (3.21.1)
|
||||
racc (~> 1.5)
|
||||
sexp_processor (~> 4.16)
|
||||
rubyzip (2.3.2)
|
||||
rubyzip (2.4.1)
|
||||
sass-rails (6.0.0)
|
||||
sassc-rails (~> 2.1, >= 2.1.1)
|
||||
sassc (2.4.0)
|
||||
@ -460,65 +473,74 @@ GEM
|
||||
tilt
|
||||
sdoc (2.6.1)
|
||||
rdoc (>= 5.0)
|
||||
securerandom (0.4.1)
|
||||
selenium-webdriver (4.10.0)
|
||||
rexml (~> 3.2, >= 3.2.5)
|
||||
rubyzip (>= 1.2.2, < 3.0)
|
||||
websocket (~> 1.0)
|
||||
sexp_processor (4.17.0)
|
||||
sexp_processor (4.17.3)
|
||||
shellany (0.0.1)
|
||||
simple_form (5.3.0)
|
||||
simple_form (5.3.1)
|
||||
actionpack (>= 5.2)
|
||||
activemodel (>= 5.2)
|
||||
simplecov (0.22.0)
|
||||
docile (~> 1.1)
|
||||
simplecov-html (~> 0.11)
|
||||
simplecov_json_formatter (~> 0.1)
|
||||
simplecov-html (0.12.3)
|
||||
simplecov-html (0.13.1)
|
||||
simplecov_json_formatter (0.1.4)
|
||||
spring (4.1.3)
|
||||
spring (4.3.0)
|
||||
spring-commands-rspec (1.0.4)
|
||||
spring (>= 0.9.1)
|
||||
sprockets (4.2.1)
|
||||
sprockets (4.2.2)
|
||||
concurrent-ruby (~> 1.0)
|
||||
logger
|
||||
rack (>= 2.2.4, < 4)
|
||||
sprockets-rails (3.4.2)
|
||||
actionpack (>= 5.2)
|
||||
activesupport (>= 5.2)
|
||||
sprockets-rails (3.5.2)
|
||||
actionpack (>= 6.1)
|
||||
activesupport (>= 6.1)
|
||||
sprockets (>= 3.0.0)
|
||||
sshkit (1.21.6)
|
||||
sshkit (1.24.0)
|
||||
base64
|
||||
logger
|
||||
net-scp (>= 1.1.2)
|
||||
net-sftp (>= 2.1.2)
|
||||
net-ssh (>= 2.8.0)
|
||||
ostruct
|
||||
sshkit-interactive (0.3.0)
|
||||
sshkit (~> 1.12)
|
||||
stimulus-rails (1.3.0)
|
||||
stimulus-rails (1.3.4)
|
||||
railties (>= 6.0.0)
|
||||
stringio (3.1.0)
|
||||
stringio (3.1.7)
|
||||
temple (0.10.3)
|
||||
thor (1.3.0)
|
||||
tilt (2.3.0)
|
||||
timeout (0.4.1)
|
||||
turbo-rails (1.5.0)
|
||||
actionpack (>= 6.0.0)
|
||||
activejob (>= 6.0.0)
|
||||
railties (>= 6.0.0)
|
||||
thor (1.3.2)
|
||||
tilt (2.6.0)
|
||||
timeout (0.4.3)
|
||||
turbo-rails (2.0.13)
|
||||
actionpack (>= 7.1.0)
|
||||
railties (>= 7.1.0)
|
||||
tzinfo (2.0.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
unicode-display_width (2.5.0)
|
||||
unicode-display_width (3.1.4)
|
||||
unicode-emoji (~> 4.0, >= 4.0.4)
|
||||
unicode-emoji (4.0.4)
|
||||
uri (1.0.3)
|
||||
useragent (0.16.11)
|
||||
warden (1.2.9)
|
||||
rack (>= 2.0.9)
|
||||
webdrivers (5.3.1)
|
||||
nokogiri (~> 1.6)
|
||||
rubyzip (>= 1.3.0)
|
||||
selenium-webdriver (~> 4.0, < 4.11)
|
||||
webrick (1.8.1)
|
||||
websocket (1.2.10)
|
||||
websocket-driver (0.7.6)
|
||||
websocket (1.2.11)
|
||||
websocket-driver (0.7.7)
|
||||
base64
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.5)
|
||||
will_paginate (4.0.0)
|
||||
will_paginate (4.0.1)
|
||||
xpath (3.2.0)
|
||||
nokogiri (~> 1.8)
|
||||
zeitwerk (2.6.12)
|
||||
zeitwerk (2.7.2)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
@ -546,7 +568,6 @@ DEPENDENCIES
|
||||
devise_invitable
|
||||
dotenv-rails
|
||||
ed25519
|
||||
factory_girl_rails
|
||||
faker
|
||||
friendly_id (~> 5.4.0)
|
||||
guard-bundler
|
||||
@ -569,10 +590,10 @@ DEPENDENCIES
|
||||
pg
|
||||
pry-rails
|
||||
pry-rescue
|
||||
puma (= 6)
|
||||
puma
|
||||
pundit
|
||||
rack-livereload
|
||||
rails (~> 7.0)
|
||||
rails (~> 8.0)
|
||||
rails_layout
|
||||
rb-fchange
|
||||
rb-fsevent
|
||||
@ -580,7 +601,7 @@ DEPENDENCIES
|
||||
rbnacl (~> 3.4)
|
||||
rbnacl-libsodium
|
||||
react-rails
|
||||
redis (~> 4.0)
|
||||
redis
|
||||
rspec-rails
|
||||
rubocop
|
||||
sass-rails
|
||||
@ -597,7 +618,7 @@ DEPENDENCIES
|
||||
will_paginate
|
||||
|
||||
RUBY VERSION
|
||||
ruby 3.2.2p53
|
||||
ruby 3.4.3p32
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.22
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# The game class
|
||||
class Game < ActiveRecord::Base
|
||||
belongs_to :table
|
||||
belongs_to :table, optional: true
|
||||
has_many :seats
|
||||
has_many :players, dependent: :destroy
|
||||
has_many :users, through: :players
|
||||
has_many :player_cards, through: :players
|
||||
has_many :plays, through: :players
|
||||
belongs_to :play_to_beat
|
||||
belongs_to :controlling_player, class_name: "Player", foreign_key: "controlling_player_id"
|
||||
belongs_to :play_to_beat, optional: true
|
||||
belongs_to :controlling_player, class_name: "Player", foreign_key: "controlling_player_id", optional: true
|
||||
accepts_nested_attributes_for :players
|
||||
#validates :title, presence: true
|
||||
after_create :add_table
|
||||
@ -177,7 +177,7 @@ class Game < ActiveRecord::Base
|
||||
@inventory_counts.include? 0
|
||||
end
|
||||
|
||||
private
|
||||
# private
|
||||
|
||||
def add_table
|
||||
self.table ||= Table.create current_game_id: self.id
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# Associates users to games
|
||||
class Player < ActiveRecord::Base
|
||||
belongs_to :game
|
||||
belongs_to :user
|
||||
belongs_to :user, optional: true
|
||||
|
||||
has_many :player_cards
|
||||
has_many :plays
|
||||
@ -32,7 +32,7 @@ class Player < ActiveRecord::Base
|
||||
|
||||
def display_name
|
||||
return user.email.split("@")[0] if self.user
|
||||
return "BotPlayer" if self.is_bot?
|
||||
return "BotPlayer #{self.id}" if self.is_bot?
|
||||
return ("Guest" + self.soft_token)[0..9] if self.soft_token
|
||||
return "Empty"
|
||||
end
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
class PlayerCard < ActiveRecord::Base
|
||||
belongs_to :player
|
||||
belongs_to :play
|
||||
belongs_to :play, optional: true
|
||||
|
||||
def to_s
|
||||
# TODO: Shouldn't hard code face cards here
|
||||
|
||||
@ -14,12 +14,12 @@ class Seat < ActiveRecord::Base
|
||||
self.reload
|
||||
if self.player == nil
|
||||
# TODO: Decouple seat from game
|
||||
# self.player_id = self.table.current_game.add_player_from_user(current_user).id
|
||||
self.player_id = self.table.current_game.add_player_from_user(current_user).id
|
||||
end
|
||||
|
||||
# self.player.user_id = current_user.id
|
||||
# self.player.soft_token = current_user.soft_token
|
||||
# self.player.save
|
||||
self.player.user_id = current_user.id
|
||||
self.player.soft_token = current_user.soft_token
|
||||
self.player.save
|
||||
|
||||
self.user_id = current_user.id
|
||||
self.user_soft_token = current_user.soft_token
|
||||
|
||||
@ -6,7 +6,7 @@ class Table < ActiveRecord::Base
|
||||
has_many :users, through: :seats
|
||||
has_many :games
|
||||
has_many :players, through: :games
|
||||
belongs_to :token
|
||||
# belongs_to :token
|
||||
#TODO: Deprecated current_game_id from database.
|
||||
# Instead calculate with self.current_game
|
||||
#
|
||||
@ -14,7 +14,7 @@ class Table < ActiveRecord::Base
|
||||
|
||||
#TODO: Should these be part of Game initialize instead of callback?
|
||||
after_create :add_seats
|
||||
# after_create :add_game
|
||||
after_create :add_game # TODO decouple game from table
|
||||
|
||||
# Returns the newest joinable table or creates a new table if none are found
|
||||
# scope :play_now, lambda { |user|
|
||||
@ -36,6 +36,8 @@ class Table < ActiveRecord::Base
|
||||
|
||||
def add_game
|
||||
self.games.create
|
||||
# game = self.games.new
|
||||
# game.
|
||||
end
|
||||
|
||||
# private
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
class Token < ActiveRecord::Base
|
||||
enum standard: [:dip20, :icrc1, :unknown]
|
||||
enum :standard, [:dip20, :icrc1, :unknown]
|
||||
validates :canister_id, uniqueness: true, allow_nil: true
|
||||
before_create :refresh
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
class User < ActiveRecord::Base
|
||||
enum role: [:user, :vip, :admin]
|
||||
enum :role, [:user, :vip, :admin]
|
||||
after_initialize :set_default_role, if: :new_record?
|
||||
validates :email, presence: true, uniqueness: true
|
||||
validates :soft_token, presence: true, uniqueness: true
|
||||
|
||||
@ -15,11 +15,11 @@ class TablePolicy
|
||||
end
|
||||
|
||||
def create?
|
||||
@current_user.admin?
|
||||
@current_user.admin? || true
|
||||
end
|
||||
|
||||
def new?
|
||||
@current_user.admin?
|
||||
@current_user.admin? || true
|
||||
end
|
||||
|
||||
def edit?
|
||||
@ -36,7 +36,8 @@ class TablePolicy
|
||||
end
|
||||
|
||||
def play_now?
|
||||
@current_user.admin? || @current_user.email == "bort@13.24x7.hk"
|
||||
return true
|
||||
# @current_user.admin? || @current_user.email == "bort@13.24x7.hk"
|
||||
end
|
||||
|
||||
def new_game?
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<% if current_user.signed_in? %>
|
||||
<li><%= link_to 'My Tendy Zone', root_path, class: "home-link", data: { turbo: false } %></li>
|
||||
<% end %>
|
||||
<li><%= link_to 'Public', '/public', data: { turbo: false } %></li>
|
||||
<li><%= link_to 'Tokens', tokens_path %></li>
|
||||
<li><%= link_to 'Profiles', profiles_path %></li>
|
||||
<li><%= link_to 'Projects', projects_path %></li>
|
||||
<li><%= link_to 'MetaPurse', metapurses_path %></li>
|
||||
<% if policy(:canister).index? %>
|
||||
<li><%= link_to 'Canisters', canisters_path %></li>
|
||||
<% end %>
|
||||
<li><%= link_to 'Doodads', doodads_path, data: { turbo: false } %></li>
|
||||
<% if policy(:bot).index? %>
|
||||
<li><%= link_to 'Bots', bots_path %></li>
|
||||
<% end %>
|
||||
<% if policy(:table).index? %>
|
||||
<li><%= link_to 'Tables', tables_path %></li>
|
||||
<% end %>
|
||||
<% if policy(:room).index? %>
|
||||
<li><%= link_to 'Chat', rooms_path %></li>
|
||||
<% end %>
|
||||
<% if current_user.signed_in? %>
|
||||
<% if current_user.admin? %>
|
||||
<li><%= link_to 'Users', users_path %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if current_user.signed_in? %>
|
||||
<li><%= link_to 'My account', edit_user_registration_path %></li>
|
||||
<li><%= link_to 'Sign out', destroy_user_session_path, :method=>'delete' %></li>
|
||||
<% else %>
|
||||
<li><%= link_to 'Sign in', new_user_session_path %></li>
|
||||
<li><%= link_to 'Sign up', new_user_registration_path %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</nav>
|
||||
28
app/views/layouts/_navigation_links.html.haml
Normal file
28
app/views/layouts/_navigation_links.html.haml
Normal file
@ -0,0 +1,28 @@
|
||||
%nav
|
||||
%ul
|
||||
%li= link_to 'Home', root_path, class: "home-link", data: { turbo: false }
|
||||
-# - if current_user.signed_in?
|
||||
-# %li= link_to 'My Tendy Zone', root_path, class: "home-link", data: { turbo: false }
|
||||
-# %li= link_to 'Public', '/public', data: { turbo: false }
|
||||
-# %li= link_to 'Tokens', tokens_path
|
||||
-# %li= link_to 'Profiles', profiles_path
|
||||
-# %li= link_to 'Projects', projects_path
|
||||
-# %li= link_to 'MetaPurse', metapurses_path
|
||||
-# - if policy(:canister).index?
|
||||
-# %li= link_to 'Canisters', canisters_path
|
||||
-# %li= link_to 'Doodads', doodads_path, data: { turbo: false }
|
||||
-# - if policy(:bot).index?
|
||||
-# %li= link_to 'Bots', bots_path
|
||||
- if policy(:table).index?
|
||||
%li= link_to 'Tables', tables_path
|
||||
-# - if policy(:room).index?
|
||||
-# %li= link_to 'Chat', rooms_path
|
||||
- if current_user.signed_in?
|
||||
- if current_user.admin?
|
||||
%li= link_to 'Users', users_path
|
||||
- if current_user.signed_in?
|
||||
%li= link_to 'My account', edit_user_registration_path
|
||||
%li= link_to 'Sign out', destroy_user_session_path, :method=>'delete'
|
||||
- else
|
||||
%li= link_to 'Sign in', new_user_session_path
|
||||
%li= link_to 'Sign up', new_user_registration_path
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<header>
|
||||
<%= render "layouts/navigation_links" %>
|
||||
<%= render "layouts/navigation_wallet" %>
|
||||
<%# <%= render "layouts/navigation_wallet" %1> %>
|
||||
</header>
|
||||
|
||||
<%= render "layouts/flashmessages" %>
|
||||
@ -35,9 +35,9 @@
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<%= render "layouts/footer" %>
|
||||
</footer>
|
||||
<%# <footer> %>
|
||||
<%# <%= render "layouts/footer" %1> %>
|
||||
<%# </footer> %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -5,15 +5,15 @@
|
||||
None
|
||||
- else
|
||||
|
||||
%div.hand-type= @game.play_to_beat.play.hand_type.capitalize
|
||||
%span= @game.play_to_beat.play.to_s
|
||||
-# - @game.play_to_beat.play.player_cards.each do |card|
|
||||
= card.to_s
|
||||
%div= @game.play_to_beat.play.try("player").try("display_name")
|
||||
%ol#cards-to-beat
|
||||
- @game.play_to_beat.play.player_cards.reverse.each_with_index do |card, index|
|
||||
%li{style: "z-index: #{100 - index};"}
|
||||
-# TODO: Don't hard code face cards here
|
||||
%img{alt: card.rank + ' ' + card.suit,
|
||||
src: "#{image_path('cards/png/' + (card.rank.gsub('J','jack').gsub('Q','queen').gsub('K','king').gsub('A','ace') + '_of_' + card.suit.downcase + 's.png').gsub('11','jack').gsub('12','queen').gsub('13','king').gsub('14','ace').gsub('15','2'))}" }
|
||||
%div.hand-type= @game.play_to_beat.play.hand_type.capitalize
|
||||
%span= @game.play_to_beat.play.to_s
|
||||
-# - @game.play_to_beat.play.player_cards.each do |card|
|
||||
= card.to_s
|
||||
%div= @game.play_to_beat.play.try("player").try("display_name")
|
||||
%ol#cards-to-beat
|
||||
- @game.play_to_beat.play.player_cards.reverse.each_with_index do |card, index|
|
||||
%li{style: "z-index: #{100 - index};"}
|
||||
-# TODO: Don't hard code face cards here
|
||||
%img{alt: card.rank + ' ' + card.suit,
|
||||
src: "#{image_path('cards/png/' + (card.rank.gsub('J','jack').gsub('Q','queen').gsub('K','king').gsub('A','ace') + '_of_' + card.suit.downcase + 's.png').gsub('11','jack').gsub('12','queen').gsub('13','king').gsub('14','ace').gsub('15','2'))}" }
|
||||
|
||||
|
||||
@ -2,14 +2,15 @@
|
||||
- @game = seat.game
|
||||
.seat{class: "position-#{@seats.index(seat) + 1}"}
|
||||
|
||||
- if seat.user_soft_token
|
||||
-# - if seat.user_soft_token
|
||||
- if seat.player
|
||||
-# = button_to remove_player_seat_path(seat), :data => { :confirm => 'Are you sure you want to remove this player?' } do
|
||||
-# TODO: Remove Player button
|
||||
-# = button_to remove_player_seat_path(seat) do
|
||||
- "Remove Player"
|
||||
.user{id: "user-#{seat.user_soft_token}", class: @game.try("controlling_player") == seat.player ? "taking-turn" : "",
|
||||
data: {soft_token: seat.user_soft_token} }
|
||||
.user-name= seat.user_soft_token[0..3]
|
||||
.user-name= seat.player.display_name
|
||||
-# .user-soft-token= seat.user.soft_token
|
||||
-# TODO user principal
|
||||
-# .user-principal= seat.user_soft_token[0..3]
|
||||
@ -19,14 +20,14 @@
|
||||
= seat.player.inventory.count
|
||||
|
||||
-# Show player controls if player is owned by current_user
|
||||
- if seat.user.soft_token == current_user.soft_token
|
||||
- if seat.player.soft_token == current_user.soft_token
|
||||
= form_for(@game,
|
||||
url: play_hand_game_path(@game),
|
||||
method: "post",
|
||||
name: "player_controls_" + seat.user_id.to_s,
|
||||
id: "player_controls_" + seat.user_id.to_s) do |f|
|
||||
name: "player_controls_" + seat.player_id.to_s,
|
||||
id: "player_controls_" + seat.player_id.to_s) do |f|
|
||||
%ul#inventory
|
||||
-# - seat.player.inventory.each do |card|
|
||||
- seat.player.inventory.each do |card|
|
||||
%li
|
||||
%label
|
||||
= check_box_tag 'player_card_ids[]',
|
||||
@ -34,7 +35,7 @@
|
||||
false,
|
||||
data: {value: card.id, card_name: card.rank.gsub('11','J') .gsub('12','Q') .gsub('13','K') .gsub('14','A') .gsub('15','2') + ' ' + card.suit}
|
||||
|
||||
-# %input{form: "player_controls_" + card.player_id.to_s,
|
||||
%input{form: "player_controls_" + card.player_id.to_s,
|
||||
type: "checkbox",
|
||||
name: "player_card_ids[]",
|
||||
data: {value: card.id, card_name: card.rank.gsub('11','J') .gsub('12','Q') .gsub('13','K') .gsub('14','A') .gsub('15','2') + ' ' + card.suit}}
|
||||
@ -52,7 +53,7 @@
|
||||
.seat-controls
|
||||
- if seat.occupied?
|
||||
- if seat.player.try("is_bot?")
|
||||
-# = button_to remove_bot_seat_path(seat) do
|
||||
= button_to remove_bot_seat_path(seat) do
|
||||
- "- Bot"
|
||||
- if seat.occupied_by? current_user
|
||||
-# = button_to stand_seat_path(seat), :data => { :confirm => 'Are you sure you want to leave this seat?' } do
|
||||
@ -66,6 +67,6 @@
|
||||
- else
|
||||
= button_to sit_seat_path(seat) do
|
||||
- "Sit"
|
||||
-# = button_to add_bot_seat_path(seat) do
|
||||
= button_to add_bot_seat_path(seat) do
|
||||
- "+ Bot"
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
-# - if @game.winner_player_id || @game.nil?
|
||||
-# = button_to 'New Game', new_game_table_path(@table)
|
||||
|
||||
- if @game && !@game.startable?
|
||||
- if (@game && !@game.startable?) || !@game
|
||||
#table-controls
|
||||
#newgame= button_to 'New Game', new_game_table_path(@table)
|
||||
|
||||
|
||||
@ -1,85 +1,12 @@
|
||||
#home-headline.home-headline
|
||||
- if request.base_url.match(/pin|my|fireside/)
|
||||
%h1 Your own public tendy zone 🍗
|
||||
- else
|
||||
%h1 Web3 Social Gaming <br/>Crypto Rewards
|
||||
|
||||
- if @feed_items.any?
|
||||
.contain
|
||||
%h2 Post feed
|
||||
= render 'shared/feed'
|
||||
.contain
|
||||
#doodads
|
||||
%h2 Doodads
|
||||
- if current_user.signed_in?
|
||||
%p= link_to '+ New Doodad', new_doodad_path
|
||||
= render @doodads
|
||||
|
||||
:javascript
|
||||
function destroyDoodad(doodad_id) {
|
||||
return fetch("/doodads/" + doodad_id, {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json"
|
||||
}
|
||||
})
|
||||
.then(response => response)
|
||||
};
|
||||
// var s2 = Swiped.init({ query: '.bar li', list: true, left: 200, right: 200 });
|
||||
var index_doodad_swiped = Swiped.init({ query: '#doodads .doodad',
|
||||
list: true,
|
||||
left: 200,
|
||||
right: 200,
|
||||
onOpen: function() {
|
||||
var doodad_id = this.elem.className.split("-")[1];
|
||||
destroyDoodad(doodad_id)
|
||||
.then(results => console.log(results));
|
||||
this.destroy(true)
|
||||
}
|
||||
});
|
||||
|
||||
-# #canisters
|
||||
= render @canisters
|
||||
- if current_user.signed_in?
|
||||
= link_to '+ Add Existing Canister', new_canister_path
|
||||
#home-headline
|
||||
%h1 Thirteen <br/>Tien Len
|
||||
|
||||
#main-menu
|
||||
-# - if policy(:table).play_now?
|
||||
= link_to 'Play 13 Now', play_now_path
|
||||
-# - else
|
||||
Soon
|
||||
-# = link_to 'Browse Tables', tables_path
|
||||
-# = link_to 'Tutorial', tutorial_path
|
||||
-# = link_to 'About', page_path('about')
|
||||
- if policy(:table).play_now?
|
||||
= link_to 'Play Now', play_now_path
|
||||
- else
|
||||
Soon
|
||||
= link_to 'Browse Tables', tables_path
|
||||
= link_to 'Tutorial', tutorial_path
|
||||
= link_to 'About', page_path('about')
|
||||
|
||||
-# - if !request.base_url.match(/pin|my|fireside/)
|
||||
- unless current_user.signed_in?
|
||||
.eyecandy.icypepe
|
||||
= image_tag "icy pepe.png", style: 'width: 800px'
|
||||
-# = inline_svg_tag "Icy Pepe.svg"
|
||||
- 5.times do |i|
|
||||
.eyecandy
|
||||
= image_tag "gongo-logo.png"
|
||||
- 10.times do |i|
|
||||
.eyecandy
|
||||
= image_tag "ICYPEES-glass.png"
|
||||
- 20.times do |i|
|
||||
.eyecandy
|
||||
= image_tag "chicken-tenders.png"
|
||||
-# - 10.times do |i|
|
||||
.eyecandy.roundcandy
|
||||
= image_tag "tendy-logo.jpg"
|
||||
- 10.times do |i|
|
||||
.eyecandy
|
||||
= image_tag "ICYPEES-coin.png"
|
||||
|
||||
-# - Dir.glob("app/assets/images/cards/png/**").each do |card_img|
|
||||
- puts card_img
|
||||
= image_tag
|
||||
|
||||
-# %iframe#videoplayer{:allowfullscreen => "", :frameborder => "0", :height => "480", :mozallowfullscreen => "true", :src => "https://archive.org/embed/my-dinner-with-andre-conspiracy-theory-scene-hd", :webkitallowfullscreen => "true", :width => "640", :autostart => "true"}
|
||||
-# %iframe{:allow => "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", :allowfullscreen => "", :frameborder => "0", :height => "315", :src => "https://www.youtube.com/embed/kK-1axSGkXc", :title => "YouTube video player", :width => "560"}
|
||||
-# %iframe#videoplayer{:allow => "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", :allowfullscreen => "", :frameborder => "0", :height => "315", :src => "https://www.youtube.com/embed/PhIM5k_m_hs", :title => "YouTube video player", :width => "560"}
|
||||
-# .video-cover
|
||||
-# = video_tag "video.mp4", autoplay: true, id: "videoplayer", loop: true
|
||||
|
||||
@ -13,6 +13,9 @@ module MyTendyZone
|
||||
config.load_defaults 7.0
|
||||
# config.active_support.cache_format_version = 7.0
|
||||
|
||||
# TODO move secrets to credentials
|
||||
config.secrets = config_for(:secrets)
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
|
||||
@ -10,7 +10,9 @@ Devise.setup do |config|
|
||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||
# note that it will be overwritten if you use your own mailer class
|
||||
# with default "from" parameter.
|
||||
config.mailer_sender = 'no-reply@' + Rails.application.secrets.domain_name
|
||||
# TODO move secrets to credentials
|
||||
# config.mailer_sender = 'no-reply@' + Rails.application.secrets.domain_name
|
||||
config.mailer_sender = 'no-reply@' + Rails.configuration.secrets.domain_name
|
||||
|
||||
# Configure the class responsible to send e-mails.
|
||||
# config.mailer = 'Devise::Mailer'
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_03_25_142502) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_03_25_142502) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
@ -79,7 +79,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_25_142502) do
|
||||
t.integer "sluggable_id", null: false
|
||||
t.string "sluggable_type", limit: 50
|
||||
t.string "scope"
|
||||
t.datetime "created_at", precision: nil
|
||||
t.datetime "created_at"
|
||||
t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
|
||||
t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
|
||||
t.index ["sluggable_type", "sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_type_and_sluggable_id"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user