go_transit 0.8.0 → 0.8.1

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: 75a803314654232e17915c91c0af5859985172cbeb8c7851377d4e3128bbabc9
4
- data.tar.gz: '09fbe1f8b08c6ea2d00e5a0c212fda686196a7a00bb4c3fd826d6f7732702acc'
3
+ metadata.gz: ac02d098fdf5e075c7be0c91f350223859f93642bf716da5705eff59b30fb053
4
+ data.tar.gz: 1c3d0ae74df441298dc26fd4d82075183166d6a2096ca304b1e69f80c71e2304
5
5
  SHA512:
6
- metadata.gz: d686899e0198bcc3c32d8d38de9fa4f399d25da29b71dd491bde54b6e9c6cada64ea1afd8f2da6fb8aa293ff5172964378da32ba11f49f73bce6a269d57c0344
7
- data.tar.gz: 9e86b72905dcd6c23460669a6d0dbd59df940ef94ea2a858a3300fe3e3bb56f8e0f4d2bf08e65ab6c19b74f427205ad06ff6994817e6263cbfbc75ef466c48da
6
+ metadata.gz: 2ef5935c2c0a985620d94b2866bb667af52775814ecf7ea6df77c868c92f2be62a21caa16b2b02d9690ecf506458b6fb1f79054e9768958b664b02dfc0503c1b
7
+ data.tar.gz: 60e1819e3b878c7b800216284ca9b14b7f8768c35150c63af976d36624119df71cbbe26320c0108df3945bc1e8bd17efc626e5f5e0bc5a3fcd183c9e02961144
@@ -6,8 +6,8 @@ module GoTransit
6
6
  end
7
7
 
8
8
  NoContentError = Class.new(ApiError)
9
- BadRequestError = Class.new(StandardError)
10
- UnauthorizedError = Class.new(StandardError)
11
- ForbiddenError = Class.new(StandardError)
12
- NotFoundError = Class.new(StandardError)
9
+ BadRequestError = Class.new(ApiError)
10
+ UnauthorizedError = Class.new(ApiError)
11
+ ForbiddenError = Class.new(ApiError)
12
+ NotFoundError = Class.new(ApiError)
13
13
  end
@@ -2,6 +2,10 @@ module GoTransit
2
2
  class Metadata < ApiResource
3
3
  attr_accessor :time_stamp, :error_code, :error_message
4
4
 
5
+ def to_s
6
+ "#{error_code} - #{error_message}"
7
+ end
8
+
5
9
  def code
6
10
  error_code.to_i
7
11
  end
@@ -1,3 +1,3 @@
1
1
  module GoTransit
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_transit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Mazur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-18 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport