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 .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.4
3.4.7
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: xenial
dist: jammy
language: ruby
rvm:
- "2.6.4"
- "3.4"

cache: bundler

Expand All @@ -14,4 +14,5 @@ env:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

before_install:
- sudo apt install optipng
- sudo apt-get update
- sudo apt-get install -y optipng
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Ruby runtime as a parent image
FROM ruby:2.6.4
FROM ruby:3.4.7

# Install program to configure locales
RUN apt-get update && \
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ source 'https://rubygems.org'
## If you update the version here, also update it in .travis.yml, .ruby-version,
## and README.md. Then push your branch and make sure Travis supports that
## version.
ruby '2.6.4'
ruby '~> 3.4.0'

## If you add a new Gem below, run `bundle install` to install it.
group :development do
gem 'jekyll'
gem 'logger' # Required by Jekyll, will be removed from default gems in Ruby 3.5
gem "minima", "~> 2.0" ## Default Jekyll theme
gem 'jekyll-redirect-from'
end
Expand Down
201 changes: 131 additions & 70 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,98 +1,158 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
Ascii85 (2.0.1)
addressable (2.8.8)
public_suffix (>= 2.0.2, < 8.0)
afm (1.0.0)
async (2.35.0)
console (~> 1.29)
fiber-annotation
io-event (~> 1.11)
metrics (~> 0.12)
traces (~> 0.18)
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (3.3.1)
chef-utils (18.8.54)
concurrent-ruby
colorator (1.1.0)
concurrent-ruby (1.1.5)
em-websocket (0.5.1)
concurrent-ruby (1.3.5)
console (1.34.2)
fiber-annotation
fiber-local (~> 1.1)
json
csv (3.3.5)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
http_parser.rb (~> 0)
ethon (0.15.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.11.3)
ffi (1.17.2)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
fiber-storage
fiber-storage (1.0.1)
forwardable-extended (2.6.0)
html-proofer (3.15.0)
google-protobuf (4.33.1)
bigdecimal
rake (>= 13)
hashery (2.1.2)
html-proofer (5.1.1)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogumbo (~> 2.0)
parallel (~> 1.3)
async (~> 2.1)
benchmark (~> 0.5)
nokogiri (~> 1.13)
pdf-reader (~> 2.11)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
jekyll (3.8.3)
io-event (1.14.2)
jekyll (4.4.1)
addressable (~> 2.4)
base64 (~> 0.2)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
json (~> 2.6)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.3.3)
mercenary (~> 0.3, >= 0.3.6)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
jekyll-feed (0.10.0)
jekyll (~> 3.3)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.4.0)
jekyll (~> 3.3)
jekyll-watch (2.0.0)
jekyll-sass-converter (3.1.0)
sass-embedded (~> 1.75)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
json-schema (2.8.1)
addressable (>= 2.4)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.1)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
mdl (0.6.0)
kramdown (~> 1.12, >= 1.12.0)
mixlib-cli (~> 2.1, >= 2.1.1)
mixlib-config (~> 2.2, >= 2.2.1)
mercenary (0.3.6)
mini_portile2 (2.4.0)
minima (2.5.0)
jekyll (~> 3.5)
json (2.16.0)
json-schema (6.0.0)
addressable (~> 2.8)
bigdecimal (~> 3.1)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.7.0)
mdl (0.15.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
mixlib-cli
mixlib-config
mixlib-shellout
mercenary (0.4.0)
metrics (0.15.0)
mini_portile2 (2.8.9)
minima (2.5.2)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
mixlib-cli (2.1.1)
mixlib-config (2.2.18)
mixlib-cli (2.1.8)
mixlib-config (3.0.27)
tomlrb
nokogiri (1.10.7)
mini_portile2 (~> 2.4.0)
nokogumbo (2.0.2)
nokogiri (~> 1.8, >= 1.8.4)
parallel (1.19.1)
parslet (1.8.2)
pathutil (0.16.1)
mixlib-shellout (3.3.9)
chef-utils
nokogiri (1.18.10)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parslet (2.0.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.1)
rainbow (3.0.0)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.1.1)
safe_yaml (1.0.4)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
toml (0.2.0)
parslet (~> 1.8.0)
tomlrb (1.2.9)
typhoeus (1.3.1)
ethon (>= 0.9.0)
yell (2.2.0)
pdf-reader (2.15.0)
Ascii85 (>= 1.0, < 3.0, != 2.0.0)
afm (>= 0.2.1, < 2)
hashery (~> 2.0)
ruby-rc4
ttfunk
public_suffix (7.0.0)
racc (1.8.1)
rainbow (3.1.1)
rake (13.3.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.4.4)
rouge (4.6.1)
ruby-rc4 (0.1.5)
safe_yaml (1.0.5)
sass-embedded (1.94.2)
google-protobuf (~> 4.31)
rake (>= 13)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
toml (0.3.0)
parslet (>= 1.8.0, < 3.0.0)
tomlrb (2.0.3)
traces (0.18.2)
ttfunk (1.8.0)
bigdecimal (~> 3.1)
typhoeus (1.5.0)
ethon (>= 0.9.0, < 0.16.0)
unicode-display_width (2.6.0)
webrick (1.9.2)
yell (2.2.2)
zeitwerk (2.7.3)

