mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-15 03:38:17 +00:00
Merge branch 'rails' into prosemirror
This commit is contained in:
commit
667ef22593
7 changed files with 31 additions and 22 deletions
|
@ -1 +1 @@
|
||||||
2.6.5
|
2.6.6
|
||||||
|
|
|
@ -9,7 +9,6 @@ MAINTAINER "f <f@sutty.nl>"
|
||||||
ARG RAILS_MASTER_KEY
|
ARG RAILS_MASTER_KEY
|
||||||
|
|
||||||
# Un entorno base
|
# Un entorno base
|
||||||
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
|
|
||||||
ENV SECRET_KEY_BASE solo_es_necesaria_para_correr_rake
|
ENV SECRET_KEY_BASE solo_es_necesaria_para_correr_rake
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV production
|
||||||
ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY
|
ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY
|
||||||
|
@ -17,6 +16,8 @@ ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY
|
||||||
RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake
|
RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake
|
||||||
RUN apk add --no-cache postgresql-libs git yarn brotli libssh2 python
|
RUN apk add --no-cache postgresql-libs git yarn brotli libssh2 python
|
||||||
|
|
||||||
|
RUN test "2.6.6" = `ruby -e 'puts RUBY_VERSION'`
|
||||||
|
|
||||||
# https://github.com/rubygems/rubygems/issues/2918
|
# https://github.com/rubygems/rubygems/issues/2918
|
||||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
||||||
COPY ./rubygems-platform-musl.patch /tmp/
|
COPY ./rubygems-platform-musl.patch /tmp/
|
||||||
|
@ -78,7 +79,7 @@ RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-b
|
||||||
RUN apk add --no-cache postgresql-libs libssh2 file rsync git jpegoptim vips
|
RUN apk add --no-cache postgresql-libs libssh2 file rsync git jpegoptim vips
|
||||||
|
|
||||||
# Chequear que la versión de ruby sea la correcta
|
# Chequear que la versión de ruby sea la correcta
|
||||||
RUN test "2.6.5" = `ruby -e 'puts RUBY_VERSION'`
|
RUN test "2.6.6" = `ruby -e 'puts RUBY_VERSION'`
|
||||||
|
|
||||||
# https://github.com/rubygems/rubygems/issues/2918
|
# https://github.com/rubygems/rubygems/issues/2918
|
||||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
||||||
|
|
9
Gemfile
9
Gemfile
|
@ -15,7 +15,7 @@ git_source(:github) do |repo_name|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cambiar en Dockerfile también
|
# Cambiar en Dockerfile también
|
||||||
ruby '2.6.5'
|
ruby '2.6.6'
|
||||||
|
|
||||||
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
||||||
|
|
||||||
|
@ -77,23 +77,20 @@ group :themes do
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
|
gem 'derailed_benchmarks'
|
||||||
gem 'pry'
|
gem 'pry'
|
||||||
# Adds support for Capybara system testing and selenium driver
|
# Adds support for Capybara system testing and selenium driver
|
||||||
gem 'capybara', '~> 2.13'
|
gem 'capybara', '~> 2.13'
|
||||||
gem 'selenium-webdriver'
|
gem 'selenium-webdriver'
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
|
gem 'stackprof'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
# Access an IRB console on exception pages or by using <%= console %>
|
|
||||||
# anywhere in the code.
|
|
||||||
gem 'bcrypt_pbkdf'
|
|
||||||
gem 'brakeman'
|
gem 'brakeman'
|
||||||
gem 'ed25519'
|
|
||||||
gem 'haml-lint', require: false
|
gem 'haml-lint', require: false
|
||||||
gem 'letter_opener'
|
gem 'letter_opener'
|
||||||
gem 'listen', '>= 3.0.5', '< 3.2'
|
gem 'listen', '>= 3.0.5', '< 3.2'
|
||||||
gem 'rbnacl', '< 5.0'
|
|
||||||
gem 'rubocop-rails'
|
gem 'rubocop-rails'
|
||||||
gem 'spring'
|
gem 'spring'
|
||||||
gem 'spring-watcher-listen', '~> 2.0.0'
|
gem 'spring-watcher-listen', '~> 2.0.0'
|
||||||
|
|
31
Gemfile.lock
31
Gemfile.lock
|
@ -77,7 +77,7 @@ GEM
|
||||||
autoprefixer-rails (9.7.4)
|
autoprefixer-rails (9.7.4)
|
||||||
execjs
|
execjs
|
||||||
bcrypt (3.1.13)
|
bcrypt (3.1.13)
|
||||||
bcrypt_pbkdf (1.0.1)
|
benchmark-ips (2.7.2)
|
||||||
bindex (0.8.1)
|
bindex (0.8.1)
|
||||||
blazer (2.2.1)
|
blazer (2.2.1)
|
||||||
activerecord (>= 5)
|
activerecord (>= 5)
|
||||||
|
@ -106,6 +106,15 @@ GEM
|
||||||
concurrent-ruby (1.1.6)
|
concurrent-ruby (1.1.6)
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
database_cleaner (1.8.3)
|
database_cleaner (1.8.3)
|
||||||
|
derailed_benchmarks (1.6.0)
|
||||||
|
benchmark-ips (~> 2)
|
||||||
|
get_process_mem (~> 0)
|
||||||
|
heapy (~> 0)
|
||||||
|
memory_profiler (~> 0)
|
||||||
|
rack (>= 1)
|
||||||
|
rake (> 10, < 14)
|
||||||
|
ruby-statistics (>= 2.1)
|
||||||
|
thor (>= 0.19, < 2)
|
||||||
devise (4.7.1)
|
devise (4.7.1)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
|
@ -121,7 +130,6 @@ GEM
|
||||||
dotenv-rails (2.7.5)
|
dotenv-rails (2.7.5)
|
||||||
dotenv (= 2.7.5)
|
dotenv (= 2.7.5)
|
||||||
railties (>= 3.2, < 6.1)
|
railties (>= 3.2, < 6.1)
|
||||||
ed25519 (1.2.4)
|
|
||||||
editorial-autogestiva-jekyll-theme (0.2.2)
|
editorial-autogestiva-jekyll-theme (0.2.2)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
jekyll-data (~> 1.1)
|
jekyll-data (~> 1.1)
|
||||||
|
@ -153,6 +161,8 @@ GEM
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
friendly_id (5.3.0)
|
friendly_id (5.3.0)
|
||||||
activerecord (>= 4.0.0)
|
activerecord (>= 4.0.0)
|
||||||
|
get_process_mem (0.2.5)
|
||||||
|
ffi (~> 1.0)
|
||||||
globalid (0.4.2)
|
globalid (0.4.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
haml (5.1.2)
|
haml (5.1.2)
|
||||||
|
@ -174,6 +184,7 @@ GEM
|
||||||
activesupport (>= 4.0.1)
|
activesupport (>= 4.0.1)
|
||||||
hamlit (>= 1.2.0)
|
hamlit (>= 1.2.0)
|
||||||
railties (>= 4.0.1)
|
railties (>= 4.0.1)
|
||||||
|
heapy (0.1.4)
|
||||||
hiredis (0.6.3)
|
hiredis (0.6.3)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.6.0)
|
||||||
i18n (1.8.2)
|
i18n (1.8.2)
|
||||||
|
@ -237,6 +248,7 @@ GEM
|
||||||
mini_mime (>= 0.1.1)
|
mini_mime (>= 0.1.1)
|
||||||
marcel (0.3.3)
|
marcel (0.3.3)
|
||||||
mimemagic (~> 0.3.2)
|
mimemagic (~> 0.3.2)
|
||||||
|
memory_profiler (0.9.14)
|
||||||
mercenary (0.3.6)
|
mercenary (0.3.6)
|
||||||
method_source (0.9.2)
|
method_source (0.9.2)
|
||||||
mimemagic (0.3.4)
|
mimemagic (0.3.4)
|
||||||
|
@ -266,7 +278,7 @@ GEM
|
||||||
pry (0.12.2)
|
pry (0.12.2)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.9.0)
|
method_source (~> 0.9.0)
|
||||||
public_suffix (4.0.3)
|
public_suffix (4.0.4)
|
||||||
puma (4.3.3)
|
puma (4.3.3)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
pundit (2.1.0)
|
pundit (2.1.0)
|
||||||
|
@ -312,8 +324,6 @@ GEM
|
||||||
rb-fsevent (0.10.3)
|
rb-fsevent (0.10.3)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rbnacl (4.0.2)
|
|
||||||
ffi
|
|
||||||
redis (4.1.3)
|
redis (4.1.3)
|
||||||
redis-actionpack (5.2.0)
|
redis-actionpack (5.2.0)
|
||||||
actionpack (>= 5, < 7)
|
actionpack (>= 5, < 7)
|
||||||
|
@ -353,6 +363,7 @@ GEM
|
||||||
i18n
|
i18n
|
||||||
ruby-filemagic (0.7.2)
|
ruby-filemagic (0.7.2)
|
||||||
ruby-progressbar (1.10.1)
|
ruby-progressbar (1.10.1)
|
||||||
|
ruby-statistics (2.1.2)
|
||||||
ruby-vips (2.0.17)
|
ruby-vips (2.0.17)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
ruby_dep (1.5.0)
|
ruby_dep (1.5.0)
|
||||||
|
@ -386,9 +397,10 @@ GEM
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.4.2)
|
sqlite3 (1.4.2)
|
||||||
|
stackprof (0.2.15)
|
||||||
sucker_punch (2.1.2)
|
sucker_punch (2.1.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
sutty-jekyll-theme (0.1.0)
|
sutty-jekyll-theme (0.1.2)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
jekyll-feed (~> 0.9)
|
jekyll-feed (~> 0.9)
|
||||||
jekyll-images (~> 0.2)
|
jekyll-images (~> 0.2)
|
||||||
|
@ -440,18 +452,17 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bcrypt (~> 3.1.7)
|
bcrypt (~> 3.1.7)
|
||||||
bcrypt_pbkdf
|
|
||||||
blazer
|
blazer
|
||||||
bootstrap (~> 4)
|
bootstrap (~> 4)
|
||||||
brakeman
|
brakeman
|
||||||
capybara (~> 2.13)
|
capybara (~> 2.13)
|
||||||
commonmarker
|
commonmarker
|
||||||
database_cleaner
|
database_cleaner
|
||||||
|
derailed_benchmarks
|
||||||
devise
|
devise
|
||||||
devise-i18n
|
devise-i18n
|
||||||
devise_invitable
|
devise_invitable
|
||||||
dotenv-rails
|
dotenv-rails
|
||||||
ed25519
|
|
||||||
editorial-autogestiva-jekyll-theme
|
editorial-autogestiva-jekyll-theme
|
||||||
email_address
|
email_address
|
||||||
exception_notification
|
exception_notification
|
||||||
|
@ -477,7 +488,6 @@ DEPENDENCIES
|
||||||
rails (~> 6)
|
rails (~> 6)
|
||||||
rails-i18n
|
rails-i18n
|
||||||
rails_warden
|
rails_warden
|
||||||
rbnacl (< 5.0)
|
|
||||||
redis
|
redis
|
||||||
redis-rails
|
redis-rails
|
||||||
rubocop-rails
|
rubocop-rails
|
||||||
|
@ -488,6 +498,7 @@ DEPENDENCIES
|
||||||
spring
|
spring
|
||||||
spring-watcher-listen (~> 2.0.0)
|
spring-watcher-listen (~> 2.0.0)
|
||||||
sqlite3
|
sqlite3
|
||||||
|
stackprof
|
||||||
sucker_punch
|
sucker_punch
|
||||||
sutty-jekyll-theme
|
sutty-jekyll-theme
|
||||||
terminal-table
|
terminal-table
|
||||||
|
@ -500,7 +511,7 @@ DEPENDENCIES
|
||||||
yaml_db!
|
yaml_db!
|
||||||
|
|
||||||
RUBY VERSION
|
RUBY VERSION
|
||||||
ruby 2.6.5p114
|
ruby 2.6.6p146
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.1.4
|
2.1.4
|
||||||
|
|
|
@ -45,7 +45,7 @@ class DeployJob < ApplicationJob
|
||||||
end
|
end
|
||||||
|
|
||||||
def notify_usuaries
|
def notify_usuaries
|
||||||
@site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuaries_id).each do |usuarie|
|
@site.roles.where(rol: 'usuarie', temporal: false).pluck(:usuarie_id).each do |usuarie|
|
||||||
DeployMailer.with(usuarie: usuarie, site: @site.id)
|
DeployMailer.with(usuarie: usuarie, site: @site.id)
|
||||||
.deployed(@deployed)
|
.deployed(@deployed)
|
||||||
.deliver_now
|
.deliver_now
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
-# Botones de guardado
|
-# Botones de guardado
|
||||||
= render 'posts/submit', site: site, post: post
|
= render 'posts/submit', site: site, post: post
|
||||||
|
|
||||||
= hidden_field_tag 'post[layout]', params[:layout] || 'post'
|
= hidden_field_tag 'post[layout]', post.layout.name
|
||||||
|
|
||||||
-# Dibuja cada atributo
|
-# Dibuja cada atributo
|
||||||
- post.attributes.each do |attribute|
|
- post.attributes.each do |attribute|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
value: @posts.length - i, class: 'reorder'
|
value: @posts.length - i, class: 'reorder'
|
||||||
%td
|
%td
|
||||||
%small
|
%small
|
||||||
= link_to post.layout.name.to_s.humanize,
|
= link_to @site.i18n.dig('layouts', post.layout.name.to_s) || post.layout.name.to_s.humanize,
|
||||||
site_posts_path(@site, layout: post.layout.name)
|
site_posts_path(@site, layout: post.layout.name)
|
||||||
%br/
|
%br/
|
||||||
= link_to post.title.value,
|
= link_to post.title.value,
|
||||||
|
|
Loading…
Reference in a new issue