twilio-ruby 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010 Andrew Benton.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,13 @@
1
+ ## Get Started
2
+
3
+ Review [examples.rb](twilio-ruby/blob/master/examples.rb) to see how to get started using twilio-ruby.
4
+
5
+ To install:
6
+
7
+ $ sudo gem install twilio-ruby
8
+
9
+ To build and install yourself from the latest source:
10
+
11
+ 1) git clone this repo
12
+ 2) $ cd twilio-ruby; gem build .gemspec
13
+ 3) sudo gem install twilio-ruby-{version}
@@ -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.2'
24
+ request = method_class.new uri, 'User-Agent' => 'twilio-ruby/0.3.3'
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
@@ -0,0 +1,14 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "twilio-ruby"
3
+ s.version = "0.3.3"
4
+ s.author = "Andrew Benton"
5
+ s.email = "andrewmbenton@gmail.com"
6
+ s.description = "A simple library for communicating with the Twilio REST API"
7
+ s.summary = "A simple library for communicating with the Twilio REST API"
8
+ s.homepage = "http://github.com/andrewmbenton/twilio-ruby"
9
+ s.platform = Gem::Platform::RUBY
10
+ s.files = Dir['lib/**/*.rb'] + Dir['test/**/*.rb'] + ['examples.rb', 'Rakefile', 'LICENSE', 'README.md', 'twilio-ruby.gemspec']
11
+ s.test_files = Dir['test/**/*.rb']
12
+ s.add_dependency("builder", ">= 2.1.2")
13
+ s.add_dependency("crack", ">= 0.1.8")
14
+ end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
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-03-28 00:00:00 -07:00
18
+ date: 2011-05-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -96,6 +96,9 @@ files:
96
96
  - test/test_twilio.rb
97
97
  - examples.rb
98
98
  - Rakefile
99
+ - LICENSE
100
+ - README.md
101
+ - twilio-ruby.gemspec
99
102
  has_rdoc: true
100
103
  homepage: http://github.com/andrewmbenton/twilio-ruby
101
104
  licenses: []