PLATFORMS
ruby
Expand All @@ -102,9 +162,10 @@ DEPENDENCIES
jekyll
jekyll-redirect-from
json-schema
logger
mdl
minima (~> 2.0)
toml

RUBY VERSION
ruby 2.6.4p104
ruby 3.4.7p58
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ preview:
_site/*/topics/categories/index.html \
_site/*/topics/dates/index.html \
_site/*/topics/index.html
bundle exec jekyll serve --host 0.0.0.0 $(JEKYLL_FLAGS)
## Build with dev config (for correct redirect URLs), then serve
bundle exec jekyll build --config _config.yml,_config_dev.yml $(JEKYLL_FLAGS) && \
bundle exec jekyll serve --host 0.0.0.0 --skip-initial-build $(JEKYLL_FLAGS)

build:
@# Tiny sleep for when running concurrently to ensure output
Expand Down Expand Up @@ -109,7 +111,7 @@ test-after-build: build
done | grep .

## Check for broken links
bundle exec htmlproofer --check-html --disable-external --url-ignore '/^\/bin/.*/' ./_site
bundle exec htmlproofer --disable-external --no-enforce-https --ignore-urls '/^\/bin/.*/' ./_site

## Tests to run last because they identify problems that may not be fixable during initial commit review.
## However, these should not be still failing when the site goes to production
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ following command:

**Install Ruby**

To install Ruby 2.6.4, simply run this command:
To install Ruby 3.4, simply run this command:

rvm install 2.6.4
rvm install 3.4

Sometimes this will find a pre-compiled Ruby package for your Linux
distribution, but sometimes it will need to compile Ruby from scratch
(which takes about 15 minutes).

After Ruby 2.6.4 is installed, make it your default Ruby:
After Ruby 3.4 is installed, make it your default Ruby:

rvm alias create default ruby-2.6.4
rvm alias create default ruby-3.4

And tell your system to use it:

Expand Down
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ author: "Bitcoin Optech" ## Default author name for blog posts
# Build settings
markdown: kramdown
theme: minima
sass:
# quiet_deps silences warnings from dependencies loaded via sass_dir
quiet_deps: true
# Silence @import deprecation warnings - migration to @use/@forward requires
# significant refactoring of minima theme. Track: https://sass-lang.com/d/import
silence_deprecations:
- import
plugins:
- jekyll-feed
- jekyll-redirect-from
Expand Down
3 changes: 3 additions & 0 deletions _config_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Development overrides - used by `make preview`
# Ensures redirects work correctly when serving via Docker
url: "http://localhost:4000"
4 changes: 2 additions & 2 deletions _contrib/schema-validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
to_validate = ARGV[1]

file = File.open(schema_file, 'r')
schema = YAML.load(file)
schema = YAML.load(file, aliases: true, permitted_classes: [Date])
file.close()

