allq_rest 1.2.5 → 1.2.8

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: edfdc643e9c8a7043876f6c202be451cb23513ed35555c70f28974acc2252b60
4
- data.tar.gz: ea9ebce349d569b9b2d57d4fee5b0daee69dae2335d9d06208b4118ab4731bb5
3
+ metadata.gz: fc1862b16571cc7c644e421f7f313837aca58f097813bd1e385c7500765baacd
4
+ data.tar.gz: 5c80c7c1db250506edd77a4dae0d4344d5639e58809a6cb78b49ad5e19028405
5
5
  SHA512:
6
- metadata.gz: 70691e5b359e0a440e442e0babd7680c1ce1d40643d8d4343af890230f1c3b456c0dab8b16ec94f1b7c406df1cbfaee51c9fb672019bcc5039a33da1a0875176
7
- data.tar.gz: 18785fea81c30649ddda7a1d31703caf63b80d3b4c980a50c125cd2a82a9c2258046ed2959e2ad704581a7631cafce4bd7a3d80e0432601ee64c67a4345a07a8
6
+ metadata.gz: ef5285bf2a754fca8610c4a413cbfb942178b05ba9d9f5fd5426431246f39f57bcf149649d64deb7afddf1f517eb31de53b5d6c9b6195eaa0561d30c60dfd1d8
7
+ data.tar.gz: 4fdc06551ba5d88609ffa54f01534c811a764beb418ee472c22f22f50e8d75acc45177d1ce8c7af212cce780de6609696266801d53153017986fd36dfaaec802
data/Gemfile.lock CHANGED
@@ -1,31 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allq_rest (1.2.5)
4
+ allq_rest (1.2.7)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ZenTest (4.12.0)
12
- addressable (2.7.0)
13
- public_suffix (>= 2.0.2, < 5.0)
14
- autotest (4.4.6)
15
- ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.17)
17
- sys-uname
18
- autotest-growl (0.2.16)
19
- autotest-rails-pure (4.1.2)
20
- crack (0.4.3)
21
- safe_yaml (~> 1.0.0)
22
11
  diff-lcs (1.4.4)
23
- ethon (0.14.0)
12
+ ethon (0.15.0)
24
13
  ffi (>= 1.15.0)
25
- ffi (1.15.1)
26
- hashdiff (1.0.1)
27
- json (2.5.1)
28
- public_suffix (4.0.6)
14
+ ffi (1.15.5)
15
+ json (2.6.1)
29
16
  rake (12.0.0)
30
17
  rspec (3.9.0)
31
18
  rspec-core (~> 3.9.0)
@@ -40,30 +27,16 @@ GEM
40
27
  diff-lcs (>= 1.2.0, < 2.0)
41
28
  rspec-support (~> 3.9.0)
42
29
  rspec-support (3.9.3)
43
- safe_yaml (1.0.5)
44
- sys-uname (1.2.1)
45
- ffi (>= 1.0.0)
46
30
  typhoeus (1.4.0)
47
31
  ethon (>= 0.9.0)
48
- vcr (3.0.3)
49
- webmock (1.24.6)
50
- addressable (>= 2.3.6)
51
- crack (>= 0.3.2)
52
- hashdiff
53
32
 
54
33
  PLATFORMS
55
34
  ruby
56
35
 
57
36
  DEPENDENCIES
58
37
  allq_rest!
59
- autotest (~> 4.4, >= 4.4.6)
60
- autotest-fsevent (~> 0.2, >= 0.2.12)
61
- autotest-growl (~> 0.2, >= 0.2.16)
62
- autotest-rails-pure (~> 4.1, >= 4.1.2)
63
38
  rake (~> 12.0.0)
64
39
  rspec (~> 3.6, >= 3.6.0)
65
- vcr (~> 3.0, >= 3.0.1)
66
- webmock (~> 1.24, >= 1.24.3)
67
40
 
68
41
  BUNDLED WITH
69
42
  2.2.3
data/allq_rest.gemspec CHANGED
@@ -20,13 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
21
21
 
22
22
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
23
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
24
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
25
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
26
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
27
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
28
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
29
-
23
+
30
24
  s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
31
25
  s.test_files = `find spec/*`.split("\n")
32
26
  s.executables = []
data/deploy.sh CHANGED
@@ -1,3 +1,3 @@
1
1
  echo "Did you update the version?"
2
2
  gem build allq_rest.gemspec
3
- gem push allq_rest-1.2.5.gem
3
+ gem push allq_rest-1.2.8.gem
@@ -55,6 +55,7 @@ module Allq
55
55
  # Initializes the object
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
+
58
59
  return unless attributes.is_a?(Hash)
59
60
 
60
61
  # convert string to symbol for hash key
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.2
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -33,6 +33,12 @@ module Allq
33
33
  # TPS of throttle
34
34
  attr_accessor :throttle_size
35
35
 
36
+ # Average duration of job
37
+ attr_accessor :avg
38
+
39
+ # Average duration of job
40
+ attr_accessor :tps
41
+
36
42
  # Name of tube
37
43
  attr_accessor :tube
38
44
 
@@ -45,6 +51,8 @@ module Allq
45
51
  :'buried' => :'buried',
46
52
  :'parents' => :'parents',
47
53
  :'throttle_size' => :'throttle_size',
54
+ :'avg' => :'avg',
55
+ :'tps' => :'tps',
48
56
  :'tube' => :'tube'
49
57
  }
50
58
  end
@@ -58,6 +66,8 @@ module Allq
58
66
  :'buried' => :'Integer',
