File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ def execute
41
41
42
42
#: -> Array[GemInfo]
43
43
def list_gemfile_gems
44
- say ( "Listing gems from Gemfile.lock... " , [ :blue , :bold ] )
45
- gemfile = Bundler . read_file ( "Gemfile.lock" )
46
- parser = Bundler ::LockfileParser . new ( gemfile )
47
- gem_info = parser . specs . map { |spec | GemInfo . from_spec ( spec ) }
44
+ say ( "Listing gems from bundle... " , [ :blue , :bold ] )
45
+ specs = Bundler . load . specs
46
+ gem_info = specs . map { |spec | GemInfo . from_spec ( spec ) }
48
47
say ( "Done" , :green )
49
48
gem_info
50
49
end
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class GemInfo < T::Struct
9
9
class << self
10
10
extend ( T ::Sig )
11
11
12
- #: (Bundler::LazySpecification spec) -> GemInfo
12
+ #: (Gem::Specification spec) -> GemInfo
13
13
def from_spec ( spec )
14
14
new ( name : spec . name , version : spec . version )
15
15
end
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class AnnotationsTest < SpecWithProject
22
22
23
23
assert_stdout_equals ( <<~OUT , result )
24
24
Retrieving index from central repository... Done
25
- Listing gems from Gemfile.lock ... Done
25
+ Listing gems from bundle ... Done
26
26
Removing annotations for gems that have been removed... Nothing to do
27
27
Fetching gem annotations from central repository... Nothing to do
28
28
OUT
You can’t perform that action at this time.
0 commit comments