audiosocket 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,9 +10,11 @@ Gem::Specification.new do |gem|
10
10
  gem.name = "audiosocket"
11
11
  gem.require_paths = ["lib"]
12
12
  gem.test_files = `git ls-files -- test/*`.split "\n"
13
- gem.version = "0.3.1"
13
+ gem.version = "0.3.2"
14
14
 
15
15
  gem.required_ruby_version = ">= 1.9.2"
16
16
 
17
- gem.add_dependency "faraday", "~> 0.7"
17
+ gem.add_dependency "faraday", "~> 0.8"
18
+ gem.add_dependency "faraday_middleware", "~> 0.8"
19
+
18
20
  end
@@ -1,6 +1,6 @@
1
1
  require "audiosocket/errors"
2
2
  require "faraday"
3
- require "json"
3
+ require "faraday_middleware"
4
4
 
5
5
  module Audiosocket
6
6
  class Client
@@ -9,11 +9,10 @@ module Audiosocket
9
9
 
10
10
  def initialize options = {}
11
11
  @url = options[:url] || "https://api.audiosocket.com/v5"
12
-
13
-
12
+
14
13
  @conn = Faraday.new url: @url do |f|
15
- f.use Faraday::Request::JSON
16
- f.use Faraday::Adapter::NetHttp
14
+ f.request :json
15
+ f.adapter Faraday.default_adapter
17
16
  end
18
17
 
19
18
  @conn.headers["X-Audiosocket-Token"] =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audiosocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-11 00:00:00.000000000Z
12
+ date: 2012-07-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
- requirement: &70358170796420 !ruby/object:Gem::Requirement
16
+ requirement: &70186641921380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.7'
21
+ version: '0.8'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70358170796420
24
+ version_requirements: *70186641921380
25
+ - !ruby/object:Gem::Dependency
26
+ name: faraday_middleware
27
+ requirement: &70186641920560 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '0.8'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70186641920560
25
36
  description: An authentication client for the Audiosocket API.
26
37
  email:
27
38
  - tech@audiosocket.com