Skip to content

Commit

Permalink
Don't leak a file descriptor in the bson_ext gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-stripe committed Nov 6, 2012
1 parent a00f06c commit 8e76eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bson_ext.gemspec
@@ -1,8 +1,8 @@
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'bson/version'

BSON_VERSION_HEADER = File.open(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'), "r")
BSON_VERSION = BSON_VERSION_HEADER.read.scan(/VERSION "(\d[^"]+)"/)[0][0]
BSON_VERSION_HEADER = File.read(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'))
BSON_VERSION = BSON_VERSION_HEADER.scan(/VERSION "(\d[^"]+)"/)[0][0]
Gem::Specification.new do |s|
s.name = 'bson_ext'

Expand Down

0 comments on commit 8e76eff

Please sign in to comment.