Browse files

handle the relative reference to ZookeeperException

  • Loading branch information...
1 parent 60dcbea commit f852523c05ca08e3056c3e2e1bc77cc50ba75f3f @slyphon slyphon committed May 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/upgrade-1.0-sed-alike.rb
View
4 scripts/upgrade-1.0-sed-alike.rb
@@ -31,7 +31,9 @@
gsub(/\bZookeeper::(\w+)Callback\b/, 'Zookeeper::Callbacks::\1Callback').
gsub(/\bZookeeperACLs::(ZOO_\w+)\b/, 'Zookeeper::Constants::\1').
gsub(/\bZookeeperExceptions::ZookeeperException::(\w+)\b/, 'Zookeeper::Exceptions::\1').
- gsub(/\bZookeeper(Constants|Exceptions|Common|ACLs|Callbacks)\b/, 'Zookeeper::\1')
+ gsub(/\bZookeeper(Constants|Exceptions|Common|ACLs|Callbacks)\b/, 'Zookeeper::\1').
+ gsub(/\bZookeeperException::(\w+)\b/, 'Exceptions::\1')
+
end
end

0 comments on commit f852523

Please sign in to comment.