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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed66730b4007fa70d2a1ea1dc0e4a007440e8fc6
4
- data.tar.gz: d1fe3883e3bbe144d420123a18d60eedf3b6009d
3
+ metadata.gz: b5043886b40b0d5a33be8d95b90b2701aca03c1d
4
+ data.tar.gz: bd45d1118e7bbad6766fcfe47a391151fed12dd1
5
5
  SHA512:
6
- metadata.gz: c3b5f2b22b25f176b62084fc4d4347cf270069ff3f3e5d89a87aea957c6031a9a310cf19869a6795afa9ef0d9d35f249912dfa352644e979952771625ebd0bc8
7
- data.tar.gz: c80f740de9bef797e1c424adc46aed98d19de4ee763d334ee2cc8951f2db39da21c7faa4ec470c20f74121544fc5e5a2cb665cf3a58fa546ef85f63462e56d81
6
+ metadata.gz: 0199a66f73e55be1df0a8de2d18b733bb43541e8dc32f0dcbc44e5679c39d88d25026cc90e32d94789b2c4a5d07574eabf454981597cf0d8ead324dc617d2b47
7
+ data.tar.gz: f95b6891214f113f5f9ab002f88d8658011c51eb804398a1945e6be4a7522e91e3182b451a7a62b04369ace5b846a81ddc209744c7f31d6edfaad7c10180bedd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roust (1.8.3)
4
+ roust (1.8.4)
5
5
  activesupport (>= 4.0.10)
6
6
  httparty (>= 0.13.1)
7
7
  mail (>= 2.5.4)
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
 
@@ -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 = {}
@@ -1,3 +1,3 @@
1
1
  class Roust
2
- VERSION = '1.8.3'
2
+ VERSION = '1.8.4'
3
3
  end
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.3
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-03-10 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail