Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c5ceabb
Bump nokogiri from 1.10.7 to 1.10.8 in /compiler
dependabot[bot] Jun 23, 2020
52dbf7a
Bump rack from 2.1.1 to 2.2.3 in /viewer
dependabot[bot] Jun 25, 2020
1d24320
Merge pull request #5 from lbrito1/dependabot/bundler/viewer/rack-2.2.3
lbrito1 Jul 3, 2020
1e9b1dd
Merge pull request #3 from lbrito1/dependabot/bundler/compiler/nokogi…
lbrito1 Jul 3, 2020
b569707
Updates static files (automated).
lbrito1 Aug 30, 2021
714f025
Updates tracker.
lbrito1 Aug 30, 2021
30eccea
Updates static files (automated).
lbrito1 Aug 30, 2021
beba147
Updates base_url to point to Github pasges.
lbrito1 Dec 17, 2021
dffb29f
Updates static files (automated).
lbrito1 Dec 17, 2021
cdd09d6
Updates gem versions.
lbrito1 Dec 17, 2021
2fee384
Updates Rules.
lbrito1 Dec 17, 2021
f9b58f8
Updates static files (automated).
lbrito1 Dec 17, 2021
e3f6c37
Updates static files (automated).
lbrito1 Dec 17, 2021
950ae46
Updates Rules.
lbrito1 Dec 17, 2021
61eeee1
Updates static files (automated).
lbrito1 Dec 17, 2021
56ff133
Updates static files (automated).
lbrito1 Dec 17, 2021
2acd29d
Updates ruby version.
lbrito1 Dec 17, 2021
6003090
Updates static files (automated).
lbrito1 Dec 17, 2021
f5e3aba
Updates static files (automated).
lbrito1 Dec 17, 2021
e2a7812
Removes .ruby-version.
lbrito1 Dec 17, 2021
7d7a75c
Updates static files (automated).
lbrito1 Dec 17, 2021
80660ca
Adds .ruby-version.
lbrito1 Dec 17, 2021
5bada0b
Updates gemfile.
lbrito1 Dec 17, 2021
f87cb0f
Updates static files (automated).
lbrito1 Dec 17, 2021
7e4418a
Updates static files (automated).
lbrito1 Dec 17, 2021
748653d
Updates static files (automated).
lbrito1 May 1, 2022
de89c40
Updates static files (automated).
lbrito1 May 1, 2022
82311e3
Updates static files (automated).
lbrito1 May 1, 2022
88a4ef2
Updates static files (automated).
lbrito1 May 1, 2022
8ae11e6
Updates static files (automated).
lbrito1 May 1, 2022
4c7a768
Updates static files (automated).
lbrito1 May 1, 2022
836f75c
Updates static files (automated).
lbrito1 May 1, 2022
8a0da9b
Updates static files (automated).
lbrito1 May 10, 2022
483e27c
Updates static files (automated).
lbrito1 May 19, 2022
d9ccd0a
Improves layout.
lbrito1 May 21, 2022
16f155f
Adds colors per category.
lbrito1 May 22, 2022
998b4e1
Removes old tracker.
lbrito1 May 22, 2022
d340807
Updates static files (automated).
lbrito1 May 22, 2022
aa25825
Updates static files (automated).
lbrito1 May 22, 2022
8916151
Updates static files (automated).
lbrito1 Jun 8, 2022
9c87fab
Updates static files (automated).
lbrito1 Jul 9, 2022
abf17ea
Bump nokogiri from 1.12.5 to 1.14.3 in /compiler
dependabot[bot] Apr 12, 2023
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 .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
2.7.4
2 changes: 1 addition & 1 deletion cache.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion compiler/.ruby-version
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
2.7.4
4 changes: 2 additions & 2 deletions compiler/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org' do
ruby '~> 2.6.5'
ruby '~> 2.7.4'

gem 'nokogiri'
gem "nokogiri", ">= 1.12.5"

group :development do
gem 'byebug'
Expand Down
20 changes: 14 additions & 6 deletions compiler/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
GEM
specs:

