From 603a1ae01ad805b6448bc9afa069f547fa8b6425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Mon, 16 Sep 2024 22:19:31 +0200 Subject: [PATCH] add dorian gem --- Gemfile | 2 ++ Gemfile.lock | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ bin/dorian | 27 ++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100755 bin/dorian diff --git a/Gemfile b/Gemfile index d23dec7..868f5e1 100644 --- a/Gemfile +++ b/Gemfile @@ -18,3 +18,5 @@ gem "rubocop-rspec" gem "rubocop-rspec_rails" gem "rubocop-capybara" + +gem "dorian", "~> 2.5" diff --git a/Gemfile.lock b/Gemfile.lock index da7456b..f055b17 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,31 +18,83 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) ast (2.4.2) base64 (0.2.0) bigdecimal (3.1.8) bundler-audit (0.9.2) bundler (>= 1.2.0, < 3) thor (~> 1.0) + cmdparse (3.0.7) concurrent-ruby (1.3.4) connection_pool (2.4.1) + csv (3.3.0) diff-lcs (1.5.1) + dorian (2.5.1) + csv + dorian-arguments + dorian-eval + dorian-progress + dorian-to_struct + git + hexapdf + json + mini_racer + ostruct + parallel + syntax_tree + syntax_tree-haml + syntax_tree-xml + terminal-table + w_syntax_tree-erb + yaml dorian-arguments (1.2.2) bigdecimal + dorian-eval (1.4.3) + yaml + dorian-progress (1.1.2) + ruby-progressbar + dorian-to_struct (2.0.2) drb (2.2.1) + geom2d (0.4.1) + git (2.3.0) + activesupport (>= 5.0) + addressable (~> 2.8) + process_executer (~> 1.1) + rchardet (~> 1.8) + haml (6.3.0) + temple (>= 0.8.2) + thor + tilt + hexapdf (0.47.0) + cmdparse (~> 3.0, >= 3.0.3) + geom2d (~> 0.4, >= 0.4.1) + openssl (>= 2.2.1) i18n (1.14.6) concurrent-ruby (~> 1.0) json (2.7.2) language_server-protocol (3.17.0.3) + libv8-node (18.19.0.0) + libv8-node (18.19.0.0-arm64-darwin) + libv8-node (18.19.0.0-x86_64-linux) logger (1.6.1) + mini_racer (0.16.0) + libv8-node (~> 18.19.0.0) minitest (5.25.1) + openssl (3.2.0) + ostruct (0.6.0) parallel (1.26.3) parser (3.3.5.0) ast (~> 2.4.1) racc + prettier_print (1.2.1) + process_executer (1.1.0) + public_suffix (6.0.1) racc (1.8.1) rack (3.1.7) rainbow (3.1.1) + rchardet (1.8.0) regexp_parser (2.9.2) rspec (3.13.0) rspec-core (~> 3.13.0) @@ -90,10 +142,27 @@ GEM rubocop-rspec (~> 3, >= 3.0.1) ruby-progressbar (1.13.0) securerandom (0.3.1) + syntax_tree (6.2.0) + prettier_print (>= 1.2.0) + syntax_tree-haml (4.0.3) + haml (>= 5.2) + prettier_print (>= 1.2.1) + syntax_tree (>= 6.0.0) + syntax_tree-xml (0.1.0) + prettier_print + syntax_tree (>= 2.0.1) + temple (0.10.3) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) thor (1.3.2) + tilt (2.4.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) + w_syntax_tree-erb (0.12.0) + prettier_print (~> 1.2, >= 1.2.0) + syntax_tree (~> 6.1, >= 6.1.1) + yaml (0.3.0) PLATFORMS arm64-darwin-23 @@ -102,6 +171,7 @@ PLATFORMS DEPENDENCIES bundler-audit + dorian (~> 2.5) dorian-write! rspec rubocop-capybara diff --git a/bin/dorian b/bin/dorian new file mode 100755 index 0000000..1b80e1d --- /dev/null +++ b/bin/dorian @@ -0,0 +1,27 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'dorian' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) + +bundle_binstub = File.expand_path("bundle", __dir__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("dorian", "dorian")