ticketinghub 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ticketing_hub/client.rb +2 -3
- data/lib/ticketing_hub/connection.rb +1 -0
- data/lib/ticketing_hub/error.rb +3 -0
- data/lib/ticketing_hub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db44235a2827548b2dda0ff2f23efe3cde73728b
|
4
|
+
data.tar.gz: 5c5a4b1bbf658f4ba9471397bfec9871d2b88aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f68128b28601221ebdca86bf3c86ed217fef90d2bc3211b48470a4277af6a10ed54647a2f2ab835764f7d6b516be29a0f286a0d61618669a5d66d61ed53954
|
7
|
+
data.tar.gz: 0328edc1faa3215ff3aafddcbc8674d52808045907bf0b503aa9ab128dd1889478ee323a85ed5ddc083911d0d302424b1b559c82b866def2c6460513c09c366e
|
data/lib/ticketing_hub/client.rb
CHANGED
@@ -40,9 +40,8 @@ module TicketingHub
|
|
40
40
|
get 'tiers', { date: date, starts_at: starts_at }
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
44
|
-
|
45
|
-
get 'options', { date: date }
|
43
|
+
def seasons
|
44
|
+
get 'seasons'
|
46
45
|
end
|
47
46
|
|
48
47
|
def consumer_fields order_id, ticket_id=nil
|
@@ -8,6 +8,7 @@ module TicketingHub
|
|
8
8
|
401 => TicketingHub::Unauthorized,
|
9
9
|
403 => TicketingHub::Forbidden,
|
10
10
|
404 => TicketingHub::NotFound,
|
11
|
+
405 => TicketingHub::Gone,
|
11
12
|
406 => TicketingHub::NotAcceptable,
|
12
13
|
422 => TicketingHub::UnprocessableEntity,
|
13
14
|
500 => TicketingHub::InternalServerError,
|
data/lib/ticketing_hub/error.rb
CHANGED
@@ -23,6 +23,9 @@ module TicketingHub
|
|
23
23
|
# Raised when TicketingHub returns a 404 HTTP status code
|
24
24
|
class NotFound < Error; end
|
25
25
|
|
26
|
+
# Raised when TicketingHub returns a 404 HTTP status code
|
27
|
+
class NotFound < Error; end
|
28
|
+
|
26
29
|
# Raised when TicketingHub returns a 406 HTTP status code
|
27
30
|
class NotAcceptable < Error; end
|
28
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketinghub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|