Skip to content

Commit

Permalink
Comment end's where we're indenting a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jun 2, 2011
1 parent b19d813 commit 252b14a
Show file tree
Hide file tree
Showing 28 changed files with 98 additions and 98 deletions.
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/accept.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Accept < Message
def self.new
super 'accept'
end
end
end
end
end
end # Accept
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/answer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Answer < Message
def self.new
super 'answer'
end
end
end
end
end
end # Answer
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/ask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def set_options(options)

options.each { |option, value| @xml.set_attribute option.to_s.gsub('_', '-'), value.to_s }
end
end
end
end
end
end # Ask
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/complete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.parse(xml, options)
# -----
# <complete xmlns="urn:xmpp:ozone:say:1" reason="SUCCESS"/>
end
end
end
end
end
end # Complete
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/conference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def kick
Conference.new :kick, :parent => self
end

end
end
end
end
end # Conference
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/dial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.new(options)
def set_options(options)
options.each { |option, value| @xml.set_attribute option.to_s, value }
end
end
end
end
end
end # Dial
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/end.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.parse(xml, options)
info.type = event.name.to_sym
end
end
end
end
end
end
end # End
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/hangup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Hangup < Message
def self.new
super 'hangup'
end
end
end
end
end
end # Hangup
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.parse(xml, options)
end
end
end
end
end
end
end
end # Info
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/offer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Offer < Message
def self.parse(xml, options)
self.new 'offer', options
end
end
end
end
end
end # Offer
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/redirect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.new(destination)
def set_destination(dest)
@xml.set_attribute 'to', dest
end
end
end
end
end
end # Redirect
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/reject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def self.new(reason = :declined)
end
end
end
end
end
end
end
end # Reject
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/say.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def resume
def stop
Say.new :stop, :parent => self
end
end
end
end
end
end # Say
end # Ozone
end # Protocol
end # Punchblock
8 changes: 4 additions & 4 deletions lib/punchblock/protocol/ozone/transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def set_options options
@xml.set_attribute option.to_s.gsub('_', '-'), value.to_s
end
end
end
end
end
end
end # Transfer
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/accept_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Accept do
its(:to_xml) { should == '<accept xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/answer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Answer do
its(:to_xml) { should == '<answer xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/ask_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ module Ozone
its(:to_xml) { should == expected_message.strip }
end
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/complete_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Complete do
# its(:to_xml) { should == '<complete xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/conference_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ module Ozone
kick.to_xml.should == '<kick xmlns="urn:xmpp:ozone:conference:1"/>'
end
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/dial_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ module Ozone

its(:to_xml) { should == '<dial xmlns="urn:xmpp:ozone:1" to="tel:+14155551212" from="tel:+13035551212"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/end_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe End do
# its(:to_xml) { should == '<end xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/hangup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Hangup do
its(:to_xml) { should == '<hangup xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Info do
# its(:to_xml) { should == '<info xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/offer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Ozone
describe Offer do
# its(:to_xml) { should == '<offer xmlns="urn:xmpp:ozone:1"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/redirect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ module Ozone

its(:to_xml) { should == '<redirect xmlns="urn:xmpp:ozone:1" to="tel:+14045551234"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/reject_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ module Ozone
end
end
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/say_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ module Ozone
stop(:say).to_xml.should == '<stop xmlns="urn:xmpp:ozone:say:1"/>'
end
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock
6 changes: 3 additions & 3 deletions spec/protocol/ozone/transfer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module Ozone

its(:to_xml) { should == '<transfer xmlns="urn:xmpp:ozone:transfer:1" from="tel:+14155551212" terminator="*" timeout="120000" answer-on-media="true" to="tel:+14045551212"/>' }
end
end
end
end
end # Ozone
end # Protocol
end # Punchblock

0 comments on commit 252b14a

Please sign in to comment.