segiddins / rubygems-await

A RubyGems plugin with a command to wait until gems are available.
https://rubygems.org/gems/rubygems-await
MIT License
4 stars 4 forks source link

`--silent` option does not silence RubyGems output #13

Closed jterapin closed 4 months ago

jterapin commented 5 months ago

I tried using the --silent flag to omit long outputs but I still see the same result.

➜  WORKSPACE gem await aws-sdk-core:3.190.1 --silent 
2024-02-05 13:36:08 -0800 I              Awaiting aws-sdk-core-3.190.1 on https://rubygems.org/
2024-02-05 13:36:08 -0800 I [ pre index] all found!
2024-02-05 13:36:08 -0800 I [  gemspecs] missing: aws-sdk-core-3.190.1
2024-02-05 13:36:08 -0800 I [      info] missing: aws-sdk-core (aws-sdk-core-3.190.1)
2024-02-05 13:36:08 -0800 I [  versions] missing: aws-sdk-core (aws-sdk-core-3.190.1)
...

For the above, I'm using the following versions:

~~I also tried updating ruby, gem and bundler to date. I'm receiving the same result as above but now, there's an additional of errors:~~ rubygems-await was an older version on my end so the below output of errors are now fixed. Still seeing the outputs with the --silent flag so keeping the ticket open.

➜  WORKSPACE gem await aws-sdk-core:3.190.1 --silent
2024-02-05 13:27:28 -0800 I              Awaiting aws-sdk-core-3.190.1 on https://rubygems.org/
2024-02-05 13:27:28 -0800 I [ pre index] all found!
2024-02-05 13:27:28 -0800 I [      info] missing: aws-sdk-core (aws-sdk-core-3.190.1)
2024-02-05 13:27:28 -0800 I [  gemspecs] missing: aws-sdk-core-3.190.1
2024-02-05 13:27:28 -0800 I [      gems] missing: aws-sdk-core-3.190.1
2024-02-05 13:27:28 -0800 I [full index] missing: aws-sdk-core-3.190.1
2024-02-05 13:27:28 -0800 I [     names] missing: aws-sdk-core
2024-02-05 13:27:28 -0800 I [  versions] missing: aws-sdk-core (aws-sdk-core-3.190.1)
2024-02-05 13:27:28 -0800 W [full index] [NoMethodError] undefined method `gem_remote_fetcher' for #<Bundler::RubygemsIntegration:0x0000000105c8b008 @replaced_methods={}>
2024-02-05 13:27:28 -0800 W [      gems] [NameError] uninitialized constant Gem::RemoteFetcher
2024-02-05 13:27:28 -0800 W [     names] [ArgumentError] wrong number of arguments (given 3, expected 4)
2024-02-05 13:27:28 -0800 W [  versions] [ArgumentError] wrong number of arguments (given 3, expected 4)
2024-02-05 13:27:28 -0800 W [      info] [ArgumentError] wrong number of arguments (given 3, expected 4)
2024-02-05 13:27:28 -0800 I [  gemspecs] found aws-sdk-core-3.190.1
2024-02-05 13:27:28 -0800 I [  gemspecs] all found!
2024-02-05 13:27:29 -0800 I [full index] missing: aws-sdk-core-3.190.1
2024-02-05 13:27:29 -0800 W [full index] [NoMethodError] undefined method `gem_remote_fetcher' for #<Bundler::RubygemsIntegration:0x0000000105c8b008 @replaced_methods={}>
2024-02-05 13:27:29 -0800 I [      gems] missing: aws-sdk-core-3.190.1
2024-02-05 13:27:29 -0800 I [     names] missing: aws-sdk-core
2024-02-05 13:27:29 -0800 I [      info] missing: aws-sdk-core (aws-sdk-core-3.190.1)
jterapin commented 4 months ago

Woot, thank you!