vinbot 2.0.3 → 2.0.4
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 +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTQ2MjdiMDA0MWZmMWYzYzIwMDIwNDU1YmVlY2VkNmI2OTIxMDlmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjY1OTAzYjZjN2Y0MGU4ZDRiMTY2MGQ4MDNiNmNjMmQ4ZDg0ZjRlYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWNlMGIxNDA0MTdmMWIwYWJmNTA0MjlhZTQwOTI0NzMyNjBjZjMzZDJkYTFm
|
10
|
+
OTE1MDhlMmJhMWI3NjJiYmJkMzEyYzQ4ZmM5OTdhZWJkYWQxNjI0MjllZTMw
|
11
|
+
YTViMWVkNjAwMDQxMDc4YzJmMTgxZWJlZTFjMzVmYThmZDhmMTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDQxOGUzMjRhZGQ4MTViNGYyZTcyOWI1YmNiYmMxNWJkZTE5Y2JjMGVlODFi
|
14
|
+
ZjY0MTMxMGE2OWVmOTlhNTY2OTJkNzJlNzJkZTBjMzJmZDY5M2M4MmQ1YmRi
|
15
|
+
MDBkZjZmZGMxZGI1ZWNhYmRjODk1YmZiMzIzZjA1ODRhOTkyMDc=
|
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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vinbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarod Adair, Umair Chagani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|