File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 11## HEAD (unreleased)
22
3+ - Let -v respond with gem version instead of 'unknown' (https://github.com/zombocom/dead_end/pull/82 )
4+
35## 2.0.0
46
57- Support "endless" oneline method definitions for Ruby 3+ (https://github.com/zombocom/dead_end/pull/80 )
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ parser = OptionParser.new do |opts|
3535 Options:
3636 EOM
3737
38+ opts . version = DeadEnd ::VERSION
39+
3840 opts . on ( "--help" , "Help - displays this message" ) do |v |
3941 puts opts
4042 exit
Original file line number Diff line number Diff line change @@ -62,5 +62,10 @@ def exe(cmd)
6262 expect ( tmp_dir ) . to_not be_empty
6363 end
6464 end
65+
66+ it "prints the version" do
67+ out = exe ( "-v" )
68+ expect ( out . strip ) . to include ( DeadEnd ::VERSION )
69+ end
6570 end
6671end
You can’t perform that action at this time.
0 commit comments