Skip to content

Commit

Permalink
Merge branch 'master' into resolved-magic-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro authored Jan 15, 2025
2 parents cfa558f + 17b74e8 commit 0023116
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ gem "rbs-amber", path: "test/assets/test-gem"
# Bundled gems
gem "net-smtp"
gem 'csv'
gem 'ostruct'
gem 'pstore'

group :minitest do
gem "minitest"
Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ GEM
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.4)
logger (1.6.5)
marcel (1.0.4)
memory_profiler (1.1.0)
minitest (5.25.4)
Expand All @@ -66,15 +66,17 @@ GEM
net-smtp (0.5.0)
net-protocol
nkf (0.2.0)
ostruct (0.6.1)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
power_assert (2.0.5)
pstore (0.1.4)
psych (4.0.6)
stringio
public_suffix (6.0.1)
raap (1.0.0)
raap (1.1.0)
rbs (~> 3.0)
timeout (~> 0.4)
racc (1.8.1)
Expand Down Expand Up @@ -174,6 +176,8 @@ DEPENDENCIES
mutex_m
net-smtp
nkf
ostruct
pstore
raap
rake
rake-compiler
Expand Down
20 changes: 10 additions & 10 deletions test/rbs/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ def test_collection_install
path: #{dir.join('gem_rbs_collection')}
YAML

bundle_install('ast', 'abbrev', 'bigdecimal')
bundle_install('ast', 'abbrev', 'bigdecimal', 'logger')
_stdout, _stderr = run_rbs_collection("install", bundler: true)

rbs_collection_lock = dir.join('rbs_collection.lock.yaml')
Expand Down Expand Up @@ -1240,7 +1240,7 @@ def test_collection_update
path: #{dir.join('gem_rbs_collection')}
YAML

bundle_install('ast', 'abbrev', 'bigdecimal')
bundle_install('ast', 'abbrev', 'bigdecimal', 'logger')
run_rbs_collection("update", bundler: true)

assert dir.join('rbs_collection.lock.yaml').exist?
Expand Down Expand Up @@ -1280,7 +1280,7 @@ def test_collection_install_gemspec
RUBY
(dir/"sig").mkdir

bundle_install(:gemspec, "abbrev", "bigdecimal")
bundle_install(:gemspec, "abbrev", "bigdecimal", "logger")
stdout, _ = run_rbs_collection("install", bundler: true)

assert_match(/Installing ast:(\d(\.\d)*)/, stdout)
Expand Down Expand Up @@ -1310,7 +1310,7 @@ def test_collection_install__mutex_m__config__bundled
- name: mutex_m
YAML

bundle_install(["mutex_m", ">= 0.3.0"])
bundle_install("logger", ["mutex_m", ">= 0.3.0"])
_stdout, stderr = run_rbs_collection("install", bundler: true)

refute_match(/`mutex_m` as a stdlib in rbs-gem is deprecated./, stderr)
Expand Down Expand Up @@ -1343,7 +1343,7 @@ def test_collection_install__mutex_m__config__no_bundled
- name: mutex_m
YAML

bundle_install(["mutex_m", "0.2.0"])
bundle_install("logger", ["mutex_m", "0.2.0"])
_stdout, stderr = run_rbs_collection("install", bundler: true)

assert_include stderr, '`mutex_m` as a stdlib in rbs-gem is deprecated.'
Expand Down Expand Up @@ -1379,7 +1379,7 @@ def test_collection_install__mutex_m__config__stdlib_source
type: stdlib
YAML

bundle_install
bundle_install("logger")
_stdout, stderr = run_rbs_collection("install", bundler: true)

assert_include stderr, '`mutex_m` as a stdlib in rbs-gem is deprecated.'
Expand Down Expand Up @@ -1410,7 +1410,7 @@ def test_collection_install__mutex_m__bundled
path: #{dir.join('gem_rbs_collection')}
YAML

bundle_install(["mutex_m", ">= 0.3.0"])
bundle_install("logger", ["mutex_m", ">= 0.3.0"])
_stdout, stderr = run_rbs_collection("install", bundler: true)

refute_match(/`mutex_m` as a stdlib in rbs-gem is deprecated./, stderr)
Expand Down Expand Up @@ -1440,7 +1440,7 @@ def test_collection_install__mutex_m__no_bundled
path: #{dir.join('gem_rbs_collection')}
YAML

bundle_install(["mutex_m", "0.2.0"])
bundle_install("logger", ["mutex_m", "0.2.0"])
_stdout, stderr = run_rbs_collection("install", bundler: true)

assert_include stderr, '`mutex_m` as a stdlib in rbs-gem is deprecated.'
Expand Down Expand Up @@ -1475,7 +1475,7 @@ def test_collection_install__mutex_m__dependency_no_bundled
- name: mutex_m
YAML

bundle_install("true_string") # true_string is a soutaro's gem that doesn't have sig directory
bundle_install("logger", "true_string") # true_string is a soutaro's gem that doesn't have sig directory

_stdout, stderr = run_rbs_collection("install", bundler: true)

Expand Down Expand Up @@ -1519,7 +1519,7 @@ def test_collection_install__mutex_m__rbs_dependency_and__gem_dependency
- name: mutex_m
YAML

bundle_install(["hola", { path: "gem" }])
bundle_install("logger", ["hola", { path: "gem" }])

(dir + RBS::Collection::Config::PATH).write(<<~YAML)
sources:
Expand Down

0 comments on commit 0023116

Please sign in to comment.