From ecd8ba1fb60564c5cab36ad245e713e94f7e539c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 14 Jul 2024 13:36:03 +0800 Subject: [PATCH] wrapper-manager-fds/docs: init Ruby environment --- docs/.gitignore | 59 ++++++++ docs/Gemfile | 20 +++ docs/Gemfile.lock | 84 ++++++++++++ docs/default.nix | 4 +- docs/gemset.nix | 342 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 507 insertions(+), 2 deletions(-) create mode 100644 docs/Gemfile create mode 100644 docs/Gemfile.lock create mode 100644 docs/gemset.nix diff --git a/docs/.gitignore b/docs/.gitignore index da21e6a..b848859 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -14,3 +14,62 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock + +### Ruby ### +*.gem +*.rbc +/.config +/coverage/ +/InstalledFiles +/pkg/ +/spec/reports/ +/spec/examples.txt +/test/tmp/ +/test/version_tmp/ +/tmp/ + +# Used by dotenv library to load environment variables. +# .env + +# Ignore Byebug command history file. +.byebug_history + +## Specific to RubyMotion: +.dat* +.repl_history +build/ +*.bridgesupport +build-iPhoneOS/ +build-iPhoneSimulator/ + +## Specific to RubyMotion (use of CocoaPods): +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +# vendor/Pods/ + +## Documentation cache and generated files: +/.yardoc/ +/_yardoc/ +/doc/ +/rdoc/ + +## Environment normalization: +/.bundle/ +/vendor/bundle +/lib/bundler/man/ + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc + +# Used by RuboCop. Remote config files pulled in from inherit_from directive. +# .rubocop-https?--* + diff --git a/docs/Gemfile b/docs/Gemfile new file mode 100644 index 0000000..57481b8 --- /dev/null +++ b/docs/Gemfile @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' +gem 'asciidoctor' +gem 'asciidoctor-diagram' +gem 'asciidoctor-foodogsquared-extensions' +gem 'concurrent-ruby' +gem 'open-uri-cached' +gem 'rouge' +gem 'slim' +gem 'tilt' + +group :development do + gem 'rake' + gem 'ruby-lsp', require: false +end + +group :lint do + gem 'rubocop', require: false +end diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock new file mode 100644 index 0000000..7f412d7 --- /dev/null +++ b/docs/Gemfile.lock @@ -0,0 +1,84 @@ +GEM + remote: https://rubygems.org/ + specs: + asciidoctor (2.0.23) + asciidoctor-diagram (2.3.1) + asciidoctor (>= 1.5.7, < 3.x) + asciidoctor-diagram-ditaamini (~> 1.0) + asciidoctor-diagram-plantuml (~> 1.2021) + rexml + asciidoctor-diagram-batik (1.17) + asciidoctor-diagram-ditaamini (1.0.3) + asciidoctor-diagram-plantuml (1.2024.5) + asciidoctor-diagram-batik (~> 1.17) + asciidoctor-foodogsquared-extensions (1.2.1) + asciidoctor (~> 2.0) + rugged (~> 1.0) + ast (2.4.2) + concurrent-ruby (1.3.3) + json (2.7.2) + language_server-protocol (3.17.0.3) + logger (1.6.0) + open-uri-cached (1.0.0) + parallel (1.25.1) + parser (3.3.4.0) + ast (~> 2.4.1) + racc + prism (0.30.0) + racc (1.8.0) + rainbow (3.1.1) + rake (13.2.1) + rbs (3.5.2) + logger + regexp_parser (2.9.2) + rexml (3.3.1) + strscan + rouge (4.3.0) + rubocop (1.65.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.31.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.31.3) + parser (>= 3.3.1.0) + ruby-lsp (0.17.7) + language_server-protocol (~> 3.17.0) + prism (>= 0.29.0, < 0.31) + rbs (>= 3, < 4) + sorbet-runtime (>= 0.5.10782) + ruby-progressbar (1.13.0) + rugged (1.7.2) + slim (5.2.1) + temple (~> 0.10.0) + tilt (>= 2.1.0) + sorbet-runtime (0.5.11481) + strscan (3.1.0) + temple (0.10.3) + tilt (2.4.0) + unicode-display_width (2.5.0) + +PLATFORMS + ruby + x86_64-linux + +DEPENDENCIES + asciidoctor + asciidoctor-diagram + asciidoctor-foodogsquared-extensions + concurrent-ruby + open-uri-cached + rake + rouge + rubocop + ruby-lsp + slim + tilt + +BUNDLED WITH + 2.5.11 diff --git a/docs/default.nix b/docs/default.nix index a3ed530..6e0572b 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -4,12 +4,12 @@ in { pkgs ? import sources.nixos-unstable { } }: let - inherit (pkgs) nixosOptionDoc stdenv lib; + inherit (pkgs) nixosOptionsDoc stdenv lib; wrapperManagerLib = import ../lib/env.nix; wrapperManagerEval = wrapperManagerLib.eval { inherit pkgs; }; - optionsDoc = nixosOptionDoc { inherit (wrapperManagerEval) options; }; + optionsDoc = nixosOptionsDoc { inherit (wrapperManagerEval) options; }; gems = pkgs.bundlerEnv { name = "wrapper-manager-fds-gem-env"; diff --git a/docs/gemset.nix b/docs/gemset.nix new file mode 100644 index 0000000..1b5f391 --- /dev/null +++ b/docs/gemset.nix @@ -0,0 +1,342 @@ +{ + asciidoctor = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1wyxgwmnz9bw377r3lba26b090hbsq9qnbw8575a1prpy83qh82j"; + type = "gem"; + }; + version = "2.0.23"; + }; + asciidoctor-diagram = { + dependencies = ["asciidoctor" "asciidoctor-diagram-ditaamini" "asciidoctor-diagram-plantuml" "rexml"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1214scxm36k409gfy3wilfqx3akrm52r530zmra6cmmf6d22c5q4"; + type = "gem"; + }; + version = "2.3.1"; + }; + asciidoctor-diagram-batik = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0220xqxmkmimxmhsqhlbr0hslijvnhzdds3s6h6fxbxqrrmm0jrl"; + type = "gem"; + }; + version = "1.17"; + }; + asciidoctor-diagram-ditaamini = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "13h65bfbq7hc7z3kqn0m28w9c6ap7fikpjcvsdga6jg01slb4c56"; + type = "gem"; + }; + version = "1.0.3"; + }; + asciidoctor-diagram-plantuml = { + dependencies = ["asciidoctor-diagram-batik"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1ppl5nsq40x11731ciahi89k5yvszlm12pml1pqaj0lwbi7ww6x0"; + type = "gem"; + }; + version = "1.2024.5"; + }; + asciidoctor-foodogsquared-extensions = { + dependencies = ["asciidoctor" "rugged"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0fm6shyysj51wi4s7nnb643j2mphp68fh44gmr83x8n613hg9a4l"; + type = "gem"; + }; + version = "1.2.1"; + }; + ast = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "04nc8x27hlzlrr5c2gn7mar4vdr0apw5xg22wp6m8dx3wqr04a0y"; + type = "gem"; + }; + version = "2.4.2"; + }; + concurrent-ruby = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0skwdasxq7mnlcccn6aqabl7n9r3jd7k19ryzlzzip64cn4x572g"; + type = "gem"; + }; + version = "1.3.3"; + }; + json = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0b4qsi8gay7ncmigr0pnbxyb17y3h8kavdyhsh7nrlqwr35vb60q"; + type = "gem"; + }; + version = "2.7.2"; + }; + language_server-protocol = { + groups = ["default" "development" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0gvb1j8xsqxms9mww01rmdl78zkd72zgxaap56bhv8j45z05hp1x"; + type = "gem"; + }; + version = "3.17.0.3"; + }; + logger = { + groups = ["default" "development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0gpg8gzi0xwymw4aaq2iafcbx31i3xzkg3fb30mdxn1d4qhc3dqa"; + type = "gem"; + }; + version = "1.6.0"; + }; + open-uri-cached = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "03v0if3jlvbclnd6jgjk94fbhf0h2fq1wxr0mbx7018sxzm0biwr"; + type = "gem"; + }; + version = "1.0.0"; + }; + parallel = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "145bn5q7ysnjj02jdf1x4nc1f0xxrv7ihgz9yr1j7sinmawqkq0j"; + type = "gem"; + }; + version = "1.25.1"; + }; + parser = { + dependencies = ["ast" "racc"]; + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "10ly2wind06nylyqa5724ld2l0l46d3ag4fm04ifjgw7qdlpf94d"; + type = "gem"; + }; + version = "3.3.4.0"; + }; + prism = { + groups = ["default" "development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "05j9bcxdz6wfnrjn32zvdwj1qsbp88mwx3rv7g256gziya6avc2r"; + type = "gem"; + }; + version = "0.30.0"; + }; + racc = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "021s7maw0c4d9a6s07vbmllrzqsj2sgmrwimlh8ffkvwqdjrld09"; + type = "gem"; + }; + version = "1.8.0"; + }; + rainbow = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0smwg4mii0fm38pyb5fddbmrdpifwv22zv3d3px2xx497am93503"; + type = "gem"; + }; + version = "3.1.1"; + }; + rake = { + groups = ["development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "17850wcwkgi30p7yqh60960ypn7yibacjjha0av78zaxwvd3ijs6"; + type = "gem"; + }; + version = "13.2.1"; + }; + rbs = { + dependencies = ["logger"]; + groups = ["default" "development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1fzk0a3d68fglnkwpaz07npi929y1kh2hh1j63y04943vvshyjmc"; + type = "gem"; + }; + version = "3.5.2"; + }; + regexp_parser = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0ik40vcv7mqigsfpqpca36hpmnx0536xa825ai5qlkv3mmkyf9ss"; + type = "gem"; + }; + version = "2.9.2"; + }; + rexml = { + dependencies = ["strscan"]; + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "09f3sw7f846fpcpwdm362ylqldwqxpym6z0qpld4av7zisrrzbrl"; + type = "gem"; + }; + version = "3.3.1"; + }; + rouge = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "072qvvrcqj0yfr3b0j932mlhvn41i38bq37z7z07i3ikagndkqwy"; + type = "gem"; + }; + version = "4.3.0"; + }; + rubocop = { + dependencies = ["json" "language_server-protocol" "parallel" "parser" "rainbow" "regexp_parser" "rexml" "rubocop-ast" "ruby-progressbar" "unicode-display_width"]; + groups = ["lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "18g462bccr0rvszc7kirr89laggdf6254p7pqsckk3izg901chv2"; + type = "gem"; + }; + version = "1.65.0"; + }; + rubocop-ast = { + dependencies = ["parser"]; + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "063qgvqbyv354icl2sgx758z22wzq38hd9skc3n96sbpv0cdc1qv"; + type = "gem"; + }; + version = "1.31.3"; + }; + ruby-lsp = { + dependencies = ["language_server-protocol" "prism" "rbs" "sorbet-runtime"]; + groups = ["development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1kvyk0cald1cw6fqxy5w68la1gnc1nv2mqx8myijjsbcf9npjbp8"; + type = "gem"; + }; + version = "0.17.7"; + }; + ruby-progressbar = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0cwvyb7j47m7wihpfaq7rc47zwwx9k4v7iqd9s1xch5nm53rrz40"; + type = "gem"; + }; + version = "1.13.0"; + }; + rugged = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1sccng15h8h3mcjxfgvxy85lfpswbj0nhmzwwsqdffbzqgsb2jch"; + type = "gem"; + }; + version = "1.7.2"; + }; + slim = { + dependencies = ["temple" "tilt"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1rqk7jn66wgx50b18ndhbppjq55rbcwgqg1rbhnhxwiggvzisdbj"; + type = "gem"; + }; + version = "5.2.1"; + }; + sorbet-runtime = { + groups = ["default" "development"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "122702d5cmrbaydcqfjksh1d78g0mq69h77zd4yljwjrc50jz70b"; + type = "gem"; + }; + version = "0.5.11481"; + }; + strscan = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0mamrl7pxacbc79ny5hzmakc9grbjysm3yy6119ppgsg44fsif01"; + type = "gem"; + }; + version = "3.1.0"; + }; + temple = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0fwia5hvc1xz9w7vprzjnsym3v9j5l9ggdvy70jixbvpcpz4acfz"; + type = "gem"; + }; + version = "0.10.3"; + }; + tilt = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0kds7wkxmb038cwp6ravnwn8k65ixc68wpm8j5jx5bhx8ndg4x6z"; + type = "gem"; + }; + version = "2.4.0"; + }; + unicode-display_width = { + groups = ["default" "lint"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1d0azx233nags5jx3fqyr23qa2rhgzbhv8pxp46dgbg1mpf82xky"; + type = "gem"; + }; + version = "2.5.0"; + }; +}