pinch_hitter 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ad281bbcbc46749dd62398bed9d7d5541e988b9
4
- data.tar.gz: 6d1bf2170e91d25b57c85b1f457dd29b00c904b4
3
+ metadata.gz: c08db9ed66b5801167d7b219f613a1cff6b9dd94
4
+ data.tar.gz: 0befb33567a304b9981db61e079010b002281a3a
5
5
  SHA512:
6
- metadata.gz: ca0d42f73c2a46a473e77ec4c0c0fe57b68fb1e7e48e254b2c70e5679d0c5d74afe5266961492e7b381d4bffbab7cfd85fc517228e7442cdfbcca61bc4008181
7
- data.tar.gz: a34aea95d209d1e1b27ee7d52e1d95b0352716f7dc3d7ecc4cbb6a54c16497f7710501486310ff09de7026acbfcf0bdba5dfa3d0abd170170c564de4b159bd80
6
+ metadata.gz: f76d216bfd5a7fecdc21916e64b72608ddf825f7c26feb6aea043d3b6d1e30db3588793c6e5001f1857a1aec7c973d41246e463fa57757a9c8370b46240255ca
7
+ data.tar.gz: 453d8bcb683250b6e956783c27e1a0371ae3b836964786f1e8f590b1568cbb3da8d283f2e8b1262419b0e591a4110334ae24b5d4e755bac10e2437660b551310
data/Changelog CHANGED
@@ -10,3 +10,6 @@ Add ability to register modules for custom message handling
10
10
  === Release 0.4 / 2014-3-3
11
11
  * Add ability to retrieve requests made by the application
12
12
  * Support PUT, PATCH, DELETE
13
+
14
+ === Release 0.5 / 2014-7-3
15
+ * Fix issue where priming large messages would cause a 500
@@ -1,3 +1,3 @@
1
1
  module PinchHitter
2
- VERSION = "0.4"
2
+ VERSION = "0.5"
3
3
  end
data/lib/pinch_hitter.rb CHANGED
@@ -27,7 +27,8 @@ module PinchHitter
27
27
  end
28
28
 
29
29
  def store(endpoint, content)
30
- @session.post "/store?endpoint=#{endpoint}", content
30
+ content_type = message_store.determine_content_type(content)
31
+ @session.post "/store?endpoint=#{endpoint}", content, 'Content-Type' => content_type
31
32
  end
32
33
 
33
34
  def register_module(endpoint, handler)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinch_hitter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Jackson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2014-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra