qst_client 0.1 → 0.2

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.
Files changed (2) hide show
  1. data/lib/qst_client.rb +3 -1
  2. metadata +3 -3
data/lib/qst_client.rb CHANGED
@@ -39,7 +39,8 @@ class QstClient
39
39
  response['etag']
40
40
  end
41
41
 
42
- # Get messages from the server, optionally saying from which id to start
42
+ # Get messages from the server, optionally saying from which id to start.
43
+ # Returns an array of hashes similar to the one you would use to put_messages.
43
44
  def get_messages(from_id = nil)
44
45
  response = self.class.get "#{@url}/outgoing", :basic_auth => @auth
45
46
  raise QstClient::Exception.new response unless (200 ... 400).include? response.code
@@ -109,6 +110,7 @@ class QstClient
109
110
 
110
111
  response = self.class.post "#{@url}/incoming", :basic_auth => @auth, :body => xml.target!, :headers => {'Content-Type' => 'application/xml'}
111
112
  raise QstClient::Exception.new response unless (200 ... 400).include? response.code
113
+ response['etag']
112
114
  end
113
115
 
114
116
  end
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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- version: "0.1"
8
+ - 2
9
+ version: "0.2"
10
10
  platform: ruby
11
11
  authors:
12
12
  - InsTEDD