zendesk 0.1.8 → 0.1.9

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.
@@ -11,7 +11,10 @@ class Zendesk::Ticket < Zendesk::Resource
11
11
  alias :set_tags :current_tags
12
12
 
13
13
  def initialize(attrs = {})
14
- self.uploads = Zendesk::Attachment.new(attrs[:attachment]).save if attrs[:attachment]
14
+ begin
15
+ self.uploads = Zendesk::Attachment.new(attrs[:attachment]).save if attrs[:attachment]
16
+ rescue
17
+ end
15
18
  @comments = []
16
19
  load_fields
17
20
  self.tags = attrs[:tags] || attrs['tags']
@@ -1,3 +1,3 @@
1
1
  module Zendesk
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrey Deryabin