sippy_cup 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sippy_cup/media/dtmf_payload.rb +1 -0
- data/lib/sippy_cup/media/pcmu_payload.rb +1 -0
- data/lib/sippy_cup/media.rb +1 -0
- data/lib/sippy_cup/runner.rb +1 -0
- data/lib/sippy_cup/scenario.rb +2 -1
- data/lib/sippy_cup/tasks.rb +1 -0
- data/lib/sippy_cup/version.rb +1 -1
- data/lib/sippy_cup/xml_scenario.rb +1 -0
- data/lib/sippy_cup.rb +1 -0
- data/spec/sippy_cup/media_spec.rb +3 -2
- data/spec/sippy_cup/runner_spec.rb +1 -0
- data/spec/sippy_cup/scenario_spec.rb +1 -0
- data/spec/sippy_cup/xml_scenario_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8574849c4b88b7655ae212461569d8578ce21cb
|
4
|
+
data.tar.gz: 29d281da44037bff5259cd498bf86893882b41c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4c8d367d9d931018ce1a09870c0dc1c666fb692e38c51489b2c4ab2d5a63c23b468a0c5e42fe8b3b0c8826c3a6e4a2e0ba1872366c23da2ed383eefd71cc12
|
7
|
+
data.tar.gz: 0c0570408e0370593818fe55eb8756c7edbba3c88289e54208e3bb417425f304d4495f8d7b3ef513c484c34ed6500796091c8773808064a56ae4d4fdee983ba1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [0.4.1](https://github.com/bklang/sippy_cup/compare/v0.4.0...v0.4.1)
|
2
|
+
* Bugfix: Fix some Ruby 2 string encoding problems
|
3
|
+
* Bugfix: Fix backward alias of `respond_ok` with `respond_200`
|
4
|
+
|
1
5
|
# [0.4.0](https://github.com/bklang/sippy_cup/compare/v0.3.0...v0.4.0)
|
2
6
|
* Feature: receive_message for incoming SIP MESSAGEs.
|
3
7
|
* Feature: SIP INFO DTMF.
|
data/lib/sippy_cup/media.rb
CHANGED
data/lib/sippy_cup/runner.rb
CHANGED
data/lib/sippy_cup/scenario.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'nokogiri'
|
2
3
|
require 'psych'
|
3
4
|
require 'active_support/core_ext/hash'
|
@@ -254,7 +255,7 @@ a=fmtp:101 0-15
|
|
254
255
|
# @param [Hash] opts A set of options to modify the expectation
|
255
256
|
# @option opts [true, false] :optional Whether or not receipt of the message is optional. Defaults to false.
|
256
257
|
#
|
257
|
-
def
|
258
|
+
def receive_ok(opts = {})
|
258
259
|
recv({ response: 200 }.merge(opts))
|
259
260
|
end
|
260
261
|
alias :receive_200 :receive_ok
|
data/lib/sippy_cup/tasks.rb
CHANGED
data/lib/sippy_cup/version.rb
CHANGED
data/lib/sippy_cup.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
describe SippyCup::Media do
|
@@ -50,7 +51,7 @@ describe SippyCup::Media do
|
|
50
51
|
pf = @media.compile!
|
51
52
|
packet = pf.body.first
|
52
53
|
packet.class.should be PacketFu::PcapPacket
|
53
|
-
packet.data[-4, 4].should ==
|
54
|
+
packet.data[-4, 4].should == ['030a00a0'].pack('H*')
|
54
55
|
end
|
55
56
|
|
56
57
|
it 'should produce a PcapPacket with DTMF digit #, volume 10 at the end' do
|
@@ -58,6 +59,6 @@ describe SippyCup::Media do
|
|
58
59
|
pf = @media.compile!
|
59
60
|
packet = pf.body.first
|
60
61
|
packet.class.should be PacketFu::PcapPacket
|
61
|
-
packet.data[-4, 4].should ==
|
62
|
+
packet.data[-4, 4].should == ['0b0a00a0'].pack('H*')
|
62
63
|
end
|
63
64
|
end
|