sippy_cup 0.7.1 → 0.7.2
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 +3 -0
- data/lib/sippy_cup/runner.rb +1 -1
- data/lib/sippy_cup/scenario.rb +1 -1
- data/lib/sippy_cup/version.rb +1 -1
- data/spec/sippy_cup/scenario_spec.rb +2 -2
- 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: cbaffb16fed7698d88112dd2209c69cbfb0dc607
         | 
| 4 | 
            +
              data.tar.gz: 705c5d10b675f8980907b0780fe1df93013d7836
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: dddf24930f8bfecaefb3fddfc6bc65509b88efd00495060c1a88802ad6a4724b2032b750ff17fe7df29d33b93b16b84fe62d9fdaa980d17d7effcf171d94fdd8
         | 
| 7 | 
            +
              data.tar.gz: f781f6e53aceae820e8f56f36cf9ebe4b2c45e44e85b640141e67fac1f926092f767f241901fb8649d31a03f3997d54e3c189e5d837e8319932cc7320ab382ed
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,8 @@ | |
| 1 1 | 
             
            # develop
         | 
| 2 2 |  | 
| 3 | 
            +
            # [0.7.2](https://github.com/mojolingo/sippy_cup/compare/v0.7.1...v0.7.2)
         | 
| 4 | 
            +
              * Bugfix: Logical destination for dialog formation belongs in request line
         | 
| 5 | 
            +
             | 
| 3 6 | 
             
            # [0.7.1](https://github.com/mojolingo/sippy_cup/compare/v0.7.0...v0.7.1)
         | 
| 4 7 | 
             
              * Bugfix: Ensure destination user is parsed out from `:to` correctly
         | 
| 5 8 |  | 
    
        data/lib/sippy_cup/runner.rb
    CHANGED
    
    | @@ -105,7 +105,7 @@ module SippyCup | |
| 105 105 | 
             
                  options[:l] = max_concurrent if max_concurrent
         | 
| 106 106 | 
             
                  options[:m] = @scenario_options[:number_of_calls] if @scenario_options[:number_of_calls]
         | 
| 107 107 | 
             
                  options[:r] = @scenario_options[:calls_per_second] if @scenario_options[:calls_per_second]
         | 
| 108 | 
            -
                  options[:s] = @scenario_options[:to].split('@').first if @scenario_options[:to]
         | 
| 108 | 
            +
                  options[:s] = @scenario_options[:to].to_s.split('@').first if @scenario_options[:to]
         | 
| 109 109 |  | 
| 110 110 | 
             
                  options[:i] = @scenario_options[:source] if @scenario_options[:source]
         | 
| 111 111 | 
             
                  options[:mp] = @scenario_options[:media_port] if @scenario_options[:media_port]
         | 
    
        data/lib/sippy_cup/scenario.rb
    CHANGED
    
    | @@ -158,7 +158,7 @@ module SippyCup | |
| 158 158 | 
             
                  from_addr = "#{@from_user}@#{@adv_ip}:[local_port]"
         | 
| 159 159 | 
             
                  msg = <<-MSG
         | 
| 160 160 |  | 
| 161 | 
            -
            INVITE sip | 
| 161 | 
            +
            INVITE sip:#{to_addr} SIP/2.0
         | 
| 162 162 | 
             
            Via: SIP/2.0/[transport] #{@adv_ip}:[local_port];branch=[branch]
         | 
| 163 163 | 
             
            From: "#{@from_user}" <sip:#{from_addr}>;tag=[call_number]
         | 
| 164 164 | 
             
            To: <sip:#{to_addr}>
         | 
    
        data/lib/sippy_cup/version.rb
    CHANGED
    
    
| @@ -105,10 +105,10 @@ describe SippyCup::Scenario do | |
| 105 105 | 
             
                context "when a to address is specified" do
         | 
| 106 106 | 
             
                  let(:args) { {to: 'usera@foo.bar'} }
         | 
| 107 107 |  | 
| 108 | 
            -
                  it "includes the specified address in the To header | 
| 108 | 
            +
                  it "includes the specified address in the To header and URI line" do
         | 
| 109 109 | 
             
                    subject.invite
         | 
| 110 110 | 
             
                    subject.to_xml.should match(%r{To: <sip:\[service\]@foo.bar:\[remote_port\]})
         | 
| 111 | 
            -
                    subject.to_xml.should match(%r{INVITE sip:\[service\] | 
| 111 | 
            +
                    subject.to_xml.should match(%r{INVITE sip:\[service\]@foo.bar:\[remote_port\]})
         | 
| 112 112 | 
             
                  end
         | 
| 113 113 | 
             
                end
         | 
| 114 114 |  |