qst_client 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/qst_client.rb +3 -1
  2. metadata +3 -3
data/lib/qst_client.rb CHANGED
@@ -35,7 +35,9 @@ class QstClient
35
35
  def get_last_id
36
36
  response = self.class.head("#{@url}/incoming", :basic_auth => @auth)
37
37
  raise QstClient::Exception.new response unless (200 ... 400).include? response.code
38
- response.headers['etag']
38
+ etag = response.headers['etag']
39
+ etag = etag.first if etag.kind_of? Array
40
+ etag
39
41
  end
40
42
 
41
43
  # Get messages from the server.
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qst_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - InsTEDD