zendesk2 1.13.1 → 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/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 +1 -1
- metadata +8 -8
- 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/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,7 +17,7 @@ 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'
|
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
|
@@ -99,9 +99,9 @@ executables: []
|
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
|
+
- ".github/workflows/ruby.yml"
|
102
103
|
- ".gitignore"
|
103
104
|
- ".rubocop.yml"
|
104
|
-
- ".travis.yml"
|
105
105
|
- CHANGELOG.md
|
106
106
|
- Gemfile
|
107
107
|
- Guardfile
|
@@ -355,13 +355,13 @@ homepage: http://joshualane.com/zendesk2
|
|
355
355
|
licenses:
|
356
356
|
- MIT
|
357
357
|
metadata: {}
|
358
|
-
post_install_message:
|
358
|
+
post_install_message:
|
359
359
|
rdoc_options: []
|
360
360
|
require_paths:
|
361
361
|
- lib
|
362
362
|
required_ruby_version: !ruby/object:Gem::Requirement
|
363
363
|
requirements:
|
364
|
-
- - "
|
364
|
+
- - ">="
|
365
365
|
- !ruby/object:Gem::Version
|
366
366
|
version: '2.0'
|
367
367
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -370,8 +370,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
370
|
- !ruby/object:Gem::Version
|
371
371
|
version: '0'
|
372
372
|
requirements: []
|
373
|
-
rubygems_version: 3.
|
374
|
-
signing_key:
|
373
|
+
rubygems_version: 3.4.1
|
374
|
+
signing_key:
|
375
375
|
specification_version: 4
|
376
376
|
summary: Zendesk V2 API client
|
377
377
|
test_files:
|