File: filter_gemspec

package info (click to toggle)
ruby-nokogiri 1.18.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,076 kB
  • sloc: ansic: 38,893; xml: 27,665; ruby: 27,285; java: 15,348; cpp: 7,107; yacc: 244; sh: 208; makefile: 154; sed: 14
file content (9 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/ruby

spec = Gem::Specification.load('debian/gemspec')
spec.files.delete_if { |s| s =~ /^(ports|patches)/ }
#spec.runtime_dependencies.delete_if { |s| s.name =~ /mini_portile2/ }
#spec.dependencies.delete_if { |s| s.name =~ /mini_portile2/ }
File.open('debian/gemspec', 'w') do |f|
  f << spec.to_ruby
end