We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba1c32 commit c3d678bCopy full SHA for c3d678b
lib/ruby_wasm/packager/file_system.rb
@@ -115,7 +115,14 @@ def each_gem_content_path(&block)
115
@packager.specs.each do |spec|
116
next unless File.exist?(spec.full_gem_path)
117
118
- spec.files
+ # spec.files is only valid before the gem is packaged.
119
+ if spec.source.path?
120
+ relative_paths = spec.files
121
+ else
122
+ # All files in .gem are required.
123
+ relative_paths = Dir.children(spec.full_gem_path)
124
+ end
125
+ relative_paths
126
.each do |require_path|
127
source = File.expand_path(require_path, spec.full_gem_path)
128
next unless File.exist?(source)
0 commit comments