sippy_cup 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12ebcabfa7aeab3fd07ebd8ccf1a0f4cfb88b859
4
- data.tar.gz: 917066d6774889765f8c19d40d694d85dc02c19a
3
+ metadata.gz: a8574849c4b88b7655ae212461569d8578ce21cb
4
+ data.tar.gz: 29d281da44037bff5259cd498bf86893882b41c3
5
5
  SHA512:
6
- metadata.gz: 3cd3fab1459b55ccadc61c1d74a58c304aaf91c9ff27f406bd189b30dbcef88216caf78c73fce48a5317db64e6e1ed9cbeec4525dd15a0a3de86105ec914a87e
7
- data.tar.gz: d712da0444fbc5774db1f983cb0277f14950971742f6fe5a09c61c9ee1ec5c1a9017de923b0951e3cd63a0b9ecbfd7f152bb9386171acfd1b7a95e1fdaa7a47a
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.
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'sippy_cup/media/rtp_payload'
2
3
 
3
4
  module SippyCup
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'sippy_cup/media/rtp_payload'
2
3
 
3
4
  module SippyCup
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'ipaddr'
2
3
  require 'sippy_cup/media/pcmu_payload'
3
4
  require 'sippy_cup/media/dtmf_payload'
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'logger'
2
3
 
3
4
  #
@@ -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 receive_200(opts = {})
258
+ def receive_ok(opts = {})
258
259
  recv({ response: 200 }.merge(opts))
259
260
  end
260
261
  alias :receive_200 :receive_ok
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'yaml'
2
3
  require 'sippy_cup/runner'
3
4
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module SippyCup
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'tempfile'
2
3
 
3
4
  module SippyCup
data/lib/sippy_cup.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  %w{
2
3
  scenario
3
4
  xml_scenario
@@ -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 == "\x03\x0a\x00\xa0"
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 == "\x0b\x0a\x00\xa0"
62
+ packet.data[-4, 4].should == ['0b0a00a0'].pack('H*')
62
63
  end
63
64
  end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe SippyCup::Runner do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe SippyCup::Scenario do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe SippyCup::XMLScenario do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sippy_cup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Klang