appsignal 0.4.0 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,7 @@ module Appsignal
36
36
 
37
37
  def http_post(payload)
38
38
  Net::HTTP::Post.new(uri.request_uri).tap do |post|
39
+ post['Content-Type'] = 'application/json; charset=UTF-8'
39
40
  post.body = JSON.generate(payload)
40
41
  end
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.3'
3
3
  end
@@ -27,6 +27,7 @@ describe Appsignal::Transmitter do
27
27
  describe "#http_post" do
28
28
  it "calls Net::HTTP.post_form with the correct params" do
29
29
  post = stub
30
+ post.should_receive(:[]=).with('Content-Type', 'application/json; charset=UTF-8')
30
31
  post.should_receive(:body=).with("{\"the\":\"payload\"}")
31
32
  Socket.stub(:gethostname => 'app1.local')
32
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-02-22 00:00:00.000000000 Z
16
+ date: 2013-03-25 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -205,18 +205,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  - - ! '>='
206
206
  - !ruby/object:Gem::Version
207
207
  version: '0'
208
- segments:
209
- - 0
210
- hash: -2703450297702771893
211
208
  required_rubygems_version: !ruby/object:Gem::Requirement
212
209
  none: false
213
210
  requirements:
214
211
  - - ! '>='
215
212
  - !ruby/object:Gem::Version
216
213
  version: '0'
217
- segments:
218
- - 0
219
- hash: -2703450297702771893
220
214
  requirements: []
221
215
  rubyforge_project:
222
216
  rubygems_version: 1.8.23