File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/next_rails/bundle_report Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33require "optparse"
44require "next_rails"
55require "next_rails/bundle_report"
6+ require 'byebug'
67
78class NextRails ::BundleReport ::CLI
89 def initialize ( argv )
@@ -21,11 +22,11 @@ def validate_arguments(argv)
2122 end
2223
2324 argv . each do |arg |
24- if arg . start_with? ( "--rails-version" ) && !arg . match? ( /--rails-version=+\d +(\. \d +)*$/ )
25+ if arg . start_with? ( "--rails-version" ) && !/--rails-version=+\d +(\. \d +)*$/ . match ( arg )
2526 raise ArgumentError , "Invalid Rails version format. Example: --rails-version=5.0.7"
2627 end
2728
28- if arg . start_with? ( "--ruby-version" ) && !arg . match? ( /--ruby-version=+\d +(\. \d +)*$/ )
29+ if arg . start_with? ( "--ruby-version" ) && !/--ruby-version=+\d +(\. \d +)*$/ . match ( arg )
2930 raise ArgumentError , "Invalid Ruby version format. Example: --ruby-version=3.3"
3031 end
3132 end
You can’t perform that action at this time.
0 commit comments