File: xmpp4r-gemspec-test.rb

package info (click to toggle)
ruby-xmpp4r 0.5.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,384 kB
  • sloc: ruby: 17,382; xml: 74; sh: 12; makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby

# Since GitHub doesn't allow unsafe commands in a gemspec this script
# will simulate running in their environment.

require 'rubygems/specification'
data = File.read('../xmpp4r.gemspec')
spec = nil
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
puts spec