flattr 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,6 @@ module Flattr
19
19
  :url => endpoint,
20
20
  }
21
21
  Faraday.new(default_options.deep_merge(connection_options)) do |builder|
22
- builder.use Faraday::Request::JSON
23
- builder.use Faraday::Request::UrlEncoded
24
22
 
25
23
  builder.use Flattr::Request::FlattrOAuth2, credentials if credentials?
26
24
  builder.use Flattr::Response::RaiseClientError
@@ -35,6 +35,7 @@ module Flattr
35
35
  request.url(path, params)
36
36
  when :post, :put, :patch
37
37
  request.path = path
38
+ req.headers['Content-Type'] = 'application/json'
38
39
  request.body = params unless params.empty?
39
40
  end
40
41
  end
@@ -13,7 +13,7 @@ module Flattr
13
13
 
14
14
  # @return [Integer]
15
15
  def self.patch
16
- 1
16
+ 2
17
17
  end
18
18
 
19
19
  # @return [String, NilClass]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flattr
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:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-10 00:00:00.000000000Z
13
+ date: 2012-04-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project: flattr
216
- rubygems_version: 1.8.18
216
+ rubygems_version: 1.8.23
217
217
  signing_key:
218
218
  specification_version: 3
219
219
  summary: Flattr API wrapper