Skip to content

Commit

Permalink
add dorian gem and binstub
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Sep 16, 2024
1 parent 11da758 commit 34b2f00
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ gem "rubocop-rspec"
gem "rubocop-rspec_rails"

gem "rubocop-capybara"

gem "dorian", "~> 2.5"
60 changes: 60 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,69 @@ GEM
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)
Expand Down Expand Up @@ -103,14 +145,31 @@ 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)
tiktoken_ruby (0.0.9)
rb_sys (= 0.9.87)
tiktoken_ruby (0.0.9-arm64-darwin)
tiktoken_ruby (0.0.9-x86_64-linux)
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
Expand All @@ -119,6 +178,7 @@ PLATFORMS

DEPENDENCIES
bundler-audit
dorian (~> 2.5)
dorian-commit!
rspec
rubocop-capybara
Expand Down
27 changes: 27 additions & 0 deletions bin/dorian
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 34b2f00

Please sign in to comment.