roust 1.8.3 → 1.8.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/roust/ticket.rb +1 -2
- data/lib/roust/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5043886b40b0d5a33be8d95b90b2701aca03c1d
|
4
|
+
data.tar.gz: bd45d1118e7bbad6766fcfe47a391151fed12dd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0199a66f73e55be1df0a8de2d18b733bb43541e8dc32f0dcbc44e5679c39d88d25026cc90e32d94789b2c4a5d07574eabf454981597cf0d8ead324dc617d2b47
|
7
|
+
data.tar.gz: f95b6891214f113f5f9ab002f88d8658011c51eb804398a1945e6be4a7522e91e3182b451a7a62b04369ace5b846a81ddc209744c7f31d6edfaad7c10180bedd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -72,7 +72,7 @@ rt.ticket_create(attrs) # => { 'Subject' => 'a test ticket', 'Queue' => 'sales',
|
|
72
72
|
|
73
73
|
# Update ticket
|
74
74
|
attrs = {
|
75
|
-
'Subject' => 'A new subject'
|
75
|
+
'Subject' => 'A new subject',
|
76
76
|
'Owner' => 'alice'
|
77
77
|
}
|
78
78
|
|
@@ -81,7 +81,7 @@ rt.ticket_update(ticket_id, attrs) # => { 'Subject' => 'a test ticket', 'Queue'
|
|
81
81
|
# Add comments to a ticket
|
82
82
|
|
83
83
|
attrs = {
|
84
|
-
'Action' => 'comment'
|
84
|
+
'Action' => 'comment',
|
85
85
|
'Text' => 'this is a test comment'
|
86
86
|
}
|
87
87
|
|
@@ -90,7 +90,7 @@ rt.ticket_comment(ticket_id, attrs) # => { 'Subject' => 'a test ticket', 'Queue'
|
|
90
90
|
# Add correspondence to a ticket
|
91
91
|
|
92
92
|
attrs = {
|
93
|
-
'Action' => 'correspond'
|
93
|
+
'Action' => 'correspond',
|
94
94
|
'Text' => 'this is a test piece of correspondence, which will email out to requestors'
|
95
95
|
}
|
96
96
|
|
data/lib/roust/ticket.rb
CHANGED
@@ -309,8 +309,6 @@ class Roust
|
|
309
309
|
|
310
310
|
# TODO(auxesis): add method for listing ticket attachments
|
311
311
|
# TODO(auxesis): add method for getting a ticket attachment
|
312
|
-
# TODO(auxesis): add method for commenting on a ticket
|
313
|
-
# TODO(auxesis): add method for replying on a ticket
|
314
312
|
|
315
313
|
# To maintain backwards compatibility with previous versions (and rt-client),
|
316
314
|
# alias these methods to their short form.
|
@@ -385,6 +383,7 @@ class Roust
|
|
385
383
|
items.each do |item|
|
386
384
|
# Yes, this messes with the "content:" field but that's the one that's upsetting Mail.new
|
387
385
|
item.gsub!(/\n\s*\n/, "\n") # remove blank lines for Mail
|
386
|
+
item.gsub!(/\r\r\n/, "\n") # convert \r\r\n into \n so Mail parses it correctly
|
388
387
|
history = Mail.new(item)
|
389
388
|
next if not comments and history['type'].to_s =~ /Comment/ # skip comments
|
390
389
|
reply = {}
|
data/lib/roust/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roust
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lindsay Holmwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|