file = File.open(to_validate, 'r')
if to_validate.end_with?(".yaml") or to_validate.end_with?(".md")
document = YAML.load(file)
document = YAML.load(file, aliases: true, permitted_classes: [Date])
elsif to_validate.end_with?(".toml")
document = TOML.load_file(file)
else
Expand Down
2 changes: 1 addition & 1 deletion _includes/functions/podcast-note.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(<a title="Play this segment of the podcast" onClick="seek('{{include.timestamp}}')" class="seek">{{include.timestamp}}</a><noscript>{{include.timestamp}}</noscript>)
(<a href="javascript:void(0)" title="Play this segment of the podcast" onClick="seek('{{include.timestamp}}')" class="seek">{{include.timestamp}}</a><noscript>{{include.timestamp}}</noscript>)
{% if include.reference %}<a href="{{include.reference}}{{include.slug}}">
<i class="fa fa-link" title="Link to related content"></i>
</a>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _posts/en/newsletters/2018-11-06-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ repo].*
[bech32 patch]: https://github.com/sipa/bech32/commit/2b0aac650ce560fb2b2a2bebeacaa5c87d7e5938
[Bitcoin Core 0.17.0.1]: https://bitcoincore.org/en/releases/0.17.0.1/
[bech32 overflow blog]: https://blog.trezor.io/details-about-the-security-updates-in-trezor-one-firmware-1-7-1-5c34278425d8
[bech32 refs]: //github.com/sipa/bech32/tree/master/ref/
[bech32 refs]: https://github.com/sipa/bech32/tree/master/ref/
[trezor-crypto]: https://github.com/trezor/trezor-crypto/
[cashaddr patch]: https://github.com/trezor/trezor-crypto/commit/2bbbc3e15573294c6dd0273d2a8542ba42507eb0
[ln bolt11 ss]: https://gnusha.org/url/https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-November/001489.html
Expand Down
2 changes: 1 addition & 1 deletion _posts/en/newsletters/2020-04-08-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ hidden service if enabled at [the command line][watchtower tor].
[uSEkaCIO email]: https://gnusha.org/url/https://lists.linuxfoundation.org/pipermail/lightning-dev/2019-November/002316.html
[jonasnick otves]: https://github.com/jonasnick/secp256k1/pull/14/
[nkohen otves]: https://github.com/bitcoin-s/bitcoin-s/pull/1302
[lnd psbt]: //github.com/lightningnetwork/lnd/blob/master/docs/psbt.md
[lnd psbt]: https://github.com/lightningnetwork/lnd/blob/master/docs/psbt.md
[review club 18238]: https://bitcoincore.reviews/18238.html
[wtxid transaction relay]: https://bitcoincore.reviews/18044
[watchtower tor]: https://github.com/lightningnetwork/lnd/blob/master/docs/watchtower.md#tor-hidden-services
Expand Down
2 changes: 1 addition & 1 deletion _posts/hi/newsletters/2022-06-08-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Pieter Wuille द्वारा पीआर, [descriptors][topic descriptors]
गैर-Miniscript के रूप में पार्स किया जाता है।"
a3link="https://bitcoincore.reviews/24148-2#l-30"

q4="उपलब्ध पर्याप्तता मानदंड में से चयन करते समय हमें छोटी स्क्रिप्ट के बजाय सबसे कम हस्ताक्षर वाल
q4="<!--fewer-signatures-->उपलब्ध पर्याप्तता मानदंड में से चयन करते समय हमें छोटी स्क्रिप्ट के बजाय सबसे कम हस्ताक्षर वाल
को प्राथमिकता क्यों देनी चाहिए?"
a4="एक तृतीय पक्ष (अर्थात, जिसकी निजी कुंजी तक पहुंच नहीं है) लेन-देन के साथ छेड़छाड़ करने का
प्रयास करके हस्ताक्षर हटा सकता हैं, लेकिन एक नया हस्ताक्षर नहीं बना सकता। अतिरिक्त हस्ताक्षरों के साथ
Expand Down
2 changes: 1 addition & 1 deletion _posts/ja/newsletters/2023-08-09-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Bitcoin Coreのウォレットに[サイレントペイメント][topic silent p
(またはすべての機能を失うことがない)ようにするために重要です。"
a2link="https://bitcoincore.reviews/28122#l-170"

q3="新しいバージョンが意図的に互換性を破壊したい場合は?"
q3="<!--version-number-->新しいバージョンが意図的に互換性を破壊したい場合は?"
a3="v31が互換性を破壊するようなアップグレードのために予約されています。"
a3link="https://bitcoincore.reviews/28122#l-186"

Expand Down
Loading