queue_it 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/queue_it/api/client.rb +1 -1
- data/lib/queue_it/version.rb +1 -1
- data/spec/queue_it/api/event_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7b1505eda52ea1576812bb670baec3bcabdb7c5
|
4
|
+
data.tar.gz: bd7e13731fca84a9ee97d668b8af05ead0d710c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f651fd91b75787ad78d6dfd3a8344b330202d83a76c8b961757b7b06526f274d0bdfed241c2ae33b94557dfff392b22bdb691fddff9957b2a0a6e93eda780f5a
|
7
|
+
data.tar.gz: 32e113df2386296f148beabf018b296382c169f18dc060fde80efcc0eca094002e129c19f9afbd6e10fbfe8ede8b0e41e26cac3b9d0885fbad365672c118d1c1
|
data/lib/queue_it/api/client.rb
CHANGED
@@ -8,7 +8,7 @@ module QueueIt
|
|
8
8
|
module Api
|
9
9
|
class Client
|
10
10
|
JSON_FORMAT = "application/json".freeze
|
11
|
-
ENDPOINT_URL = URI("https://api2.queue-it.net/
|
11
|
+
ENDPOINT_URL = URI("https://api2.queue-it.net/2_0/event").freeze
|
12
12
|
|
13
13
|
def initialize(api_key: nil, debug: false)
|
14
14
|
self.api_key = api_key
|
data/lib/queue_it/version.rb
CHANGED
@@ -113,7 +113,7 @@ module QueueIt
|
|
113
113
|
|
114
114
|
body = JSON.generate(valid_create_body)
|
115
115
|
|
116
|
-
stub = stub_request(:put, "https://api2.queue-it.net/
|
116
|
+
stub = stub_request(:put, "https://api2.queue-it.net/2_0/event/fancyevent")
|
117
117
|
.with(body: body, headers: headers)
|
118
118
|
|
119
119
|
event_adapter.create_or_update(event_id: event_id,
|
@@ -171,7 +171,7 @@ module QueueIt
|
|
171
171
|
specify "Proper speed value is set" do
|
172
172
|
body = { "MaxRedirectsPerMinute" => "15" }
|
173
173
|
|
174
|
-
stub = stub_request(:put, "https://api2.queue-it.net/
|
174
|
+
stub = stub_request(:put, "https://api2.queue-it.net/2_0/event/fancyevent/queue/speed")
|
175
175
|
.with(body: body, headers: headers)
|
176
176
|
|
177
177
|
event_adapter.set_speed(event_id: event_id, max_redirects_per_minute: max_redirects_per_minute)
|
@@ -182,7 +182,7 @@ module QueueIt
|
|
182
182
|
specify "Speed must be greater than 5 so we send at least 5" do
|
183
183
|
expected_body = { "MaxRedirectsPerMinute" => "5" }
|
184
184
|
|
185
|
-
stub = stub_request(:put, "https://api2.queue-it.net/
|
185
|
+
stub = stub_request(:put, "https://api2.queue-it.net/2_0/event/fancyevent/queue/speed")
|
186
186
|
.with(body: expected_body, headers: headers)
|
187
187
|
|
188
188
|
event_adapter.set_speed(event_id: event_id, max_redirects_per_minute: 1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Billetto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.6.14.4
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Gem to handle the implementation of http://queue-it.net
|