twilio-ruby 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/twilio-ruby.rb CHANGED
@@ -18,6 +18,8 @@ require 'twilio-ruby/rest/calls/calls'
18
18
  require 'twilio-ruby/rest/sms/sms'
19
19
  require 'twilio-ruby/rest/sms/message'
20
20
  require 'twilio-ruby/rest/sms/messages'
21
+ require 'twilio-ruby/rest/applications/application'
22
+ require 'twilio-ruby/rest/applications/applications'
21
23
  require 'twilio-ruby/rest/outgoing_caller_ids/outgoing_caller_id'
22
24
  require 'twilio-ruby/rest/outgoing_caller_ids/outgoing_caller_ids'
23
25
  require 'twilio-ruby/rest/incoming_phone_numbers/incoming_phone_number'
@@ -5,7 +5,7 @@ module Twilio
5
5
  super uri, client, params
6
6
  resource :sandbox, :available_phone_numbers, :incoming_phone_numbers,
7
7
  :calls, :outgoing_caller_ids, :conferences, :sms, :recordings,
8
- :transcriptions, :notifications
8
+ :transcriptions, :notifications, :applications
9
9
  end
10
10
  end
11
11
  end
@@ -0,0 +1,5 @@
1
+ module Twilio
2
+ module REST
3
+ class Application < InstanceResource; end
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Twilio
2
+ module REST
3
+ class Applications < ListResource; end
4
+ end
5
+ end
@@ -21,7 +21,7 @@ module Twilio
21
21
  uri += '.json'
22
22
  params = (args[0] && args[0] != {}) ? twilify(args[0]) : nil
23
23
  uri += "?#{url_encode(params)}" if params && method == :get
24
- request = method_class.new uri, 'User-Agent' => 'twilio-ruby/0.3.3'
24
+ request = method_class.new uri, 'User-Agent' => 'twilio-ruby/0.4.0'
25
25
  request.basic_auth @account_sid, @auth_token
26
26
  request.form_data = params if params && [:post, :put].include?(method)
27
27
  http_response = @connection.request request
data/twilio-ruby.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "twilio-ruby"
3
- s.version = "0.3.3"
3
+ s.version = "0.4.0"
4
4
  s.author = "Andrew Benton"
5
5
  s.email = "andrewmbenton@gmail.com"
6
6
  s.description = "A simple library for communicating with the Twilio REST API"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 3
10
- version: 0.3.3
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Benton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-14 00:00:00 -07:00
18
+ date: 2011-06-16 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,8 @@ files:
72
72
  - lib/twilio-ruby/rest/transcriptions/transcription.rb
73
73
  - lib/twilio-ruby/rest/calls/call.rb
74
74
  - lib/twilio-ruby/rest/calls/calls.rb
75
+ - lib/twilio-ruby/rest/applications/applications.rb
76
+ - lib/twilio-ruby/rest/applications/application.rb
75
77
  - lib/twilio-ruby/rest/utils.rb
76
78
  - lib/twilio-ruby/rest/accounts/accounts.rb
77
79
  - lib/twilio-ruby/rest/accounts/account.rb