pinch_hitter 0.5 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c08db9ed66b5801167d7b219f613a1cff6b9dd94
4
- data.tar.gz: 0befb33567a304b9981db61e079010b002281a3a
3
+ metadata.gz: 9a0f7f0f2058c4b4582000f3e5fa1834ba3aad64
4
+ data.tar.gz: dc5c13d238bd54fea9fd33077f64c53ad42c9528
5
5
  SHA512:
6
- metadata.gz: f76d216bfd5a7fecdc21916e64b72608ddf825f7c26feb6aea043d3b6d1e30db3588793c6e5001f1857a1aec7c973d41246e463fa57757a9c8370b46240255ca
7
- data.tar.gz: 453d8bcb683250b6e956783c27e1a0371ae3b836964786f1e8f590b1568cbb3da8d283f2e8b1262419b0e591a4110334ae24b5d4e755bac10e2437660b551310
6
+ metadata.gz: 4a0ff31eaca328ac428a75a9f8005aa42c9aa5cb5ca5292df2634c350a568ec2140cb8d02658f08a133e4ec1a7895cf6cd29822aea5925e0164d662aada09a39
7
+ data.tar.gz: c749fa33faa88005085bbf6e21be861fc063c73f7204cf51d2d44161c33b7ca4e335beb903f531bbbf47c18319aa8fb2a6ebc0242ec06ab709b4eb9a664f7e8e
data/Changelog CHANGED
@@ -13,3 +13,6 @@ Add ability to register modules for custom message handling
13
13
 
14
14
  === Release 0.5 / 2014-7-3
15
15
  * Fix issue where priming large messages would cause a 500
16
+
17
+ === Release 0.5.1 / 2014-7-3
18
+ * Travis revealed some test issues with newer gems. Thanks Travis CI!
@@ -1,4 +1,3 @@
1
- require 'rspec-expectations'
2
1
  require 'pinch_hitter'
3
2
  require 'net/http'
4
3
 
@@ -1,3 +1,3 @@
1
1
  module PinchHitter
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
  end
data/test/test_service.rb CHANGED
@@ -12,14 +12,13 @@ class TestService < MiniTest::Test
12
12
  end
13
13
 
14
14
  def test_retrieve
15
- post "/store", xml_message
15
+ post "/store", xml_message
16
16
  post "/respond", ''
17
17
 
18
18
  assert_received xml_message
19
19
  assert_equal 200, last_response.status
20
20
  end
21
21
 
22
-
23
22
  def test_result_should_be_xml
24
23
  post "/store", xml_message
25
24
  post "/respond", ''
@@ -31,7 +30,7 @@ class TestService < MiniTest::Test
31
30
  post "/store", yml_message
32
31
  post "/respond", ''
33
32
 
34
- assert_equal 'application/json;charset=utf-8', last_response.content_type
33
+ assert_equal 'application/json', last_response.content_type
35
34
  end
36
35
 
37
36
  def test_reset
@@ -43,24 +42,23 @@ class TestService < MiniTest::Test
43
42
  end
44
43
 
45
44
  def test_store_with_params
46
- post '/store?endpoint=test2/subtest', yml_message
45
+ post '/store?endpoint=test2/subtest', yml_message
47
46
  post '/test2/subtest', ''
48
-
47
+
49
48
  assert_received yml_message
50
49
  end
51
50
 
52
51
  def test_store_as_subendpoint
53
- post '/store/test2/subtest', yml_message
52
+ post '/store/test2/subtest', yml_message
54
53
  post '/test2/subtest', ''
55
-
54
+
56
55
  assert_received yml_message
57
56
  end
58
-
59
57
 
60
58
  def test_multi_endpoints
61
59
  post '/store/endpoint1', xml_message
62
60
  post '/store/endpoint2', yml_message
63
-
61
+
64
62
  post '/endpoint2', ''
65
63
  assert_received yml_message
66
64
 
@@ -74,7 +72,7 @@ class TestService < MiniTest::Test
74
72
  post '/store/endpoint2', yml_message
75
73
  post '/store/endpoint2', yml_message
76
74
  post '/store/endpoint2', yml_message
77
-
75
+
78
76
  post '/endpoint2', ''
79
77
  assert_received yml_message
80
78
  post '/endpoint1', ''
@@ -133,5 +131,4 @@ class TestService < MiniTest::Test
133
131
  assert_equal user_post, response.first['body']
134
132
  assert response.first['headers']
135
133
  end
136
-
137
134
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinch_hitter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Jackson