Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4.7
FROM ruby:4.0.2
ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4.7-alpine
FROM ruby:4.0.2-alpine

ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
source 'https://rubygems.org'
ruby '3.4.8'
ruby '4.0.2'

gem 'activesupport', require: false
gem 'html-pipeline'
gem 'nokogiri'
gem 'pry-byebug'
gem 'rake'
gem 'terminal-table'
gem 'thor'
Expand All @@ -22,7 +21,7 @@ group :app do
gem 'rack'
gem 'rss'
gem 'sinatra-contrib'
gem 'sinatra'
gem 'sinatra', '~> 3.2'
gem 'sprockets-helpers'
gem 'sprockets'
gem 'thin'
Expand All @@ -35,6 +34,7 @@ end

group :development do
gem 'better_errors'
gem 'pry'
end

group :docs do
Expand Down
158 changes: 80 additions & 78 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,52 +1,47 @@
GEM
remote: https://rubygems.org/
specs:
actionpack (7.2.3)
actionview (= 7.2.3)
activesupport (= 7.2.3)
cgi
actionpack (8.1.3)
actionview (= 8.1.3)
activesupport (= 8.1.3)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.3)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (7.2.3)
activesupport (= 7.2.3)
actionview (8.1.3)
activesupport (= 8.1.3)
builder (~> 3.1)
cgi
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.2.3)
activesupport (8.1.3)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
json
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
base64 (0.2.0)
benchmark (0.3.0)
uri (>= 0.13.1)
base64 (0.3.0)
better_errors (2.10.1)
erubi (>= 1.0.0)
rack (>= 0.9.0)
rouge (>= 1.0.0)
bigdecimal (3.1.9)
browser (5.3.1)
bigdecimal (4.1.2)
browser (6.2.0)
builder (3.3.0)
byebug (12.0.0)
cgi (0.5.1)
chunky_png (1.4.0)
coderay (1.1.3)
concurrent-ruby (1.3.5)
connection_pool (2.4.1)
concurrent-ruby (1.3.6)
connection_pool (3.0.2)
crass (1.0.6)
daemons (1.4.1)
dartsass-sprockets (3.2.1)
Expand All @@ -58,57 +53,64 @@ GEM
date (3.5.1)
docile (1.4.1)
drb (2.2.3)
erb (6.0.1)
erb (6.0.3)
erubi (1.13.1)
ethon (0.18.0)
ffi (>= 1.15.0)
logger
eventmachine (1.2.7)
execjs (2.9.1)
exifr (1.4.0)
ffi (1.17.3)
execjs (2.10.1)
exifr (1.5.1)
ffi (1.17.4)
ffi (1.17.4-x86_64-linux-gnu)
fspath (3.1.2)
google-protobuf (4.33.4)
google-protobuf (4.34.1)
bigdecimal
rake (>= 13)
rake (~> 13.3)
google-protobuf (4.34.1-x86_64-linux-gnu)
bigdecimal
rake (~> 13.3)
highline (3.1.2)
reline
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
i18n (1.14.7)
html-pipeline (3.2.4)
selma (~> 0.4)
zeitwerk (~> 2.5)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
image_optim (0.31.3)
image_optim (0.31.4)
exifr (~> 1.2, >= 1.2.2)
fspath (~> 3.0)
image_size (>= 1.5, < 4)
in_threads (~> 1.3)
progress (~> 3.0, >= 3.0.1)
image_optim_pack (0.10.1)
image_optim_pack (0.13.1.20260418)
fspath (>= 2.1, < 4)
image_optim (~> 0.19)
image_optim_pack (0.13.1.20260418-x86_64-linux)
fspath (>= 2.1, < 4)
image_optim (~> 0.19)
image_size (3.3.0)
image_size (3.4.0)
in_threads (1.6.0)
io-console (0.8.0)
irb (1.16.0)
io-console (0.8.2)
irb (1.17.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
logger (1.6.6)
loofah (2.25.0)
json (2.19.4)
logger (1.7.0)
loofah (2.25.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.1.0)
mini_portile2 (2.8.9)
minitest (6.0.2)
minitest (6.0.5)
drb (~> 2.0)
prism (~> 1.5)
multi_json (1.15.0)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
newrelic_rpm (8.16.0)
nokogiri (1.19.1)
mini_portile2 (~> 2.8.2)
multi_json (1.20.1)
mustermann (3.1.1)
newrelic_rpm (10.4.0)
logger
nokogiri (1.19.2-x86_64-linux-gnu)
racc (~> 1.4)
options (2.3.2)
pp (0.6.3)
Expand All @@ -122,14 +124,11 @@ GEM
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
psych (5.3.1)
date
stringio
racc (1.8.1)
rack (2.2.22)
rack (2.2.23)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
Expand All @@ -145,39 +144,40 @@ GEM
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
rails-html-sanitizer (1.7.0)
loofah (~> 2.25)
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)
railties (7.2.3)
actionpack (= 7.2.3)
activesupport (= 7.2.3)
cgi
railties (8.1.3)
actionpack (= 8.1.3)
activesupport (= 8.1.3)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
tsort (>= 0.2)
zeitwerk (~> 2.6)
rake (13.3.1)
rdoc (7.1.0)
rake (13.4.2)
rdoc (7.2.0)
erb
psych (>= 4.0.0)
tsort
redcarpet (3.6.1)
reline (0.6.0)
reline (0.6.3)
io-console (~> 0.5)
rexml (3.3.9)
rouge (1.11.1)
rexml (3.4.4)
rouge (4.7.0)
rr (3.1.2)
rss (0.3.1)
rss (0.3.2)
rexml
ruby2_keywords (0.0.5)
sass-embedded (1.97.3)
sass-embedded (1.99.0)
google-protobuf (~> 4.31)
rake (>= 13)
sass-embedded (1.99.0-x86_64-linux-gnu)
google-protobuf (~> 4.31)
sassc-embedded (1.80.8)
sass-embedded (~> 1.80)
securerandom (0.3.2)
securerandom (0.4.1)
selma (0.4.15-x86_64-linux)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -211,35 +211,37 @@ GEM
unicode-display_width (>= 1.5, < 3.0)
unicode_utils (~> 1.4)
strings-ansi (0.2.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
terser (1.2.6)
terminal-table (4.0.0)
unicode-display_width (>= 1.1.1, < 4)
terser (1.2.7)
execjs (>= 0.3.0, < 3)
thin (1.8.2)
thin (2.0.1)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thor (1.4.0)
tilt (2.6.0)
logger
rack (>= 1, < 4)
thor (1.5.0)
tilt (2.7.0)
tsort (0.2.0)
tty-pager (0.14.0)
strings (~> 0.2.0)
tty-screen (~> 0.8)
tty-screen (0.8.1)
tty-screen (0.8.2)
typhoeus (1.6.0)
ethon (>= 0.18.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.3.0)
unicode-display_width (2.6.0)
unicode_utils (1.4.0)
unix_utils (0.0.15)
uri (1.1.1)
useragent (0.16.11)
webrick (1.9.2)
yajl-ruby (1.4.3)
zeitwerk (2.7.4)
zeitwerk (2.7.5)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
activesupport
Expand All @@ -255,7 +257,7 @@ DEPENDENCIES
newrelic_rpm
nokogiri
progress_bar
pry-byebug
pry
rack
rack-ssl-enforcer
rack-test
Expand All @@ -264,7 +266,7 @@ DEPENDENCIES
rr
rss
simplecov
sinatra
sinatra (~> 3.2)
sinatra-contrib
sprockets
sprockets-helpers
Expand All @@ -278,7 +280,7 @@ DEPENDENCIES
yajl-ruby

RUBY VERSION
ruby 3.4.8p72
ruby 4.0.2

BUNDLED WITH
2.4.6
4.0.10
2 changes: 0 additions & 2 deletions lib/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class App < Sinatra::Application
end

configure :development do
register Sinatra::Reloader

use BetterErrors::Middleware
BetterErrors.application_root = File.expand_path('..', __FILE__)
BetterErrors.editor = :sublime
Expand Down
12 changes: 12 additions & 0 deletions lib/docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,16 @@ def self.install_report(*names)
const_get("#{name}_subscriber".camelize).subscribe_to(self)
end
end

def self.pry
require 'pry'

Pry.config.input = STDIN
Pry.config.output = STDOUT
Pry.config.pager = false
Pry.config.color = true
Pry.config.quiet = false

Pry.start(binding)
end
end
3 changes: 1 addition & 2 deletions lib/docs/core/filter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

module Docs
class Filter < ::HTML::Pipeline::Filter
class Filter
def css(*args)
doc.css(*args)
end
Expand Down
Loading