zendesk2 1.13.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +38 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +24 -0
- data/README.md +0 -2
- data/lib/zendesk2/error.rb +8 -7
- data/lib/zendesk2/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/zendesk2.gemspec +2 -2
- metadata +16 -10
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a49ec64caf9babcbf976c542690685d3c8a686f62c0284b986e3efbfbf355b8c
|
4
|
+
data.tar.gz: 340d3fffafb24d75beb233b64c5814f9c7c281f953ddfd6fd75b5b4a1cb5bbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 933378e5454ce0341a77e7748e80a74b4f635a4e03ef05df4898aaca697cd28001dd50b1d5ffd970bf3a9b744261aae8eeb4de8b524c3cf85f452296ee172806
|
7
|
+
data.tar.gz: 6dfe6d0633561bc53ebd1e483cc42b844569b69020bd740b07f21b827ee409409114e11eb9fa8e868883b9a6a36b6f5968a8aa7b0c03af9184c5522b9db0d439
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ "master" ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ "master" ]
|
15
|
+
|
16
|
+
permissions:
|
17
|
+
contents: read
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
test:
|
21
|
+
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.7', '3.0', '3.1', '3.2']
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- name: Set up Ruby
|
30
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
31
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
32
|
+
# uses: ruby/setup-ruby@v1
|
33
|
+
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
|
34
|
+
with:
|
35
|
+
ruby-version: ${{ matrix.ruby-version }}
|
36
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v1.13.0](https://github.com/lanej/zendesk2/tree/v1.13.0) (2019-08-28)
|
4
|
+
[Full Changelog](https://github.com/lanej/zendesk2/compare/v1.12.0...v1.13.0)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- How to specify role when getting all users? [\#65](https://github.com/lanej/zendesk2/issues/65)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- Add user\_segment\_id and permission\_group\_id as arguments to create HelpCenter article [\#67](https://github.com/lanej/zendesk2/pull/67) ([jolly7nap3](https://github.com/jolly7nap3))
|
13
|
+
- Add Ticket Form and Brand support [\#66](https://github.com/lanej/zendesk2/pull/66) ([pirvudoru](https://github.com/pirvudoru))
|
14
|
+
|
15
|
+
## [v1.12.0](https://github.com/lanej/zendesk2/tree/v1.12.0) (2016-10-25)
|
16
|
+
[Full Changelog](https://github.com/lanej/zendesk2/compare/v1.11.0...v1.12.0)
|
17
|
+
|
18
|
+
**Merged pull requests:**
|
19
|
+
|
20
|
+
- fix master: rubocop and deprecated cistern calls [\#64](https://github.com/lanej/zendesk2/pull/64) ([lanej](https://github.com/lanej))
|
21
|
+
- fix\(request\): handle missing requester information in \#create\_ticket [\#61](https://github.com/lanej/zendesk2/pull/61) ([lanej](https://github.com/lanej))
|
22
|
+
- Actually destroy the help center article in mocks [\#60](https://github.com/lanej/zendesk2/pull/60) ([omgitsads](https://github.com/omgitsads))
|
23
|
+
- chore\(dep\): allow json \> 1.7, \< 3.0 [\#59](https://github.com/lanej/zendesk2/pull/59) ([lanej](https://github.com/lanej))
|
24
|
+
- feature\(\*\): create tickets with collaborator descriptions [\#58](https://github.com/lanej/zendesk2/pull/58) ([lanej](https://github.com/lanej))
|
25
|
+
- Add a Gitter chat badge to README.md [\#57](https://github.com/lanej/zendesk2/pull/57) ([gitter-badger](https://github.com/gitter-badger))
|
26
|
+
|
3
27
|
## [v1.11.0](https://github.com/lanej/zendesk2/tree/v1.11.0) (2016-07-05)
|
4
28
|
[Full Changelog](https://github.com/lanej/zendesk2/compare/v1.10.0...v1.11.0)
|
5
29
|
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Zendesk2
|
2
2
|
|
3
|
-
[![Join the chat at https://gitter.im/lanej/zendesk2](https://badges.gitter.im/lanej/zendesk2.svg)](https://gitter.im/lanej/zendesk2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
|
-
|
5
3
|
[![Build Status](https://travis-ci.org/lanej/zendesk2.svg?branch=master)](http://travis-ci.org/lanej/zendesk2)
|
6
4
|
[![Gem Version](https://fury-badge.herokuapp.com/rb/zendesk2.png)](http://badge.fury.io/rb/zendesk2)
|
7
5
|
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/lanej/zendesk2)
|
data/lib/zendesk2/error.rb
CHANGED
@@ -4,13 +4,14 @@ class Zendesk2::Error < StandardError
|
|
4
4
|
def initialize(wrapped_exception)
|
5
5
|
@wrapped_exception = wrapped_exception
|
6
6
|
@response = wrapped_exception.response
|
7
|
-
message =
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
message =
|
8
|
+
if wrapped_exception.is_a?(Faraday::Error::ParsingError)
|
9
|
+
wrapped_exception.message
|
10
|
+
elsif wrapped_exception.is_a?(Faraday::Error::ClientError) || wrapped_exception.is_a?(Faraday::ClientError)
|
11
|
+
wrapped_exception.response.inspect
|
12
|
+
else
|
13
|
+
wrapped_exception.instance_variable_get(:@wrapped_exception)
|
14
|
+
end
|
14
15
|
super(message)
|
15
16
|
end
|
16
17
|
end
|
data/lib/zendesk2/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/zendesk2.gemspec
CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
gem.version = Zendesk2::VERSION
|
19
19
|
|
20
|
-
gem.required_ruby_version = '
|
20
|
+
gem.required_ruby_version = '>= 2.0'
|
21
21
|
|
22
22
|
gem.add_dependency 'cistern', '~> 2.3'
|
23
23
|
gem.add_dependency 'faraday', '~> 0.9'
|
24
24
|
gem.add_dependency 'faraday_middleware', '~> 0.9'
|
25
|
-
gem.add_dependency 'jwt', '
|
25
|
+
gem.add_dependency 'jwt', '>= 1.0', '< 3.0'
|
26
26
|
gem.add_dependency 'json', '> 1.7', '< 3.0'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cistern
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: jwt
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.0'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '3.0'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '1.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: json
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,9 +99,9 @@ executables: []
|
|
93
99
|
extensions: []
|
94
100
|
extra_rdoc_files: []
|
95
101
|
files:
|
102
|
+
- ".github/workflows/ruby.yml"
|
96
103
|
- ".gitignore"
|
97
104
|
- ".rubocop.yml"
|
98
|
-
- ".travis.yml"
|
99
105
|
- CHANGELOG.md
|
100
106
|
- Gemfile
|
101
107
|
- Guardfile
|
@@ -349,13 +355,13 @@ homepage: http://joshualane.com/zendesk2
|
|
349
355
|
licenses:
|
350
356
|
- MIT
|
351
357
|
metadata: {}
|
352
|
-
post_install_message:
|
358
|
+
post_install_message:
|
353
359
|
rdoc_options: []
|
354
360
|
require_paths:
|
355
361
|
- lib
|
356
362
|
required_ruby_version: !ruby/object:Gem::Requirement
|
357
363
|
requirements:
|
358
|
-
- - "
|
364
|
+
- - ">="
|
359
365
|
- !ruby/object:Gem::Version
|
360
366
|
version: '2.0'
|
361
367
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -364,8 +370,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
370
|
- !ruby/object:Gem::Version
|
365
371
|
version: '0'
|
366
372
|
requirements: []
|
367
|
-
rubygems_version: 3.
|
368
|
-
signing_key:
|
373
|
+
rubygems_version: 3.4.1
|
374
|
+
signing_key:
|
369
375
|
specification_version: 4
|
370
376
|
summary: Zendesk V2 API client
|
371
377
|
test_files:
|