twilio-test-toolkit2 3.4.0 → 3.5.0

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: bf8e84536c1fbee19ef15086a3d892ee8c457ca2
4
- data.tar.gz: a26783e13f3c804d98f225a6ebaa352746db5405
3
+ metadata.gz: 9416d4a59dfdea43d2f6cbe0c05df1b02124570c
4
+ data.tar.gz: 9dd9f41f31268df95472ce53b969c29fe3201893
5
5
  SHA512:
6
- metadata.gz: 25710b9c7915dcd71b5a3365548807b14ceeeef7ca68f89b6bec733eab5abe15043ecc1b30e03c59daba544252b1fbd4a162dc1d2d55bab25f8775a245bbbc22
7
- data.tar.gz: 7606af6b147f9cb86a3d127f319c086fe43fdc3027d3d7e506007eb56deeb1ca6c26976fa5e5f9078952e39f4d4e44f3975155e1d6f4deaf073fe8a25a4f64ba
6
+ metadata.gz: 10752aabeaa6e085ca75d6381dae1c539c6dd5e45f1950306d78b4a7fc039d5aaefb63e45664f99da037bb41aa93d214ce090a9b3d035b212ad98dadf0839501
7
+ data.tar.gz: 6fbf2f900857eeb5e9eb466f835a6c1281866fd988537a476faa2e1a6ebfa96c58b5beb0ca8ac89e909472981ed30e1823944760abc0570d33c3e42951999cb3
data/README.md CHANGED
@@ -73,7 +73,7 @@ You'll have to make one more change in spec/spec_helper.rb. If you are using Cap
73
73
  RSpec.configure do |config|
74
74
  ...
75
75
  # Configure Twilio Test Toolkit
76
- config.include TwilioTestToolkit::DSL, :type => :request
76
+ config.include TwilioTestToolkit2::DSL, :type => :request
77
77
  ...
78
78
  end
79
79
 
@@ -82,7 +82,7 @@ For Capybara 2.0, the "requests" directory is now called "features", so you need
82
82
  RSpec.configure do |config|
83
83
  ...
84
84
  # Configure Twilio Test Toolkit
85
- config.include TwilioTestToolkit::DSL, :type => :feature
85
+ config.include TwilioTestToolkit2::DSL, :type => :feature
86
86
  ...
87
87
  end
88
88
 
@@ -114,7 +114,7 @@ Options are:
114
114
  * **call_sid**. Specify an optional fixed value to be passed as params[:CallSid]. This is useful if you are expecting a specific SID. For instance, a common pattern is to initiate a call, store the SID in your database, and look up the call when you get the callback. If you don't pass a SID, TTT will generate one for you that's just a UUID.
115
115
  * **is_machine**. Controls params[:AnsweredBy]. See Twilio's documentation for more information on how Twilio uses this.
116
116
 
117
- *ttt_call* returns a *TwilioTestToolkit::CallInProgress* object, which is a descendent of *TwilioTestToolkit::CallScope*. You'll want to save this object as it's how you interact with TTT.
117
+ *ttt_call* returns a *TwilioTestToolkit2::CallInProgress* object, which is a descendent of *TwilioTestToolkit2::CallScope*. You'll want to save this object as it's how you interact with TTT.
118
118
 
119
119
  It's worth noting that TTT won't pass any of the parameters you need to [validate that a request comes from Twilio](http://www.twilio.com/docs/security). Most people seem to only do this check in production, so if that applies to you, this won't be an issue. If you do this check in dev and test, you might want to consider submitting a pull request with a fix.
120
120
 
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'TwilioTestToolkit'
17
+ rdoc.title = 'TwilioTestToolkit2'
18
18
  rdoc.options << '--line-numbers'
19
19
  rdoc.rdoc_files.include('README.rdoc')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,6 +1,6 @@
1
1
  require "twilio-test-toolkit/call_scope"
2
2
 
3
- module TwilioTestToolkit
3
+ module TwilioTestToolkit2
4
4
  # Models a call
5
5
  class CallInProgress < CallScope
6
6
  # Initiate a call. Options:
@@ -1,4 +1,4 @@
1
- module TwilioTestToolkit
1
+ module TwilioTestToolkit2
2
2
  # Models a scope within a call.
3
3
  class CallScope
4
4
 
@@ -1,4 +1,4 @@
1
- module TwilioTestToolkit
1
+ module TwilioTestToolkit2
2
2
  require 'twilio-test-toolkit/call_in_progress'
3
3
 
4
4
  # Adds the `ttt_call` method to the top-level namespace.
@@ -1,3 +1,3 @@
1
1
  module TwilioTestToolkit
2
- VERSION = "3.4.0"
2
+ VERSION = "3.5.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- module TwilioTestToolkit
1
+ module TwilioTestToolkit2
2
2
  require "uuidtools"
3
3
  require 'twilio-test-toolkit/dsl'
4
4
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe TwilioTestToolkit::CallScope do
3
+ describe TwilioTestToolkit2::CallScope do
4
4
  before(:each) do
5
5
  @our_number = "2065551212"
6
6
  @their_number = "2065553434"
@@ -12,7 +12,7 @@ describe TwilioTestToolkit::CallScope do
12
12
  end
13
13
 
14
14
  it "should be a CallScope" do
15
- @call.should be_a(TwilioTestToolkit::CallScope)
15
+ @call.should be_a(TwilioTestToolkit2::CallScope)
16
16
  end
17
17
 
18
18
  it "should have the informational methods" do
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe TwilioTestToolkit::DSL do
3
+ describe TwilioTestToolkit2::DSL do
4
4
  before(:each) do
5
5
  @our_number = "2065551212"
6
6
  @their_number = "2065553434"
@@ -51,4 +51,4 @@ describe TwilioTestToolkit::DSL do
51
51
  end
52
52
  end
53
53
  end
54
- end
54
+ end
data/spec/spec_helper.rb CHANGED
@@ -16,5 +16,5 @@ require 'capybara/rails'
16
16
  require 'twilio-test-toolkit'
17
17
 
18
18
  RSpec.configure do |config|
19
- config.include TwilioTestToolkit::DSL, :type => :request
20
- end
19
+ config.include TwilioTestToolkit2::DSL, :type => :request
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-test-toolkit2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kiiita