Permalink
Browse files

Allow gemspec to be loaded more than once without warning. [admin]

  • Loading branch information...
trans committed Nov 9, 2011
1 parent 1310c11 commit d753e7a2522ecc8d162fd553996c9e42a11fafff
Showing with 2 additions and 2 deletions.
  1. +2 −2 .gemspec
View
@@ -8,7 +8,7 @@ module DotRuby
class GemSpec
# For which revision of .ruby is this gemspec intended?
- REVISION = 0
+ REVISION = 0 unless defined?(REVISION)
#
PATTERNS = {
@@ -17,7 +17,7 @@ module DotRuby
:ext_files => 'ext/{**/}extconf.rb',
:doc_files => '*.{txt,rdoc,md,markdown,tt,textile}',
:test_files => '{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'
- }
+ } unless defined?(PATTERNS)
#
def self.instance

0 comments on commit d753e7a

Please sign in to comment.