Skip to content

Commit

Permalink
only warn about compatibility once, fix rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
slyphon committed May 7, 2012
1 parent 14c9f30 commit 00a1b3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
6 changes: 0 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# def gemset_name
# ENV.fetch('GEM_HOME').split('@').last
# end

GEM_FILES = ReleaseOps.gem_files

# need to releaase under both names until ZK is updated to use just 'zookeeper'
GEM_NAMES = %w[zookeeper slyphon-zookeeper]

Expand Down
18 changes: 16 additions & 2 deletions lib/zookeeper/compatibility.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
warn <<-EOS
module Zookeeper
# @private
def self.warn_about_compatability_once!
return if @warned_about_compatibility
@warned_about_compatibility = true

warn <<-EOS
-----------------------------------------------------------------------------
Expand All @@ -14,7 +20,15 @@
is automatically required. This will *not* be the case in 1.1.
-----------------------------------------------------------------------------
EOS
EOS
end

def self.warned_about_compatability?
!!@warned_about_compatability
end
end

Zookeeper.warn_about_compatability_once!

module Zookeeper
module Compatibility
Expand Down

0 comments on commit 00a1b3b

Please sign in to comment.