File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed
Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 4040 ruby-version : ${{ matrix.ruby }}
4141 bundler-cache : true
4242 - name : test
43- run : bundle exec rake test
43+ run : RUBYOPT="--disable=syntax_suggest" bundle exec rake test
4444 continue-on-error : ${{ matrix.ruby == 'head' }}
Original file line number Diff line number Diff line change 11## HEAD (unreleased)
22
3+ ## 1.0.3
4+
35- Output improvement: Handle methods with only newlines or comments in them (https://github.com/ruby/syntax_suggest/pull/179 )
46- No longer shows the detail of monkey patch as the document (https://github.com/ruby/syntax_suggest/pull/174 )
57- Drop CI for Ruby 3.2.0-rc1, now that 3.2.0 is available (https://github.com/ruby/syntax_suggest/pull/172 )
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- syntax_suggest (1.0.2 )
4+ syntax_suggest (1.0.3 )
55
66GEM
77 remote: https://rubygems.org/
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module SyntaxSuggest
4- VERSION = "1.0.2 "
4+ VERSION = "1.0.3 "
55end
Original file line number Diff line number Diff line change @@ -46,6 +46,24 @@ module SyntaxSuggest
4646 end
4747 end
4848
49+ # Since Ruby 3.2 includes syntax_suggest as a default gem, we might accidentally
50+ # be requiring the default gem instead of this library under test. Assert that's
51+ # not the case
52+ it "tests current version of syntax_suggest" do
53+ Dir . mktmpdir do |dir |
54+ tmpdir = Pathname ( dir )
55+ script = tmpdir . join ( "script.rb" )
56+ contents = <<~'EOM'
57+ puts "suggest_version is #{SyntaxSuggest::VERSION}"
58+ EOM
59+ script . write ( contents )
60+
61+ out = `#{ ruby } -I#{ lib_dir } -rsyntax_suggest #{ script } 2>&1`
62+
63+ expect ( out ) . to include ( "suggest_version is #{ SyntaxSuggest ::VERSION } " ) . once
64+ end
65+ end
66+
4967 it "detects require error and adds a message with auto mode" do
5068 Dir . mktmpdir do |dir |
5169 tmpdir = Pathname ( dir )
You can’t perform that action at this time.
0 commit comments