allq_rest 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/deploy.sh +1 -1
- data/lib/allq_rest/models/stats_results.rb +1 -0
- data/lib/allq_rest/models/stats_tube.rb +10 -1
- data/lib/allq_rest/version.rb +1 -1
- data/spec/api/actions_api_spec.rb +16 -0
- metadata +1 -3
- data/allq_rest-1.2.5.gem +0 -0
- data/allq_rest-1.2.6.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc1862b16571cc7c644e421f7f313837aca58f097813bd1e385c7500765baacd
|
4
|
+
data.tar.gz: 5c80c7c1db250506edd77a4dae0d4344d5639e58809a6cb78b49ad5e19028405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef5285bf2a754fca8610c4a413cbfb942178b05ba9d9f5fd5426431246f39f57bcf149649d64deb7afddf1f517eb31de53b5d6c9b6195eaa0561d30c60dfd1d8
|
7
|
+
data.tar.gz: 4fdc06551ba5d88609ffa54f01534c811a764beb418ee472c22f22f50e8d75acc45177d1ce8c7af212cce780de6609696266801d53153017986fd36dfaaec802
|
data/deploy.sh
CHANGED
@@ -67,7 +67,7 @@ module Allq
|
|
67
67
|
:'parents' => :'Integer',
|
68
68
|
:'throttle_size' => :'Integer',
|
69
69
|
:'avg' => :'Integer',
|
70
|
-
:'tps' => :'
|
70
|
+
:'tps' => :'Integer',
|
71
71
|
:'tube' => :'String'
|
72
72
|
}
|
73
73
|
end
|
@@ -155,6 +155,13 @@ module Allq
|
|
155
155
|
invalid_properties.push('invalid value for "tube", tube cannot be nil.')
|
156
156
|
end
|
157
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
|
158
165
|
invalid_properties
|
159
166
|
end
|
160
167
|
|
@@ -166,6 +173,8 @@ module Allq
|
|
166
173
|
return false if @reserved.nil?
|
167
174
|
return false if @buried.nil?
|
168
175
|
return false if @parents.nil?
|
176
|
+
return false if @avg.nil?
|
177
|
+
return false if @tps.nil?
|
169
178
|
return false if @tube.nil?
|
170
179
|
true
|
171
180
|
end
|
data/lib/allq_rest/version.rb
CHANGED
@@ -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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allq_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- support@blitline.com
|
@@ -81,8 +81,6 @@ files:
|
|
81
81
|
- Gemfile.lock
|
82
82
|
- README.md
|
83
83
|
- Rakefile
|
84
|
-
- allq_rest-1.2.5.gem
|
85
|
-
- allq_rest-1.2.6.gem
|
86
84
|
- allq_rest.gemspec
|
87
85
|
- deploy.sh
|
88
86
|
- docs/ActionsApi.md
|
data/allq_rest-1.2.5.gem
DELETED
Binary file
|
data/allq_rest-1.2.6.gem
DELETED
Binary file
|