twilio-ruby 5.2.0 → 5.2.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/.rubocop.yml +1 -0
- data/.travis.yml +1 -1
- data/CHANGES.md +9 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +150 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +401 -0
- data/lib/twilio-ruby/rest/sync/v1/service.rb +33 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +311 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +23 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +40 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +66 -103
- data/lib/twilio-ruby/twiml/twiml.rb +52 -48
- data/lib/twilio-ruby/twiml/voice_response.rb +385 -769
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +47 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +201 -0
- data/spec/integration/sync/v1/service_spec.rb +8 -4
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +85 -0
- data/spec/integration/wireless/v1/sim_spec.rb +3 -0
- data/spec/twiml/messaging_response_spec.rb +6 -6
- data/spec/twiml/voice_response_spec.rb +3 -3
- metadata +13 -3
| @@ -305,7 +305,7 @@ describe Twilio::TwiML::VoiceResponse do | |
| 305 305 | 
             
                it 'should allow VoiceResponse.enqueue' do
         | 
| 306 306 | 
             
                  r = Twilio::TwiML::VoiceResponse.new
         | 
| 307 307 | 
             
                  r.enqueue(
         | 
| 308 | 
            -
                    'TestEnqueueAttribute',
         | 
| 308 | 
            +
                    name: 'TestEnqueueAttribute',
         | 
| 309 309 | 
             
                    action: 'act',
         | 
| 310 310 | 
             
                    method: 'GET',
         | 
| 311 311 | 
             
                    wait_url: 'wait',
         | 
| @@ -316,7 +316,7 @@ describe Twilio::TwiML::VoiceResponse do | |
| 316 316 | 
             
                end
         | 
| 317 317 |  | 
| 318 318 | 
             
                it 'should allow Enqueue.task and appending Enqueue' do
         | 
| 319 | 
            -
                  e = Twilio::TwiML::Enqueue.new(nil, workflow_sid: '123123123')
         | 
| 319 | 
            +
                  e = Twilio::TwiML::Enqueue.new(name: nil, workflow_sid: '123123123')
         | 
| 320 320 | 
             
                  e.task('{"account_sid": "AC123123123"}')
         | 
| 321 321 |  | 
| 322 322 | 
             
                  r = Twilio::TwiML::VoiceResponse.new
         | 
| @@ -326,7 +326,7 @@ describe Twilio::TwiML::VoiceResponse do | |
| 326 326 | 
             
                end
         | 
| 327 327 |  | 
| 328 328 | 
             
                it 'should allow Enqueue.task with a dictionary and appending Enqueue' do
         | 
| 329 | 
            -
                  e = Twilio::TwiML::Enqueue.new(nil, workflow_sid: '123123123')
         | 
| 329 | 
            +
                  e = Twilio::TwiML::Enqueue.new(name: nil, workflow_sid: '123123123')
         | 
| 330 330 | 
             
                  e.task({ account_sid: 'AC123123123' })
         | 
| 331 331 |  | 
| 332 332 | 
             
                  r = Twilio::TwiML::VoiceResponse.new
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: twilio-ruby
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 5.2. | 
| 4 | 
            +
              version: 5.2.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Twilio API Team
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017- | 
| 11 | 
            +
            date: 2017-09-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: libxml-ruby
         | 
| @@ -342,6 +342,8 @@ files: | |
| 342 342 | 
             
            - lib/twilio-ruby/rest/sync/v1/service/sync_map.rb
         | 
| 343 343 | 
             
            - lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb
         | 
| 344 344 | 
             
            - lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb
         | 
| 345 | 
            +
            - lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb
         | 
| 346 | 
            +
            - lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb
         | 
| 345 347 | 
             
            - lib/twilio-ruby/rest/taskrouter.rb
         | 
| 346 348 | 
             
            - lib/twilio-ruby/rest/taskrouter/v1.rb
         | 
| 347 349 | 
             
            - lib/twilio-ruby/rest/taskrouter/v1/workspace.rb
         | 
| @@ -378,8 +380,10 @@ files: | |
| 378 380 | 
             
            - lib/twilio-ruby/rest/wireless/v1/command.rb
         | 
| 379 381 | 
             
            - lib/twilio-ruby/rest/wireless/v1/rate_plan.rb
         | 
| 380 382 | 
             
            - lib/twilio-ruby/rest/wireless/v1/sim.rb
         | 
| 383 | 
            +
            - lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb
         | 
| 381 384 | 
             
            - lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb
         | 
| 382 385 | 
             
            - lib/twilio-ruby/security/request_validator.rb
         | 
| 386 | 
            +
            - lib/twilio-ruby/twiml/fax_response.rb
         | 
| 383 387 | 
             
            - lib/twilio-ruby/twiml/messaging_response.rb
         | 
| 384 388 | 
             
            - lib/twilio-ruby/twiml/twiml.rb
         | 
| 385 389 | 
             
            - lib/twilio-ruby/twiml/voice_response.rb
         | 
| @@ -555,6 +559,8 @@ files: | |
| 555 559 | 
             
            - spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb
         | 
| 556 560 | 
             
            - spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb
         | 
| 557 561 | 
             
            - spec/integration/sync/v1/service/sync_map_spec.rb
         | 
| 562 | 
            +
            - spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb
         | 
| 563 | 
            +
            - spec/integration/sync/v1/service/sync_stream_spec.rb
         | 
| 558 564 | 
             
            - spec/integration/sync/v1/service_spec.rb
         | 
| 559 565 | 
             
            - spec/integration/taskrouter/v1/workspace/activity_spec.rb
         | 
| 560 566 | 
             
            - spec/integration/taskrouter/v1/workspace/event_spec.rb
         | 
| @@ -583,6 +589,7 @@ files: | |
| 583 589 | 
             
            - spec/integration/video/v1/room_spec.rb
         | 
| 584 590 | 
             
            - spec/integration/wireless/v1/command_spec.rb
         | 
| 585 591 | 
             
            - spec/integration/wireless/v1/rate_plan_spec.rb
         | 
| 592 | 
            +
            - spec/integration/wireless/v1/sim/data_session_spec.rb
         | 
| 586 593 | 
             
            - spec/integration/wireless/v1/sim/usage_record_spec.rb
         | 
| 587 594 | 
             
            - spec/integration/wireless/v1/sim_spec.rb
         | 
| 588 595 | 
             
            - spec/jwt/access_token_spec.rb
         | 
| @@ -625,7 +632,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 625 632 | 
             
                  version: '0'
         | 
| 626 633 | 
             
            requirements: []
         | 
| 627 634 | 
             
            rubyforge_project: 
         | 
| 628 | 
            -
            rubygems_version: 2. | 
| 635 | 
            +
            rubygems_version: 2.6.11
         | 
| 629 636 | 
             
            signing_key: 
         | 
| 630 637 | 
             
            specification_version: 4
         | 
| 631 638 | 
             
            summary: A simple library for communicating with the Twilio REST API, building TwiML,
         | 
| @@ -800,6 +807,8 @@ test_files: | |
| 800 807 | 
             
            - spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb
         | 
| 801 808 | 
             
            - spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb
         | 
| 802 809 | 
             
            - spec/integration/sync/v1/service/sync_map_spec.rb
         | 
| 810 | 
            +
            - spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb
         | 
| 811 | 
            +
            - spec/integration/sync/v1/service/sync_stream_spec.rb
         | 
| 803 812 | 
             
            - spec/integration/sync/v1/service_spec.rb
         | 
| 804 813 | 
             
            - spec/integration/taskrouter/v1/workspace/activity_spec.rb
         | 
| 805 814 | 
             
            - spec/integration/taskrouter/v1/workspace/event_spec.rb
         | 
| @@ -828,6 +837,7 @@ test_files: | |
| 828 837 | 
             
            - spec/integration/video/v1/room_spec.rb
         | 
| 829 838 | 
             
            - spec/integration/wireless/v1/command_spec.rb
         | 
| 830 839 | 
             
            - spec/integration/wireless/v1/rate_plan_spec.rb
         | 
| 840 | 
            +
            - spec/integration/wireless/v1/sim/data_session_spec.rb
         | 
| 831 841 | 
             
            - spec/integration/wireless/v1/sim/usage_record_spec.rb
         | 
| 832 842 | 
             
            - spec/integration/wireless/v1/sim_spec.rb
         | 
| 833 843 | 
             
            - spec/jwt/access_token_spec.rb
         |