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 3
3
require "optparse"
4
4
require "next_rails"
5
5
require "next_rails/bundle_report"
6
+ require 'byebug'
6
7
7
8
class NextRails ::BundleReport ::CLI
8
9
def initialize ( argv )
@@ -21,11 +22,11 @@ def validate_arguments(argv)
21
22
end
22
23
23
24
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 )
25
26
raise ArgumentError , "Invalid Rails version format. Example: --rails-version=5.0.7"
26
27
end
27
28
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 )
29
30
raise ArgumentError , "Invalid Ruby version format. Example: --ruby-version=3.3"
30
31
end
31
32
end
You can’t perform that action at this time.
0 commit comments