59
67
  :'parents' => :'Integer',
60
68
  :'throttle_size' => :'Integer',
69
+ :'avg' => :'Integer',
70
+ :'tps' => :'Integer',
61
71
  :'tube' => :'String'
62
72
  }
63
73
  end
@@ -104,6 +114,14 @@ module Allq
104
114
  self.throttle_size = attributes[:'throttle_size']
105
115
  end
106
116
 
117
+ if attributes.has_key?(:'avg')
118
+ self.avg = attributes[:'avg']
119
+ end
120
+
121
+ if attributes.has_key?(:'tps')
122
+ self.tps = attributes[:'tps']
123
+ end
124
+
107
125
  if attributes.has_key?(:'tube')
108
126
  self.tube = attributes[:'tube']
109
127
  end
@@ -137,6 +155,13 @@ module Allq
137
155
  invalid_properties.push('invalid value for "tube", tube cannot be nil.')
138
156
  end
139
157
 
158
+ if @avg.nil?
159
+ invalid_properties.push('invalid value for "avg", avg cannot be nil.')
160
+ end
161
+
162
+ if @tps.nil?
163
+ invalid_properties.push('invalid value for "tps", tps cannot be nil.')
164
+ end
140
165
  invalid_properties
141
166
  end
142
167
 
@@ -148,6 +173,8 @@ module Allq
148
173
  return false if @reserved.nil?
149
174
  return false if @buried.nil?
150
175
  return false if @parents.nil?
176
+ return false if @avg.nil?
177
+ return false if @tps.nil?
151
178
  return false if @tube.nil?
152
179
  true
153
180
  end
@@ -163,6 +190,8 @@ module Allq
163
190
  buried == o.buried &&
164
191
  parents == o.parents &&
165
192
  throttle_size == o.throttle_size &&
193
+ avg == o.avg &&
194
+ tps == o.tps &&
166
195
  tube == o.tube
167
196
  end
168
197
 
@@ -175,7 +204,7 @@ module Allq
175
204
  # Calculates hash code according to all attributes.
176
205
  # @return [Fixnum] Hash code
177
206
  def hash
178
- [ready, delayed, reserved, buried, parents, throttle_size, tube].hash
207
+ [ready, delayed, reserved, buried, parents, throttle_size, avg, tube].hash
179
208
  end
180
209
 
181
210
  # Builds the object from hash
@@ -185,7 +214,7 @@ module Allq
185
214
  return nil unless attributes.is_a?(Hash)
186
215
  self.class.swagger_types.each_pair do |key, type|
187
216
  if type =~ /\AArray<(.*)>/i
188
- # check to ensure the input is an array given that the the attribute
217
+ # check to ensure the input is an array given that the attribute
189
218
  # is documented as an array but the input is not
190
219
  if attributes[self.class.attribute_map[key]].is_a?(Array)
191
220
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -281,5 +310,6 @@ module Allq
281
310
  value
282
311
  end
283
312
  end
313
+
284
314
  end
285
315
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.2
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = '1.2.5'
14
+ VERSION = '1.2.8'
15
15
  end
@@ -46,6 +46,22 @@ describe 'ActionsApi' do
46
46
  end
47
47
  end
48
48
 
49
+ # unit tests for get_stats
50
+ # Bury
51
+ # Bury Job
52
+ # @param job_id Job ID
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [BasicResponse]
55
+ describe 'get_stats test' do
56
+ it "should work" do
57
+ @allq_tool.add_job
58
+ puts @admin_tools.stats_get[0].inspect
59
+ output = @admin_tools.stats_get[0].stats[0]
60
+ data = output.tps
61
+ expect(data).not_to be_nil
62
+ end
63
+ end
64
+
49
65
  # unit tests for bury_put
50
66
  # Bury
51
67
  # Bury Job
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allq_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - support@blitline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,162 +34,42 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 2.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
40
  - - "~>"
48
41
  - !ruby/object:Gem::Version
49
42
  version: '2.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 2.1.0
53
- - !ruby/object:Gem::Dependency
54
- name: rspec
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.6'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 3.6.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.6'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 3.6.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.0.1
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.24'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.24.3
103
- type: :development
43
+ type: :runtime
104
44
  prerelease: false
105
45
  version_requirements: !ruby/object:Gem::Requirement
106
46
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.24'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.24.3
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
47
  - - ">="
121
48
  - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
49
+ version: 2.1.0
127
50
  - - "~>"
128
51
  - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
52
+ version: '2.1'
133
53
  - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
54
+ name: rspec
135
55
  requirement: !ruby/object:Gem::Requirement
136
56
  requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
57
  - - ">="
141
58
  - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
59
+ version: 3.6.0
157
60
  - - "~>"
158
61
  - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
62
+ version: '3.6'
163
63
  type: :development
164
64
  prerelease: false
165
65
  version_requirements: !ruby/object:Gem::Requirement
166
66
  requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
67
  - - ">="
181
68
  - !ruby/object:Gem::Version
182
- version: 0.2.12
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
69
+ version: 3.6.0
187
70
  - - "~>"
188
71
  - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.12
72
+ version: '3.6'
193
73
  description: Allq API Client
194
74
  email:
195
75
  - support@blitline.com
@@ -274,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
154
  - !ruby/object:Gem::Version
275
155
  version: '0'
276
156
  requirements: []
277
- rubygems_version: 3.2.3
157
+ rubygems_version: 3.0.9
278
158
  signing_key:
279
159
  specification_version: 4
280
160
  summary: Ruby REST client for Allq platform