-
Notifications
You must be signed in to change notification settings - Fork 227
Description
It's similar with ruby/power_assert#35 and ruby/rake#385 .
I find there are some files such as run_in_md.rb, test_runner.rb, console and setup included under the bin/ directory in the rbs gem file. And these files might be only used for the development. Is that right? What do you think about not including the files for development in the rbs gem file?
$ gem fetch rbs
Fetching rbs-1.2.0.gem
Downloaded rbs-1.2.0
$ gem unpack rbs-1.2.0.gem
$ ls rbs-1.2.0/bin/
annotate-with-rdoc* query-rdoc* run_in_md.rb sort* test_runner.rb*
console* rbs-prof* setup* steep*
Seeing the current rbs.gemspec excluding specific files by Array#reject, perhaps a way to include only necessary files might be a way not to include the bin/* files.
ex. https://github.com/puma/puma/blob/e870ab69f03e44a80c60df8b3ac1b42b1374f907/puma.gemspec#L16-L17
I found this issue when running a lint program for Ruby's RPM package in the Fedora project. I think the messages E: non-executable-script themselves are not related to this rbs project. It might be an issue related to Ruby RPM or ruby/ruby.
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/annotate-with-rdoc 644 /usr/bin/env ruby
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/console 644 /usr/bin/env ruby
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/query-rdoc 644 /usr/bin/env ruby
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/rbs-prof 644 /usr/bin/env ruby
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/setup 644 /usr/bin/env bash
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/sort 644 /usr/bin/env ruby
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/steep 644 /bin/sh
rubygem-rbs.noarch: E: non-executable-script /usr/share/gems/gems/rbs-1.0.0/bin/test_runner.rb 644 /usr/bin/env ruby
Thanks!