ts_json_api 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,12 +20,12 @@ module TsJsonApi
20
20
  end
21
21
 
22
22
  def api
23
- @@api ||= RestClient::Resource.new(Configure.server_url, user: Configure.username, password: Configure.password, timeout: 20, headers: { accept: :json })
23
+ @@api ||= RestClient::Resource.new(Configure.server_url, user: Configure.username, password: Configure.password, timeout: 20)
24
24
  end
25
25
 
26
26
  def perfom_request(partial_url)
27
27
  begin
28
- api[partial_url].get version: api_version(partial_url)
28
+ api[partial_url].get accept: "application/json;version=#{api_version(partial_url)}"
29
29
 
30
30
  rescue RestClient::Exceptions::EXCEPTIONS_MAP[400] => e
31
31
  raise ApiLimitExceededException.new exception: e
@@ -1,3 +1,3 @@
1
1
  module TsJsonApi
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts_json_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-09 00:00:00.000000000 Z
12
+ date: 2013-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails