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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fd0fdf6a1129ead06114255002d2ef3865184e225dbf6f55cad71f3861928cf
4
- data.tar.gz: 7eddb9488374ff937a5807a06a8dd4a0d11a5b2382926c3b0539d32e0b3a6699
3
+ metadata.gz: a49ec64caf9babcbf976c542690685d3c8a686f62c0284b986e3efbfbf355b8c
4
+ data.tar.gz: 340d3fffafb24d75beb233b64c5814f9c7c281f953ddfd6fd75b5b4a1cb5bbd8
5
5
  SHA512:
6
- metadata.gz: e60ae4a924d45689450d6d2ad4106bbc76bdb928416ab09ebfbce4e19c6a0f241e1dee3ccf1c16b724eaa6162059f57dcfbd476d0fd8807355db2d929ca7dc57
7
- data.tar.gz: e6bbbf5e015fb4f9faa90752f8c7447d5e85e963584fdac81bb40b89ac04fa04b87c7ba59f355263dd96eded10d59ca06b249100b56a2317fe530e5cf398b81b
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
@@ -19,3 +19,4 @@ tmp
19
19
  doc/
20
20
  .rvmrc
21
21
  .ruby-version
22
+ .rspec_failures.txt
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)
@@ -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 = if wrapped_exception.is_a?(Faraday::Error::ParsingError)
8
- wrapped_exception.message
9
- elsif wrapped_exception.is_a?(Faraday::Error::ClientError)
10
- wrapped_exception.response.inspect
11
- else
12
- wrapped_exception.instance_variable_get(:@wrapped_exception).inspect
13
- end
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Zendesk2
3
- VERSION = '1.13.1'.freeze
3
+ VERSION = '1.15.0'.freeze
4
4
  end
data/spec/spec_helper.rb CHANGED
@@ -18,4 +18,5 @@ RSpec.configure do |config|
18
18
  config.run_all_when_everything_filtered = true
19
19
 
20
20
  config.order = 'random'
21
+ config.example_status_persistence_file_path = '.rspec_failures.txt'
21
22
  end
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 = '~> 2.0'
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.13.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: 2019-11-12 00:00:00.000000000 Z
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.0.6
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:
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache:
4
- - bundler
5
- rvm:
6
- - 2.3.0
7
- - 2.2.4
8
- script:
9
- - bundle exec rubocop -Da
10
- - bundle exec rake spec
11
- notifications:
12
- email: false