rt-client 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/rt/client.rb +9 -9
- data/rt/rtxmlsrv.rb +1 -1
- metadata +6 -6
data/rt/client.rb
CHANGED
@@ -8,17 +8,17 @@ require 'mime/types' # requires both nokogiri and rcov. Yuck.
|
|
8
8
|
require 'date'
|
9
9
|
require 'pp'
|
10
10
|
|
11
|
-
##A ruby library API to Request Tracker's REST interface. Requires the
|
12
|
-
##rubygems rest-client, tmail and mime-types to be installed. You can
|
13
|
-
##create a file name .rtclientrc in the same directory as client.rb with a
|
14
|
-
##default server/user/pass to connect to RT as, so that you don't have to
|
15
|
-
##specify it/update it in lots of different scripts.
|
11
|
+
## A ruby library API to Request Tracker's REST interface. Requires the
|
12
|
+
## rubygems rest-client, tmail and mime-types to be installed. You can
|
13
|
+
## create a file name .rtclientrc in the same directory as client.rb with a
|
14
|
+
## default server/user/pass to connect to RT as, so that you don't have to
|
15
|
+
## specify it/update it in lots of different scripts.
|
16
16
|
##
|
17
17
|
## Thanks to Brian McArdle for patch dealing with spaces in Custom Fields.
|
18
18
|
## To reference custom fields in RT that have spaces with rt-client, use an
|
19
|
-
## underscore in the rt-client code
|
20
|
-
|
21
|
-
##TODO: Streaming, chunking attachments in compose method
|
19
|
+
## underscore in the rt-client code for the hash key.
|
20
|
+
#
|
21
|
+
## TODO: Streaming, chunking attachments in compose method
|
22
22
|
#
|
23
23
|
# See each method for sample usage. To use this, "gem install rt-client" and
|
24
24
|
#
|
@@ -26,7 +26,7 @@ require 'pp'
|
|
26
26
|
|
27
27
|
class RT_Client
|
28
28
|
|
29
|
-
UA = "Mozilla/5.0 ruby RT Client Interface 0.
|
29
|
+
UA = "Mozilla/5.0 ruby RT Client Interface 0.5.0"
|
30
30
|
attr_reader :status, :site, :version, :cookies, :server, :user, :cookie
|
31
31
|
|
32
32
|
# Create a new RT_Client object. Load up our stored cookie and check it.
|
data/rt/rtxmlsrv.rb
CHANGED
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Lahti
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-05-09 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -126,7 +126,7 @@ dependencies:
|
|
126
126
|
type: :runtime
|
127
127
|
version_requirements: *id007
|
128
128
|
description: " RT_Client is a ruby object that accesses the REST interface version 1.0\n of a Request Tracker instance. See http://www.bestpractical.com/ for\n Request Tracker.\n"
|
129
|
-
email:
|
129
|
+
email: tlahti@dmsolutions.com
|
130
130
|
executables: []
|
131
131
|
|
132
132
|
extensions: []
|