rt-client 0.3.5 → 0.3.7

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/rt/client.rb +4 -4
  2. metadata +3 -3
data/rt/client.rb CHANGED
@@ -22,7 +22,7 @@ require 'pp'
22
22
 
23
23
  class RT_Client
24
24
 
25
- UA = "Mozilla/5.0 ruby RT Client Interface 0.3.5"
25
+ UA = "Mozilla/5.0 ruby RT Client Interface 0.3.7"
26
26
  attr_reader :status, :site, :version, :cookies, :server, :user, :cookie
27
27
 
28
28
  # Create a new RT_Client object. Load up our stored cookie and check it.
@@ -55,7 +55,7 @@ class RT_Client
55
55
  # cookies=<directory>
56
56
  def initialize(*params)
57
57
  @boundary = "----xYzZY#{rand(1000000).to_s}xYzZY"
58
- @version = "0.3.5"
58
+ @version = "0.3.7"
59
59
  @status = "Not connected"
60
60
  @server = "http://localhost/"
61
61
  @user = "rt_user"
@@ -159,9 +159,9 @@ class RT_Client
159
159
  reply["#{k}"] = v.to_s
160
160
  kk = k.gsub(/\{/,"\\\{")
161
161
  kk.gsub!(/\}/,"\\\}")
162
- pattern = "^" + kk + ": (.*?)^\\w+:"
162
+ pattern = "^" + kk + ": (.*?)^[\\w\\.\\{\\}]+:"
163
163
  temp = resp.match(/#{pattern}/mi) # TMail strips line breaks
164
- reply["#{k}"] = temp[1] if temp.class != NilClass
164
+ reply["#{k}"] = temp[1].rstrip if temp.class != NilClass
165
165
  end
166
166
  reply
167
167
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rt-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Lahti