vinbot 2.0.3-java → 2.0.4-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/data/vehicle.rb +2 -2
- data/lib/vinbot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjhkMTJlMzkxNTY3ZDYxODY1M2Y2OWQ4MGJiMWE0MGJkZWZkNGNhOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGNlZTk1ZmE3NTRmYzhjMDQ1ZjZjYzY2OGQzNDVjMjY2OWQ4MThlZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTJmZTVlMThiMGJhZTI5OGJmYTBlNzA4ZWY3NzA0NmQxNDdmZTA1ZWNiMWEx
|
10
|
+
Y2JiZDFlNTY4Y2MxNTE5ZmQ2NGQ3ODBiZDNkM2M0YmI3YzJiZGY4MDMxMzEw
|
11
|
+
OWQxYTQ2ZjU5YmRhMjEwZjBkNzcxNjgyOTYxZDVjNzllMjA2ZTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc1MjAxZWQ1NGM3Yjk0NzFiYzhmNGNmMWVkYzkyM2VkODVmOWU0MWYxZDI4
|
14
|
+
MjdhMTQzZDZhOWIyNjE0NThkMjA1Y2UyYWE1ZGQxZTBjOTcxODIyNTA0YjI5
|
15
|
+
NTBlODQ4NTcxZmQyYjczZjdkMmNmYWYzYmFkMTEwMTFiMDhiMWE=
|
data/lib/data/vehicle.rb
CHANGED
@@ -28,8 +28,8 @@ module Vinbot
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.get_random_vehicle
|
31
|
-
|
32
|
-
::Vinbot::Data::Vehicle.where(id: rand(
|
31
|
+
max = ::Vinbot::Data::Vehicle.max(:id)
|
32
|
+
::Vinbot::Data::Vehicle.where(id: rand(1..max)).first
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
data/lib/vinbot/version.rb
CHANGED