diff --git a/lib/zendesk_apps_support/package.rb b/lib/zendesk_apps_support/package.rb index 8473f022..de27e873 100644 --- a/lib/zendesk_apps_support/package.rb +++ b/lib/zendesk_apps_support/package.rb @@ -90,7 +90,7 @@ def files Dir[root.join('**/**')].each do |f| next unless File.file?(f) relative_file_name = f.sub(%r{#{root}/?}, '') - next if relative_file_name =~ %r{^tmp/} + next if relative_file_name =~ %r{^(tmp|vendor)/} files << AppFile.new(self, relative_file_name) end files diff --git a/spec/app/vendor/bundle/bundled_gem.rb b/spec/app/vendor/bundle/bundled_gem.rb new file mode 100644 index 00000000..573d759c --- /dev/null +++ b/spec/app/vendor/bundle/bundled_gem.rb @@ -0,0 +1 @@ +# An example of a vendor bundled gem file diff --git a/spec/package_spec.rb b/spec/package_spec.rb index ff725675..1b4710aa 100644 --- a/spec/package_spec.rb +++ b/spec/package_spec.rb @@ -111,7 +111,7 @@ end describe 'files' do - it 'should return all the files within the app folder excluding files in tmp folder' do + it 'should return all the files within the app folder excluding files in tmp and vendor folder' do files = %w[app.css app.js assets/logo-small.png assets/logo.png lib/a.js lib/a.txt lib/nested/b.js manifest.json templates/layout.hdbs translations/en.json translations/nl.json] expect(@package.files.map(&:relative_path)).to match_array(files)