txgh-queue 1.0.1 → 1.0.2

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: dcb3e21737b86d0dd43566b43f85158387854826
4
- data.tar.gz: 369fd4afe0dfa0356c13d0b6269c1962be6ed92f
3
+ metadata.gz: ec976eef014c4582083125e7c2b696d2c213ce5e
4
+ data.tar.gz: 6c79801123d2e94bae20d8cbea886918666b4f13
5
5
  SHA512:
6
- metadata.gz: c7ab47d0904d9064f3bf469ab3bae4ec4dcd6698f4714d682c269a0c5c80a39bdcd5c4fc6128e7f7305667878da75ab43853eb8774d590fb9f8fd282418dd1f8
7
- data.tar.gz: cd9dc3b678f94b5d02e4e7c4596fa30e9877f598ec41c0dc6888744b34aee3340461d822a9d0b74f89d23d931ba8fdde5bb3c99896c0dc334555bbe2a6040930
6
+ metadata.gz: 7dcde23ddcd13037a172315976fcce4f980f513121849a8f2c42a207a031323b2dc3682f2899f022bde4c4c2c124517e468165044f42d7431382c04504cc197c
7
+ data.tar.gz: 1cb352f91b36edf958f7afccae397b615946fc5951a9e23f0ffa9325c4e826ac954daf920f1b8397c59401f6010430bdebe35fa1ab8190cdfa80036d3b96e1d7
@@ -10,7 +10,7 @@ module TxghQueue
10
10
 
11
11
  def status_for(response)
12
12
  case response.status.to_i / 100
13
- when 2
13
+ when 2, 3
14
14
  Status.ok
15
15
  else
16
16
  Status.fail
@@ -1,3 +1,3 @@
1
1
  module TxghQueue
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -21,6 +21,12 @@ describe ErrorHandlers::ServerResponse do
21
21
  expect(reply).to eq(Status.ok)
22
22
  end
23
23
 
24
+ it 'replies with ok if the status code is in the 300 range' do
25
+ server_response = TxghServer::Response.new(304, 'Not modified')
26
+ reply = described_class.status_for(server_response)
27
+ expect(reply).to eq(Status.ok)
28
+ end
29
+
24
30
  it 'replies with fail if the status code is in the 400 range' do
25
31
  server_response = TxghServer::Response.new(404, 'Not found')
26
32
  reply = described_class.status_for(server_response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txgh-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk