Skip to content

Commit eab40be

Browse files
authored
Merge pull request #180 from ruby/schneems/mar-16-2023
v1.0.3
2 parents a22c870 + fbae9e3 commit eab40be

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ jobs:
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' }}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
syntax_suggest (1.0.2)
4+
syntax_suggest (1.0.3)
55

66
GEM
77
remote: https://rubygems.org/

lib/syntax_suggest/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SyntaxSuggest
4-
VERSION = "1.0.2"
4+
VERSION = "1.0.3"
55
end

spec/integration/ruby_command_line_spec.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)