Skip to content

Commit

Permalink
Merge branch 'release/0.5.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Sep 23, 2011
2 parents 456571f + dd4be27 commit 54e3bac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
v0.5.5
v0.5.6
Changes from 0.5.5, this time without a bug when using the namespaced DSL approach

v0.5.5 (yanked)
Bugfix(benlangfeld/kibs): ActiveSupport was overriding the presence DSL method
Feature(fyafighter): Adds SSL peer verification to TLS

Expand Down
2 changes: 1 addition & 1 deletion lib/blather/client/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module DSL

def self.append_features(o)
Blather::Stanza.handler_list.each do |handler_name|
o.__send__ :remove_method, handler_name if o.method_defined? handler_name
o.__send__ :remove_method, handler_name if !o.is_a?(Class) && o.method_defined?(handler_name)
end
super
end
Expand Down
2 changes: 1 addition & 1 deletion lib/blather/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Blather
# Blather version number
VERSION = '0.5.5'
VERSION = '0.5.6'
end
7 changes: 6 additions & 1 deletion spec/blather/client/dsl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../../spec_helper'
require 'spec_helper'
require 'blather/client/dsl'

describe Blather::DSL do
Expand Down Expand Up @@ -73,6 +73,11 @@
@dsl.handle type, *guards
end

it 'sets up handler methods' do
@client.expects(:register_handler).with :presence, :unavailable?
@dsl.presence :unavailable?
end

it 'provides a helper for ready state' do
@client.expects(:register_handler).with :ready
@dsl.when_ready
Expand Down

0 comments on commit 54e3bac

Please sign in to comment.