Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
gemspec: Suppress 'warning: already initialized constant VERSION'.
Browse files Browse the repository at this point in the history
By requiring version.rb using the same path as lib/mosql.rb, the two
requires only load the file once.
  • Loading branch information
nelhage committed Feb 1, 2013
1 parent 7f21e45 commit b288bd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mosql.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
require File.expand_path('../lib/mosql/version', __FILE__)
$:.unshift(File.expand_path("lib", File.dirname(__FILE__)))
require 'mosql/version'

Gem::Specification.new do |gem|
gem.authors = ["Nelson Elhage"]
Expand Down

0 comments on commit b288bd1

Please sign in to comment.