GEM
remote: https://rubygems.org/
specs:
awesome_print (1.8.0)
byebug (11.0.1)
mini_portile2 (2.4.0)
nokogiri (1.10.7)
mini_portile2 (~> 2.4.0)
mini_portile2 (2.8.1)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.14.3-x86_64-linux)
racc (~> 1.4)
racc (1.6.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
awesome_print!
byebug!
nokogiri!
nokogiri (>= 1.12.5)!

RUBY VERSION
ruby 2.6.5p114
ruby 2.7.4p191

BUNDLED WITH
2.1.4
2.2.1
3 changes: 1 addition & 2 deletions compiler/app/crawler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def call

log("Done, wrote #{bytes} bytes.")
rescue StandardError => e
byebug
log("Something went wrong!")
log("Something went wrong! #{e.inspect}")
end

private
Expand Down
2 changes: 1 addition & 1 deletion compiler/app/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def call

def get(url)
sleep(THROTTLE_MS / 1_000.0)
Nokogiri::HTML(open(url))
Nokogiri::HTML(URI.open(url))
end
end

7 changes: 6 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo ">>>> Crawling site..."
cd compiler
bundle install
cd -
# ruby -e 'require "./compiler/app/crawler"; Crawler.new.call'
ruby -e 'require "./compiler/app/crawler"; Crawler.new.call'

# Regenerates the static site
cd viewer
Expand All @@ -15,6 +15,11 @@ git checkout development

echo ">>>> Calling nanoc..."
bundle install

echo "---
id: $(date +'%Y')
---" > "content/year/$(date +'%Y').html"

nanoc

cd -
Expand Down
2 changes: 1 addition & 1 deletion viewer/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
2.7.4
5 changes: 3 additions & 2 deletions viewer/Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
source 'https://rubygems.org' do
ruby '~> 2.6.5'
ruby '~> 2.7.4'

gem 'nanoc'

group :development do
gem 'nokogiri'
gem 'adsf'
gem 'guard'
gem 'byebug'
gem 'awesome_print'
gem 'i18n'
gem 'activesupport'
gem "activesupport", ">= 6.0.3.1"
end

group :nanoc do
Expand Down
147 changes: 72 additions & 75 deletions viewer/Gemfile.lock
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,139 +1,136 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.0)
activesupport (7.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.1, >= 2.1.8)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
adsf (1.4.2)
rack (>= 1.0.0, < 3.0.0)
awesome_print (1.8.0)
byebug (11.0.1)
coderay (1.1.2)
coderay (1.1.3)
colored (1.2)
concurrent-ruby (1.1.5)
cri (2.15.9)
concurrent-ruby (1.1.9)
cri (2.15.11)
ddmemoize (1.0.0)
ddmetrics (~> 1.0)
ref (~> 2.0)
ddmetrics (1.0.1)
ddplugin (1.0.2)
diff-lcs (1.3)
equatable (0.6.1)
ffi (1.11.1)
formatador (0.2.5)
guard (2.15.0)
ddplugin (1.0.3)
diff-lcs (1.4.4)
ffi (1.15.4)
formatador (0.3.0)
guard (2.18.0)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-nanoc (2.1.6)
guard-nanoc (2.1.9)
guard (~> 2.8)
guard-compat (~> 1.0)
nanoc (>= 4.3.8, < 5.0)
nanoc-cli (~> 4.11, >= 4.11.14)
nanoc-core (~> 4.11, >= 4.11.14)
hamster (3.0.0)
concurrent-ruby (~> 1.0)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
json_schema (0.20.7)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
lumberjack (1.0.13)
method_source (0.9.2)
minitest (5.14.0)
nanoc (4.11.7)
json_schema (0.21.0)
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.8)
method_source (1.0.0)
mini_portile2 (2.6.1)
minitest (5.15.0)
nanoc (4.12.3)
addressable (~> 2.5)
colored (~> 1.2)
cri (~> 2.15)
nanoc-core (= 4.11.7)
nanoc-checking (~> 1.0)
nanoc-cli (= 4.12.3)
nanoc-core (= 4.12.3)
nanoc-deploying (~> 1.0)
parallel (~> 1.12)
tomlrb (~> 1.2)
tty-command (~> 0.8)
tty-file (~> 0.7)
tty-platform (~> 0.2)
tty-which (~> 0.4)
nanoc-core (4.11.7)
nanoc-checking (1.0.1)
nanoc-cli (~> 4.11, >= 4.11.15)
nanoc-core (~> 4.11, >= 4.11.15)
nanoc-cli (4.12.3)
cri (~> 2.15)
diff-lcs (~> 1.3)
nanoc-core (= 4.12.3)
zeitwerk (~> 2.1)
nanoc-core (4.12.3)
concurrent-ruby (~> 1.1)
ddmemoize (~> 1.0)
ddmetrics (~> 1.0)
ddplugin (~> 1.0)
hamster (~> 3.0)
json_schema (~> 0.19)
slow_enumerator_tools (~> 1.0)
tty-platform (~> 0.2)
zeitwerk (~> 2.1)
necromancer (0.5.0)
nanoc-deploying (1.0.1)
nanoc-checking (~> 1.0)
nanoc-cli (~> 4.11, >= 4.11.15)
nanoc-core (~> 4.11, >= 4.11.15)
nenv (0.3.0)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
parallel (1.17.0)
pastel (0.7.3)
equatable (~> 0.6)
parallel (1.21.0)
pastel (0.8.0)
tty-color (~> 0.5)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.1.1)
rack (2.1.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
racc (1.6.0)
rack (2.2.3)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
ref (2.0.0)
ruby_dep (1.5.0)
shellany (0.0.1)
slow_enumerator_tools (1.1.0)
thor (0.20.3)
thread_safe (0.3.6)
tomlrb (1.2.8)
tty-color (0.5.0)
tty-command (0.8.2)
pastel (~> 0.7.0)
tty-cursor (0.7.0)
tty-file (0.8.0)
diff-lcs (~> 1.3)
pastel (~> 0.7.2)
tty-prompt (~> 0.18)
tty-platform (0.2.1)
tty-prompt (0.19.0)
necromancer (~> 0.5.0)
pastel (~> 0.7.0)
tty-reader (~> 0.6.0)
tty-reader (0.6.0)
tty-cursor (~> 0.7)
tty-screen (~> 0.7)
wisper (~> 2.0.0)
tty-screen (0.7.0)
tty-which (0.4.1)
tzinfo (1.2.6)
thread_safe (~> 0.1)
wisper (2.0.0)
zeitwerk (2.1.9)
thor (1.1.0)
tty-color (0.6.0)
tty-command (0.10.1)
pastel (~> 0.8)
tty-platform (0.3.0)
tty-which (0.5.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.5.1)

PLATFORMS
ruby

DEPENDENCIES
activesupport!
activesupport (>= 6.0.3.1)!
adsf!
awesome_print!
byebug!
guard!
guard-nanoc!
i18n!
nanoc!
nokogiri!

RUBY VERSION
ruby 2.6.5p114
ruby 2.7.4p191

BUNDLED WITH
1.17.3
2.1.4
16 changes: 16 additions & 0 deletions viewer/Rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,38 @@
compile '/index.html' do
filter :erb
layout '/posts_by_year.*', locals: { year: Time.now.year }
filter :relativize_paths, type: :html5
write '/index.html'
end

compile '/year/*.html' do
year = item.identifier
filter :erb
layout '/posts_by_year.*', locals: { year: item[:id] }
filter :relativize_paths, type: :html5
write "/#{item[:id]}.html"
end

compile '/category/*.html' do
filter :erb
layout '/category.*', locals: { name: item[:id] }
filter :relativize_paths, type: :html5
write "/#{I18n.transliterate(item[:id])}.html"
end

# rss feed
compile "/feed.erb" do
filter :erb
filter :relativize_paths, type: :html5
write "/feed.xml"
end

# Assets
compile '/**/*.css' do
filter :relativize_paths, type: :css
write @item.identifier.without_ext + '.css'
end

compile '/**/*' do
write item.identifier.to_s
end
Expand Down
Loading