Skip to content

Commit

Permalink
Merge pull request samuraisam#23 from jawj/master
Browse files Browse the repository at this point in the history
ruby-client ENABLE_NIL_PARSER: Previous technique worked under 1.9.1 but fails under 1.9.2/3
  • Loading branch information
Samuel Sutch committed Dec 21, 2011
2 parents a2ebf83 + 6748781 commit c768026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby-client/pyapns/lib/pyapns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
require 'xmlrpc/client'

XMLRPC::Config.module_eval {
remove_const(:ENABLE_NIL_PARSER) # so that we're not warned about reassigning to a constant
ENABLE_NIL_PARSER = true # so that we don't get "RuntimeError: wrong/unknown XML-RPC type 'nil'"
remove_const(:ENABLE_NIL_PARSER) # so that we're not warned about reassigning to a constant
const_set(:ENABLE_NIL_PARSER, true) # so that we don't get "RuntimeError: wrong/unknown XML-RPC type 'nil'"
}

module PYAPNS
Expand Down

0 comments on commit c768026

Please sign in to comment.