seatsio 32.0.0 → 32.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a4c05feef8448daa977bdc2148b893bd92986ba8da80765f23b5dc80ac57f9e
4
- data.tar.gz: aa0229bf2f040f406ac18b788b74fa540a16420de533cdecbe8ed1aec5abdf26
3
+ metadata.gz: 43829081cb0883d2369bbfb9b6c4807a04e38fb3e97627989d9b1f6f01a69e13
4
+ data.tar.gz: de4d719a4ae6b9f9bcaa5d9d635274f5effabc0a956f51f94939b4fc858dc66a
5
5
  SHA512:
6
- metadata.gz: 8f6d5d72e8e7defd3f34b8bbb042e60440047a0e705d62b6f71053cd8f59eacc34bdc62f1bf55c56cd44433ba621fa053eff782382bceb8978c8446140f0f23a
7
- data.tar.gz: 2ff422ca32191907b0c22659ad8f6a295f74e4843c2bc3c96be27c2a208486e36ad410696159f27c3665fffc64307ba20e9e64e024b2fc0c46abbfb59d499ddc
6
+ metadata.gz: '0379f6a73494c16aed72473174ae1910b08abda9b50a4c53c3d92b8a3f4dfd72488d5c4900406f444ba98d011e3a27b3a83ce648952b92d75df596fb698d3451'
7
+ data.tar.gz: 1adeed2183530a981003a5649931e0ce15011aecbf7532196f5bea8444036dccc67178b584729e7ee283c617c11fdb88b4d9f615fd9c514959e4e7adf2acd0b0
data/Gemfile.lock CHANGED
@@ -1,36 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (32.0.0)
4
+ seatsio (32.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- addressable (2.6.0)
10
- public_suffix (>= 2.0.2, < 4.0)
11
- crack (0.4.3)
12
- safe_yaml (~> 1.0.0)
13
- domain_name (0.5.20180417)
9
+ addressable (2.7.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
11
+ crack (0.4.5)
12
+ rexml
13
+ domain_name (0.5.20190701)
14
14
  unf (>= 0.0.5, < 1.0.0)
15
- hashdiff (0.4.0)
15
+ hashdiff (1.0.1)
16
+ http-accept (1.7.0)
16
17
  http-cookie (1.0.3)
17
18
  domain_name (~> 0.5)
18
- mime-types (3.2.2)
19
+ mime-types (3.3.1)
19
20
  mime-types-data (~> 3.2015)
20
- mime-types-data (3.2019.0331)
21
- minitest (5.11.3)
21
+ mime-types-data (3.2021.0225)
22
+ minitest (5.14.4)
22
23
  netrc (0.11.0)
23
- public_suffix (3.1.0)
24
- rake (13.0.1)
25
- rest-client (2.0.2)
24
+ public_suffix (4.0.6)
25
+ rake (13.0.3)
26
+ rest-client (2.1.0)
27
+ http-accept (>= 1.7.0, < 2.0)
26
28
  http-cookie (>= 1.0.2, < 2.0)
27
29
  mime-types (>= 1.16, < 4.0)
28
30
  netrc (~> 0.8)
29
- safe_yaml (1.0.5)
31
+ rexml (3.2.5)
30
32
  unf (0.1.4)
31
33
  unf_ext
32
- unf_ext (0.0.7.6)
33
- webmock (3.6.0)
34
+ unf_ext (0.0.7.7)
35
+ webmock (3.12.2)
34
36
  addressable (>= 2.3.6)
35
37
  crack (>= 0.3.2)
36
38
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -39,7 +41,7 @@ PLATFORMS
39
41
  ruby
40
42
 
41
43
  DEPENDENCIES
42
- bundler (~> 1.16)
44
+ bundler (~> 2.2)
43
45
  minitest (~> 5.0)
44
46
  rake (~> 13.0)
45
47
  rest-client (~> 2.0, >= 2.0.2)
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # seatsio-ruby, the official Seats.io Ruby client library
2
2
 
3
- ![Build](https://github.com/seatsio/seatsio-ruby/workflows/Build/badge.svg)
3
+ [![Build](https://github.com/seatsio/seatsio-ruby/workflows/Build/badge.svg)](https://github.com/seatsio/seatsio-ruby/actions/workflows/build.yml)
4
+ [![Gem Version](https://badge.fury.io/rb/seatsio.svg)](https://badge.fury.io/rb/seatsio)
4
5
 
5
6
  This is the official Ruby client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview), supporting Ruby 2.2.0+
6
7
 
@@ -119,5 +120,5 @@ This exception contains a message string describing what went wrong, and also tw
119
120
 
120
121
  This library supports [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff).
121
122
 
122
- When you send too many concurrent requests, the server returns an error `429 - Too Many Requests`. We react to this by waiting for a while, and then retrying the request.
123
- If the request still fails with an error `429`, we wait a little longer, and try again. This happens at most 5 times, before we give up (after approximately 15 seconds).
123
+ When you send too many concurrent requests, the server returns an error `429 - Too Many Requests`. The client reacts to this by waiting for a while, and then retrying the request.
124
+ If the request still fails with an error `429`, it waits a little longer, and try again. This happens at most 5 times, before giving up (after approximately 15 seconds).
@@ -14,6 +14,10 @@ module Seatsio
14
14
  get_chart_report('byLabel', chart_key, book_whole_tables)
15
15
  end
16
16
 
17
+ def by_object_type(chart_key, book_whole_tables = nil)
18
+ get_chart_report('byObjectType', chart_key, book_whole_tables)
19
+ end
20
+
17
21
  def by_category_key(chart_key, book_whole_tables = nil)
18
22
  get_chart_report('byCategoryKey', chart_key, book_whole_tables)
19
23
  end
@@ -11,6 +11,10 @@ module Seatsio
11
11
  @http_client = ::Seatsio::HttpClient.new(secret_key, workspace_key, base_url)
12
12
  end
13
13
 
14
+ def by_status(event_key, status = nil)
15
+ fetch_report('byStatus', event_key, status)
16
+ end
17
+
14
18
  def summary_by_status(event_key)
15
19
  fetch_summary_report('byStatus', event_key)
16
20
  end
@@ -19,6 +23,22 @@ module Seatsio
19
23
  fetch_deep_summary_report('byStatus', event_key)
20
24
  end
21
25
 
26
+ def by_object_type(event_key, object_type = nil)
27
+ fetch_report('byObjectType', event_key, object_type)
28
+ end
29
+
30
+ def summary_by_object_type(event_key)
31
+ fetch_summary_report('byObjectType', event_key)
32
+ end
33
+
34
+ def deep_summary_by_object_type(event_key)
35
+ fetch_deep_summary_report('byObjectType', event_key)
36
+ end
37
+
38
+ def by_category_key(event_key, category_key = nil)
39
+ fetch_report('byCategoryKey', event_key, category_key)
40
+ end
41
+
22
42
  def summary_by_category_key(event_key)
23
43
  fetch_summary_report('byCategoryKey', event_key)
24
44
  end
@@ -27,6 +47,10 @@ module Seatsio
27
47
  fetch_deep_summary_report('byCategoryKey', event_key)
28
48
  end
29
49
 
50
+ def by_category_label(event_key, category_label = nil)
51
+ fetch_report('byCategoryLabel', event_key, category_label)
52
+ end
53
+
30
54
  def summary_by_category_label(event_key)
31
55
  fetch_summary_report('byCategoryLabel', event_key)
32
56
  end
@@ -35,6 +59,10 @@ module Seatsio
35
59
  fetch_deep_summary_report('byCategoryLabel', event_key)
36
60
  end
37
61
 
62
+ def by_section(event_key, section = nil)
63
+ fetch_report('bySection', event_key, section)
64
+ end
65
+
38
66
  def summary_by_section(event_key)
39
67
  fetch_summary_report('bySection', event_key)
40
68
  end
@@ -43,6 +71,10 @@ module Seatsio
43
71
  fetch_deep_summary_report('bySection', event_key)
44
72
  end
45
73
 
74
+ def by_selectability(event_key, selectability = nil)
75
+ fetch_report('bySelectability', event_key, selectability)
76
+ end
77
+
46
78
  def summary_by_selectability(event_key)
47
79
  fetch_summary_report('bySelectability', event_key)
48
80
  end
@@ -51,6 +83,10 @@ module Seatsio
51
83
  fetch_deep_summary_report('bySelectability', event_key)
52
84
  end
53
85
 
86
+ def by_channel(event_key, channelKey = nil)
87
+ fetch_report('byChannel', event_key, channelKey)
88
+ end
89
+
54
90
  def summary_by_channel(event_key)
55
91
  fetch_summary_report('byChannel', event_key)
56
92
  end
@@ -63,34 +99,10 @@ module Seatsio
63
99
  fetch_report('byLabel', event_key, label)
64
100
  end
65
101
 
66
- def by_status(event_key, status = nil)
67
- fetch_report('byStatus', event_key, status)
68
- end
69
-
70
- def by_category_label(event_key, category_label = nil)
71
- fetch_report('byCategoryLabel', event_key, category_label)
72
- end
73
-
74
- def by_category_key(event_key, category_key = nil)
75
- fetch_report('byCategoryKey', event_key, category_key)
76
- end
77
-
78
102
  def by_order_id(event_key, order_id = nil)
79
103
  fetch_report('byOrderId', event_key, order_id)
80
104
  end
81
105
 
82
- def by_section(event_key, section = nil)
83
- fetch_report('bySection', event_key, section)
84
- end
85
-
86
- def by_selectability(event_key, selectability = nil)
87
- fetch_report('bySelectability', event_key, selectability)
88
- end
89
-
90
- def by_channel(event_key, channelKey = nil)
91
- fetch_report('byChannel', event_key, channelKey)
92
- end
93
-
94
106
  private
95
107
 
96
108
  def fetch_summary_report(report_type, event_key)
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "32.0.0"
2
+ VERSION = "32.1.0"
3
3
  end
data/releasing.md CHANGED
@@ -1,4 +1,5 @@
1
1
  *Note: this is internal documentation for the seats.io team*
2
2
 
3
3
  1) Set the correct version number in lib/seatsio/version.rb
4
+ 1) Set the correct version number in Gemfile.lock
4
5
  2) Create the release in GitHub
data/seatsio.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.16"
23
+ spec.add_development_dependency "bundler", "~> 2.2"
24
24
  spec.add_development_dependency "rake", "~> 13.0"
25
25
  spec.add_development_dependency "minitest", "~> 5.0"
26
26
  spec.add_development_dependency "rest-client", '~> 2.0', '>= 2.0.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatsio
3
3
  version: !ruby/object:Gem::Version
4
- version: 32.0.0
4
+ version: 32.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seats.io
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement