vimaly 1.0.0 → 1.0.2

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
  SHA256:
3
- metadata.gz: b0a5b2991366fa54ec8d160b894d4393236d24362d8e659b7bdb2222be9001a9
4
- data.tar.gz: 200257d646a0a01284c5d26dae3be16c1c3f31e92fb5e3c9704223b00c8584a6
3
+ metadata.gz: d72a2025b7696e9d5282376e74beed0a99a089b9714cd9469bf93c0a4c636d39
4
+ data.tar.gz: 7f27cc5960df434c36e292c7e61fc0723d5306d12601b8c628ed75033c024fbf
5
5
  SHA512:
6
- metadata.gz: 529972ff9c59f81cf30ea2f0fcc81e09a51a8a8479b3e0a79929ce806001f3004b98368ef56953489d0721fe68462e74d1ce23f84d4a2df573c5525fdea4859f
7
- data.tar.gz: 78d667532eb197842526a3e9a51584c07d8fef4530fff79a4c4f2124645760d3d0e5057a4c99c242b5812d3f07e9715627aea8ef73f62e7427ea17429373c26e
6
+ metadata.gz: efb54c0796cead3eec74b605aaf6106ecb612c2e9ff2442a57abe135264ee4cb9d9ee3bc7fddb692790c36f9e25e4549335ae69375028b99f68c1eacb946003b
7
+ data.tar.gz: ea232fd63fa12c2cec8b52547a3741a7a8f760900ad8768ad6e889300055443a8a3b50a80806d6a02c1c3fad52fa33adcdee409d895bf3582cc159508d3df15a
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.3
@@ -2,4 +2,5 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.5.3
5
+ - 2.6.3
5
6
  before_install: gem install bundler
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.2
4
+
5
+ * Fix unfriendly filenames not attaching to Vimaly tickets [#17](https://github.com/sharesight/vimaly/pull/17)
6
+
7
+ ## 1.0.1
8
+
9
+ * Update for Ruby 2.6.3 compatibility.
10
+
3
11
  ## 1.0.0
4
12
 
5
13
  * allow adding attachments with providing a content-type [#15](https://github.com/sharesight/vimaly/pull/15)
@@ -55,7 +55,7 @@ module Vimaly
55
55
  end
56
56
 
57
57
  def add_attachment(ticket_id, file_name, file_content, request_options={})
58
- response = post("/tickets/#{ticket_id}/attachments?name=#{file_name}", file_content, request_options)
58
+ response = post("/tickets/#{ticket_id}/attachments?name=#{CGI.escape(file_name)}", file_content, request_options)
59
59
  case response.status
60
60
  when 200..299
61
61
  true
@@ -1,3 +1,3 @@
1
1
  module Vimaly
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Boettger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-21 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.0.2
184
+ rubygems_version: 3.0.4
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: Wrapper for the Vimaly API